I’m trying to revive old Broadcom app, 5 years no updates… developer seems to be gone, no forum no email appearance etc… but anyway, trying to improve it and struggle to find reason for setcapabilityValue not working :
await this.setCapabilityValue(‘learnIRcmd’, false).catch(this.error);
…no error, it’s being called correctly but simply in the GUI nothing changed
learnIRcmd.json
{
"type": "boolean",
"title": {
"en": "Learn IR command",
"nl": "Leer IR commando"
},
"getable": true,
"setable": true,
"insights" : true,
"uiComponent": "button",
"insightsTitleTrue": {
"en": "Learning mode activated",
"nl": "Leer modus geactiveerd"
},
"insightsTitleFalse": {
"en": "Learning mode deactivated",
"nl": "Leer modus gedeactiveerd"
}
}
Capability does exists, triggering the change via dev. interface reflects the state in the device.
Anyone got any idea, what could be wrong ?
I"s not caching issue, when I recreate the device, it’s still the same.
app.json - relevant part, which is actually created thanks to the homeycompose and relevant sections, looks following :
"class": "button",
"capabilities": [
"learnIRcmd"
],
"mobile": {
"components": [
{
"id": "icon",
"capabilities": []
},
{
"id": "button",
"capabilities": [
"learnIRcmd"
]
}
]
},
Thank you.