I’m trying to set a capability value for a custom enum capability in my app, but I get a Error: invalid_capability at Remote Process
error every time.
Is there a specific way to do this for enums?
climate_mode.json
{
"type": "enum",
"uiComponent": "picker",
"title": {
"en": "Climate Control Mode"
},
"values": [
{
"id": "1",
"title": {
"en": "Away"
}
},
{
"id": "2",
"title": {
"en": "Home"
}
},
{
"id": "3",
"title": {
"en": "Boost"
}
},
{
"id": "4",
"title": {
"en": "Travel"
}
},
{
"id": "5",
"title": {
"en": "Off"
}
},
{
"id": "6",
"title": {
"en": "Fireplace"
}
}
],
"getable": true,
"setable": true,
"insights": false
}
This is how I try to set it in device.ts:
this.setCapabilityValue('climate_mode', '1');