Hello,
Is it possible to start a dzvents script using a switch? And if possible how to?
Thankx,
Peter
run dzvents script from switch [Solved]
Moderator: leecollings
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: run dzvents script from switch [Solved]
Like this?kroonp wrote: Friday 02 October 2020 12:12 Is it possible to start a dzVents script using a switch? And if possible how to?
Code: Select all
return {
on = {
devices = {
'a switch',
},
},
execute = function(domoticz, device)
domoticz.log('Device ' .. device.name .. ' was updated', domoticz.LOG_INFO)
end
}Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Who is online
Users browsing this forum: No registered users and 1 guest