I wonder if any "Show as options as Boolean, where change by Tags / script possible (but not allowing UI to change)
To test, created fresh AVD (also) for boolean-type of data:
e.g. boolean âsensorâ :
and boolean âON/OFF buttonâ
When trying to update each (with HomeyScript)
result = await device.setCapabilityValue(capability, target);
field4 (1233w) allowing change of value wo issue - result looks like:
{ transactionId: âhomey-api-axxxx-63a1-4dac-a1a7-e5xxxxxxâ,
transactionTime: 1725260095481,
value: true}
but on field3 (1233r) I get error âCapability Not Setableâ:
Failed to update value: HomeyAPIError: Capability Not Setable
at Device.setCapabilityValue (file:///node_modules/@athombv/homey-core/dist/lib/Device.mjs:749:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
statusCode: 400,
description: âCapability Not Setableâ
}
same error if changing to any of âshow as: alarm xxxxâ - must be due below:
âalarm_devicecapabilities_boolean-custom_17.boolean1â: {
id: âalarm_devicecapabilities_boolean-custom_17.boolean1â,
type: âbooleanâ,
âŚ
getable: true,
setable: false,
âŚ
}
Is the only way to set is as number sensor? Then would be e.g. (and can live with it if no other choice ):
where:
âmeasure_devicecapabilities_number-custom_17.number29â: {
id: âmeasure_devicecapabilities_number-custom_17.number29â,
type: ânumberâ,
âŚ
getable: true,
setable: true,
âŚ
min: 0,
max: 1,
step: 1,
units: null,
decimals: 0,
âŚ
}
}
Bottons not used as no insights: