Regarding Icon - I don’t specify, so it’s the stock switch icon.
Here’s all my json:
DASHBOARD ACTION CUSTOM CAPABILITY (SWITCH):
{
"id": "partyvoice23922.dscdashswitch",
"version": 1,
"status": "proposed",
"name": "dscdashswitch",
"attributes": {
"switch": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"setter": "setSwitch",
"enumCommands": []
}
},
"commands": {
"setSwitch": {
"name": "setSwitch",
"arguments": [
{
"name": "value",
"optional": false,
"schema": {
"type": "string"
}
}
]
}
}
}
DASHBOARD STATE CUSTOM CAPABILITY (LABEL):
{
"id": "partyvoice23922.partitionStatus",
"version": 1,
"status": "proposed",
"name": "Partition Status",
"attributes": {
"partStatus": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"maxLength": 16
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"setter": "setPartStatus",
"enumCommands": []
}
},
"commands": {
"setPartStatus": {
"name": "setPartStatus",
"arguments": [
{
"name": "value",
"optional": false,
"schema": {
"type": "string",
"maxLength": 16
}
}
]
}
}
}
DASHBOARD SWITCH PRESENTATION
{
"dashboard": {
"states": [],
"actions": [
{
"displayType": "switch",
"switch": {
"command": {
"name": "setSwitch",
"on": "on",
"off": "off"
},
"state": {
"value": "switch.value",
"on": "on",
"off": "off"
}
}
}
],
"basicPlus": []
},
"automation": {
"conditions": [],
"actions": []
},
"id": "partyvoice23922.dscdashswitch",
"version": 1
}
DASHBOARD STATE LABEL PRESENTATION
{
"dashboard": {
"states": [
{
"label": "{{partStatus.value}}",
"alternatives": [
{
"key": "Armed-away",
"value": "Armed-away",
"type": "active"
},
{
"key": "Arming away",
"value": "Arming away",
"type": "active"
},
{
"key": "Armed-stay",
"value": "Armed-stay",
"type": "active"
},
{
"key": "Arming stay",
"value": "Arming stay",
"type": "active"
},
{
"key": "Exit delay",
"value": "Exit delay",
"type": "active"
},
{
"key": "Ready",
"value": "Ready",
"type": "active"
},
{
"key": "Disarmed",
"value": "Disarmed",
"type": "active"
},
{
"key": "Disarming",
"value": "Disarming",
"type": "active"
},
{
"key": "ALARM!!",
"value": "ALARM!!",
"type": "active"
}
]
}
],
"actions": [],
"basicPlus": []
},
"detailView": [
{
"label": "Partition Status",
"displayType": "state",
"state": {
"label": "{{partStatus.value}}"
}
}
],
"automation": {
"conditions": [
{
"label": "Partition Status",
"displayType": "list",
"list": {
"alternatives": [
{
"key": "partStatus",
"value": "Arm-Away",
"type": "active"
},
{
"key": "partStatus",
"value": "Arm-Stay",
"type": "active"
},
{
"key": "partStatus",
"value": "Ready",
"type": "active"
}
]
}
}
],
"actions": []
},
"id": "partyvoice23922.partitionStatus",
"version": 1
}
DEVICE CONFIGURATION
{
"dashboard": {
"states": [
{
"component": "main",
"capability": "partyvoice23922.partitionStatus",
"version": 1,
"values": [],
"patch": []
}
],
"actions": [
{
"component": "main",
"capability": "partyvoice23922.dscdashswitch",
"version": 1,
"values": [],
"patch": []
}
]
},
"detailView": [
{
"component": "main",
"capability": "partyvoice23922.partitionStatus",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": "partyvoice23922.dscstayswitch",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": "partyvoice23922.dscawayswitch",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": "partyvoice23922.dscselectswitch",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": "partyvoice23922.partitioncommand",
"version": 1,
"values": [],
"patch": []
}
],
"automation": {
"conditions": [
{
"component": "main",
"capability": "partyvoice23922.partitionStatus",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": "healthCheck",
"version": 1,
"values": [],
"patch": []
}
],
"actions": [
{
"component": "main",
"capability": "healthCheck",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": "partyvoice23922.dscstayswitch",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": "partyvoice23922.dscawayswitch",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": "partyvoice23922.partitioncommand",
"version": 1,
"values": [],
"patch": []
}
]
},
"type": "profile",
"presentationId": "ST_aced3851-8f1b-4e03-b1bf-fd41cd3c7276",
"manufacturerName": "fE4b",
"vid": "ST_aced3851-8f1b-4e03-b1bf-fd41cd3c7276",
"mnmn": "fE4b",
"version": "0.0.1"
}
DEVICE PRESENTATION
{
"manufacturerName": "fE4b",
"presentationId": "ST_aced3851-8f1b-4e03-b1bf-fd41cd3c7276",
"mnmn": "fE4b",
"vid": "ST_aced3851-8f1b-4e03-b1bf-fd41cd3c7276",
"version": "0.0.1",
"dashboard": {
"states": [
{
"label": "{{partStatus.value}}",
"capability": "partyvoice23922.partitionStatus",
"version": 1,
"component": "main"
}
],
"actions": [
{
"displayType": "switch",
"switch": {
"command": {
"name": "setSwitch",
"on": "on",
"off": "off"
},
"state": {
"value": "switch.value",
"on": "on",
"off": "off"
}
},
"capability": "partyvoice23922.dscdashswitch",
"version": 1,
"component": "main"
}
],
"basicPlus": []
},
"detailView": [
{
"capability": "partyvoice23922.partitionStatus",
"version": 1,
"label": "Partition Status",
"displayType": "state",
"state": {
"label": "{{partStatus.value}}"
},
"component": "main"
},
{
"capability": "partyvoice23922.dscstayswitch",
"version": 1,
"label": "Arm Stay",
"displayType": "toggleSwitch",
"toggleSwitch": {
"command": {
"name": "setSwitch",
"on": "on",
"off": "off"
},
"state": {
"value": "switch.value",
"on": "on",
"off": "off"
}
},
"state": null,
"component": "main"
},
{
"capability": "partyvoice23922.dscawayswitch",
"version": 1,
"label": "Arm Away",
"displayType": "toggleSwitch",
"toggleSwitch": {
"command": {
"name": "setSwitch",
"on": "on",
"off": "off"
},
"state": {
"value": "switch.value",
"on": "on",
"off": "off"
}
},
"state": null,
"component": "main"
},
{
"capability": "partyvoice23922.dscselectswitch",
"version": 1,
"label": "Dashboard Arm Type",
"displayType": "switch",
"switch": {
"command": {
"name": "setSwitch",
"on": "Type: Arm Away",
"off": "Type: Arm Stay"
},
"state": {
"value": "switch.value",
"on": "on",
"off": "off"
}
},
"state": null,
"component": "main"
},
{
"capability": "partyvoice23922.partitioncommand",
"version": 1,
"label": "Tap for additional partition commands:",
"displayType": "list",
"list": {
"command": {
"name": "sendPartitionCommand",
"alternatives": [
{
"key": "away",
"value": "Arm-Away",
"type": "active"
},
{
"key": "disarm",
"value": "Disarm",
"type": "active"
},
{
"key": "stayarm",
"value": "Arm-Stay",
"type": "active"
},
{
"key": "instantarm",
"value": "Arm-Instant",
"type": "active"
},
{
"key": "toggleinstant",
"value": "Instant Mode",
"type": "active"
},
{
"key": "togglenight",
"value": "Arm-Night",
"type": "active"
},
{
"key": "togglechime",
"value": "Toggle Chime",
"type": "active"
},
{
"key": "reset",
"value": "Reset",
"type": "active"
},
{
"key": "refresh",
"value": "Refresh",
"type": "active"
},
{
"key": "panic",
"value": "Panic Key",
"type": "active"
}
]
},
"state": {
"value": "partitionCommand.value",
"alternatives": [
{
"key": "away",
"value": "Arm-Away",
"type": "active"
},
{
"key": "disarm",
"value": "Disarm",
"type": "active"
},
{
"key": "stayarm",
"value": "Arm-Stay",
"type": "active"
},
{
"key": "instantarm",
"value": "Arm-Instant",
"type": "active"
},
{
"key": "toggleinstant",
"value": "Instant Mode",
"type": "active"
},
{
"key": "togglenight",
"value": "Arm-Night",
"type": "active"
},
{
"key": "togglechime",
"value": "Toggle Chime",
"type": "active"
},
{
"key": "reset",
"value": "Reset",
"type": "active"
},
{
"key": "refresh",
"value": "Refresh",
"type": "active"
},
{
"key": "panic",
"value": "Panic Key",
"type": "active"
}
]
}
},
"state": null,
"component": "main"
}
],
"automation": {
"conditions": [
{
"capability": "partyvoice23922.partitionStatus",
"version": 1,
"label": "Partition Status",
"displayType": "list",
"list": {
"alternatives": [
{
"key": "partStatus",
"value": "Arm-Away",
"type": "active"
},
{
"key": "partStatus",
"value": "Arm-Stay",
"type": "active"
},
{
"key": "partStatus",
"value": "Ready",
"type": "active"
}
],
"value": null
},
"exclusion": [],
"component": "main"
}
],
"actions": [
{
"capability": "partyvoice23922.dscstayswitch",
"version": 1,
"label": "Arm Stay",
"displayType": "list",
"list": {
"alternatives": [
{
"key": "on",
"value": "on",
"type": "active"
},
{
"key": "off",
"value": "off",
"type": "inactive"
}
],
"command": "setSwitch"
},
"component": "main",
"exclusion": []
},
{
"capability": "partyvoice23922.dscawayswitch",
"version": 1,
"label": "Arm Away",
"displayType": "list",
"list": {
"alternatives": [
{
"key": "on",
"value": "on",
"type": "active"
},
{
"key": "off",
"value": "off",
"type": "inactive"
}
],
"command": "setSwitch"
},
"component": "main",
"exclusion": []
},
{
"capability": "partyvoice23922.partitioncommand",
"version": 1,
"label": "Partition Commands:",
"displayType": "list",
"list": {
"alternatives": [
{
"key": "away",
"value": "Arm-away",
"type": "active"
},
{
"key": "stay",
"value": "Arm-stay",
"type": "active"
},
{
"key": "disarm",
"value": "Disarm",
"type": "active"
},
{
"key": "instant",
"value": "Arm Instant",
"type": "active"
},
{
"key": "night",
"value": "Arm Night",
"type": "active"
},
{
"key": "bypassoff",
"value": "Bypass Off",
"type": "active"
},
{
"key": "autobypass",
"value": "Bypass",
"type": "active"
},
{
"key": "keyfire",
"value": "Key Fire",
"type": "active"
},
{
"key": "Keyaux",
"value": "Key Aux",
"type": "active"
},
{
"key": "keypanic",
"value": "Key Panic",
"type": "active"
},
{
"key": "reset",
"value": "Reset",
"type": "active"
},
{
"key": "chime",
"value": "Chime",
"type": "active"
}
],
"command": "sendPartitionCommand"
},
"component": "main",
"exclusion": []
}
]
},
"dpInfo": [
{
"os": "ios",
"dpUri": "plugin://com.samsung.ios.plugin.stplugin/assets/files/index.html"
},
{
"os": "android",
"dpUri": "plugin://com.samsung.android.plugin.stplugin"
},
{
"os": "web",
"dpUri": "wwst://com.samsung.one.plugin.stplugin"
}
]
}