OK yes, I had done all that. And if I download the device config file again and check the Automations section, it is what I expected, however if I create an automation IF condition for the device, the capability attribute (zonebypass) is not being shown. (The same capability is also used by another device and it shows fine for the other device.)
Should I have to delete and re-add the device?
Here is the Device Config json:
{
"mnmn": "fE4b",
"vid": "ST_69f2bc09-a48b-4857-84c2-06f3305a378c",
"version": "0.0.1",
"type": "profile",
"dashboard": {
"states": [
{
"component": "main",
"capability": "contactSensor",
"version": 1
}
],
"actions": []
},
"detailView": [
{
"component": "main",
"capability": "healthCheck",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": "partyvoice23922.contactstatus",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": "partyvoice23922.zonebypass",
"version": 1,
"values": [],
"patch": []
}
],
"automation": {
"conditions": [
{
"component": "main",
"capability": "healthCheck",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": "partyvoice23922.contactstatus",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": "partyvoice23922.zonebypass",
"version": 1,
"values": [],
"patch": []
}
],
"actions": [
{
"component": "main",
"capability": "partyvoice23922.zonebypass",
"version": 1,
"values": [],
"patch": []
}
]
},
"migration": true
}
Here is the capability presentation json:
{
"dashboard": {
"states": [],
"actions": [],
"basicPlus": []
},
"detailView": [
{
"label": "Zone Bypass Toggle",
"displayType": "toggleSwitch",
"toggleSwitch": {
"command": {
"name": "setZoneBypass",
"on": "Bypass on",
"off": "Bypass off"
},
"state": {
"value": "zoneBypass.value",
"on": "Bypassed",
"off": "Not bypassed"
}
}
}
],
"automation": {
"conditions": [
{
"label": "Zone Bypass Status",
"displayType": "list",
"list": {
"alternatives": [
{
"key": "on",
"value": "Bypassed",
"type": "active"
},
{
"key": "off",
"value": "Not bypassed",
"type": "inactive"
}
]
}
}
],
"actions": [
{
"label": "Zone Bypass Status",
"displayType": "list",
"list": {
"alternatives": [
{
"key": "on",
"value": "Bypass on",
"type": "active"
},
{
"key": "off",
"value": "Bypass off",
"type": "inactive"
}
],
"command": "setZoneBypass"
}
}
]
},
"id": "partyvoice23922.zonebypass",
"version": 1
}