Code: Select all
local TEST_SWITCH = 565
local myTestIDX = 3081
return {
on = {
devices = {
TEST_SWITCH
}
},
logging = {
level = domoticz.LOG_DEBUG,
marker = 'TEST SCRIPT',
},
execute = function(domoticz, item)
domoticz.devices(myTestIDX).switchOff()
end
}
Code: Select all
2025-02-14 17:22:24.045 Error: ZwaveJS2MQTT: sending switch commands for switch type 'sensor' is not supported (yet...) (zwavejs2mqtt_0xc15d8aa6_73-50-0-value-66049/Slaapkamer Luuk - Nachtlampje)

I can work around that by renaming device, but for some devices I like them having the same name without the need to overextend teh name to something like Slaapkamer Luuk - Nachtlampje - kWh and Slaapkamer Luuk - Nachtlampje - Switch
Why does Domoticz/dzVents prioritize name-based lookup instead of the more reliable IDX? Wouldn't IDX be a better unique identifier for device action