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:
