Does that have any impact on a custom capability and presentation like the one below.
That worked as expected and it seemed simple enough that it would be less likely for them to break so almost all of my custom capabilities are created like that.
They appear to still be working as expected, but I’m concerned that a working version might be cached and if I touch the thing it will end up breaking…
Capability:
{
"id": "platemusic11009.hsLedMode",
"version": 1,
"status": "proposed",
"name": "HS LED Mode",
"attributes": {
"ledMode": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"enum": [
"normal",
"status"
]
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"setter": "setLedMode",
"enumCommands": []
}
},
"commands": {
"setLedMode": {
"name": "setLedMode",
"arguments": [
{
"name": "value",
"optional": false,
"schema": {
"type": "string",
"enum": [
"normal",
"status"
]
}
}
]
}
}
}
Presentation:
{
"dashboard": {
"states": [
{
"label": "{{ledMode.value}}",
"alternatives": [
{
"key": "normal",
"value": "Normal (load)",
"type": "active"
},
{
"key": "status",
"value": "Status (custom)",
"type": "active"
}
]
}
],
"actions": [],
"basicPlus": []
},
"detailView": [
{
"label": "LED Mode",
"displayType": "list",
"list": {
"command": {
"name": "setLedMode",
"alternatives": [
{
"key": "normal",
"value": "Normal (load)",
"type": "active"
},
{
"key": "status",
"value": "Status (custom)",
"type": "active"
}
]
},
"state": {
"value": "ledMode.value",
"alternatives": [
{
"key": "normal",
"value": "Normal (load)",
"type": "active"
},
{
"key": "status",
"value": "Status (custom)",
"type": "active"
}
]
}
}
}
],
"automation": {
"conditions": [
{
"label": "LED Mode",
"displayType": "list",
"list": {
"alternatives": [
{
"key": "normal",
"value": "Normal (load)",
"type": "active"
},
{
"key": "status",
"value": "Status (custom)",
"type": "active"
}
],
"value": "ledMode.value"
}
}
],
"actions": [
{
"label": "LED Mode",
"displayType": "list",
"list": {
"alternatives": [
{
"key": "normal",
"value": "Normal (load)",
"type": "active"
},
{
"key": "status",
"value": "Status (custom)",
"type": "active"
}
],
"command": "setLedMode"
}
}
]
},
"id": "platemusic11009.hsLedMode",
"version": 1
}