Desperately seeking help…
I’m pulling my hair during my efforts to design simple custom capabilities and their respective presentations. Let’s just say that the docs are not complete…
I have a device with 11 parameters that the user must be able to set, all are either boolean values or an integer. I’ve written and submitted, with the CLI, all 11 capabilities as well as their presentations.
Normally the user will not want to modify these parameters so they would have been perfect as “Device preferences” but “Device preferences” are not supported by Direct connected devices ![]()
I’ve added 2 of them to the device profile and placed them in a separate component but they simply do not show up. And here’s the confusing part.
I’ve also made 2 custom capabilities with only text/state i.e "displayType": "state" in the "detailView" and they work fine
working presentation for custom cap
{
"dashboard":{
"states":[
],
"actions":[
]
},
"detailView":[
{
"label":"Information",
"displayType":"state",
"state": {
"label": "flowInfo.value",
"unit": "flowInfo.unit"
}
}
],
"automation":{
"conditions":[],
"actions":[]
},
"id":"themetravel04733.flowinfo",
"version":1
}
I believe I’ve checked all the vid references etc.
I have tried lots of tweaks for quite some time and I’ve read all the docs I can find.
Any help/tips or pointers to my obvious mistakes would greatly appreciated.
Invisible, i.e. not working, capabilities/presentations
volumewarning capability
{
"id": "themetravel04733.volumewarning",
"version": 1,
"status": "proposed",
"name": "volumeWarning",
"ephemeral": false,
"attributes": {
"volumeWarning": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"setter": "setVolumeWarning",
"enumCommands": []
}
},
"commands": {
"setVolumeWarning": {
"name": "setVolumeWarning",
"arguments": [
{
"name": "value",
"optional": false,
"schema": {
"type": "boolean"
}
}
]
}
}
}
volumewarning presentation
{
"dashboard": {
"states": [],
"actions": []
},
"detailView": [
{
"label": "Send warning",
"displayType": "standbyPowerSwitch",
"standbyPowerSwitch": {
"command": {
"name": "setVolumeWarning",
"on": "on",
"off": "off",
"argumentType": "string"
}
},
"state": {
"label": "{{volumeWarning.value}}",
"value": "volumeWarning.value",
"alternatives": [
{
"key": "on",
"value": "On",
"type": "active"
},
{
"key": "off",
"value": "Off",
"type": "inactive"
}
]
}
}
],
"automation": {
"conditions": [],
"actions": []
},
"id": "themetravel04733.volumewarning",
"version": 1
}
volumelow capability
{
"id": "themetravel04733.volumelow",
"version": 1,
"status": "proposed",
"name": "volumeLow",
"ephemeral": false,
"attributes": {
"volumeLow": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 50,
"maximum": 5000
},
"unit": {
"type": "string",
"enum": [
"liter"
],
"default": "liter"
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"setter": "setVolumeLow",
"enumCommands": []
}
},
"commands": {
"setVolumeLow": {
"name": "setVolumeLow",
"arguments": [
{
"name": "value",
"optional": false,
"schema": {
"type": "integer",
"minimum": 50,
"maximum": 5000
}
}
]
}
}
}
volume low presentation
{
"dashboard": {
"states": [],
"actions": []
},
"detailView": [
{
"label": "Large volume notification level",
"displayType": "numberField",
"numberField": {
"value": "volumeLow.value",
"unit": "volumeLow.unit",
"command": "setVolumeLow",
"range": [50, 5000]
},
"state": {
"label": "{{volumeLow.value}} {{volumeLow.unit}}",
"unit": "volumeLow.unit",
"alternatives": []
}
}
],
"automation": {
"conditions": [],
"actions": []
},
"id": "themetravel04733.volumelow",
"version": 1
}