can i use .after(900) with selector switch
Posted: Saturday 20 December 2025 14:50
i am using this function normally on regular switches.
does the .after(900) also work on selector switches
i want to switch to a certain level and switch back to the previous level after 900 seconds
Ventilatie Mode is a text device
Control Mode is a selector switch with levels 0, 10 and 20
0 is default level
does the .after(900) also work on selector switches
i want to switch to a certain level and switch back to the previous level after 900 seconds
Ventilatie Mode is a text device
Control Mode is a selector switch with levels 0, 10 and 20
0 is default level
Code: Select all
if (device.name =='Ventilatie Mode' and device.text == 'Stand 3') then
domoticz.devices('Control Mode').switchSelector(10)
domoticz.devices('Control Mode').switchSelector(0).after(900)
end