The only configuration file I have found has this section for lights …
{
"light": [
{
"observableDeviceEvents": [
{
"capability": "switch",
"component": "main",
"attribute": "switch"
},
{
"capability": "switchLevel",
"component": "main",
"attribute": "level"
}
],
"supportedPlatforms": [
"iOS",
"Android"
],
"type": "oic.d.light",
"states": [
{
"capability": "switch",
"component": "main",
"visible": [
{
"capability": "switch",
"component": "main",
"value": "switch.value",
"operand": "on",
"operator": "EQUALS"
}
],
"active": true,
"label": "{{___PO_CODE_ON}}"
},
{
"capability": "switch",
"component": "main",
"visible": [
{
"capability": "switch",
"component": "main",
"value": "switch.value",
"operand": "off",
"operator": "EQUALS"
}
],
"active": false,
"label": "{{___PO_CODE_OFF}}"
},
{
"visible": [
{
"capability": "switchLevel",
"component": "main",
"value": "level.value",
"operand": "0",
"operator": "GREATER_THAN"
}
],
"active": true,
"label": "{{___PO_CODE_ON}}"
},
{
"active": false,
"label": "{{___PO_CODE_OFF}}"
}
]
},
{
"observableDeviceEvents": [
{
"capability": "switch",
"component": "main",
"attribute": "switch"
}
],
"supportedPlatforms": [
"iOS",
"Android"
],
"type": "oic.d.smartplug",
"states": [
{
"capability": "switch",
"component": "main",
"visible": [
{
"capability": "switch",
"component": "main",
"value": "switch.value",
"operator": "EQUALS",
"operand": "on"
}
],
"active": true,
"label": "{{___PO_CODE_ON}}"
},
{
"active": false,
"label": "{{___PO_CODE_OFF}}"
}
]
}
],
"update": {
"type": "immediately"
},
"card": [
{
"visible": {
"value": "{{$.activedevices().count()}}",
"operand": "0",
"operator": "GREATER_THAN"
},
"arguments": [
"{{$.activedevices().count()}}"
],
"label": "{{___PO_CODE_PD_ON}}"
},
{
"label": "{{___PO_CODE_OFF}}"
}
],
"group": {
"actions": [
{
"standbyPowerSwitch": {
"state": {
"valueType": "string",
"alternatives": null,
"label": null,
"value": "switch.value",
"off": "off",
"on": "on"
},
"command": {
"name": null,
"argumentType": null,
"off": "off",
"on": "on"
}
},
"capability": "switch",
"component": "main",
"displayType": "standbyPowerSwitch"
}
],
"states": [
{
"component": "main",
"capability": "switch",
"label": "{{___PO_CODE_GROUP_ON}}",
"value": "switch.value"
}
]
}
},
My interpretation of that was that it only looked at devices with an explicit ocfDeviceType
of oic.d.smartplug
or oic.d.light
. However I found that while that was true of the tile settings page, the tile status page seemed to be based on the Light
and SmartPlug
categories which was why they were different.
They now seem to match which suggests that Light
and SmartPlug
may have won out and so the config file might not do what I thought it did. Either that or the mobile app is just ignoring the API and doing its own thing yet again.