Hi,
I read about the insightsTitleTrue and insightsTitleFalse properties of a Capability in the docs, but I don’t understand how they work. I would expect it to create an entry in these logs:
However, it doesn’t. This is the full capability JSON of one of the capabilities:
{
"type": "boolean",
"title": {
"en": "Child lock",
"nl": "Kinderslot"
},
"getable": true,
"setable": true,
"insightsTitleTrue": {
"en": "Child lock enabled",
"nl": "Kinderslot ingeschakeld"
},
"insightsTitleFalse": {
"en": "Child lock disabled",
"nl": "Kinderslot uitgeschakeld"
},
"uiComponent": "button",
"uiQuickAction": false,
"icon": "/assets/child_lock.svg"
}
Can anybody explain what the insightsTitleTrue and insightsTitleFalse are meant for?
Is this a sub capability maybe? I experience similar problems when using capabilities options. Must be a bug in Homey firmware.
It does work for my own fully custom capabilities though.
1 Like
What do you mean by sub capabilities? This is the driver manifest:
{
"name": {
"en": "Bora",
"nl": "Bora"
},
"class": "dehumidifier",
"capabilities": [
"measure_humidity",
"target_humidity",
"onoff",
"mode",
"fanmode",
"child_lock",
"laundry_mode"
],
"capabilitiesOptions": {
"target_humidity": {
"min": 0,
"max": 1,
"step": 0.05
}
},
"platforms": [
"local"
],
"connectivity": [
"cloud"
],
"images": {
"small": "{{driverAssetsPath}}/images/small.png",
"large": "{{driverAssetsPath}}/images/large.png",
"xlarge": "{{driverAssetsPath}}/images/xlarge.png"
},
"pair": [
{
"id": "email"
},
{
"id": "code"
},
{
"id": "list_devices",
"template": "list_devices",
"navigation": { "next": "add_devices" },
"options": { "singular": false }
},
{
"id": "add_devices",
"template": "add_devices"
}
],
"repair": [
{
"id": "email"
},
{
"id": "code"
}
]
}
Should I report in the homey-apps-sdk-issues repo on GitHub?
It’'s a custom capability child_lock