set switch state by parameter dzvents
Posted: Thursday 17 November 2022 13:25
Hi!
How can I change my switch state by parameter?
I have a swhitch device, but cannot change there state.
This work:
Text device: domoticz.devices("Time stamp error history entry 1").updateText(item.json["6800"].value)
Temperature device: domoticz.devices('Boiler temp actual value').updateTemperature(tonumber(item.json["8310"].value))
Counter device: domoticz.devices("Fan speed").updateCounter(item.json["8323"].value)
domotic.devices("XYZ) .updateText .updateTemperature and .updateCounter are working. But what is doing with virtualswitch ?
I found only .switchOn and switchOff and .toggleSwitch function. But how can I set my switch state by parameter? ( without if function)
Thanks.
How can I change my switch state by parameter?
I have a swhitch device, but cannot change there state.
This work:
Text device: domoticz.devices("Time stamp error history entry 1").updateText(item.json["6800"].value)
Temperature device: domoticz.devices('Boiler temp actual value').updateTemperature(tonumber(item.json["8310"].value))
Counter device: domoticz.devices("Fan speed").updateCounter(item.json["8323"].value)
domotic.devices("XYZ) .updateText .updateTemperature and .updateCounter are working. But what is doing with virtualswitch ?
I found only .switchOn and switchOff and .toggleSwitch function. But how can I set my switch state by parameter? ( without if function)
Thanks.