After a try with LUA to automate my lights, I have switched to dzVents.
By the way, I have managed to do what I wanted, change the state of my virtual switches without triggering an action with the use of a UserVariable.
But I would like to simplify my event script.
I have seen in the wiki that a wildcard could be used with devices to monitored them :
Code: Select all
return {
on = {
devices = { "PIR_*" }
}
}
Code: Select all
return {
on = {
variables = { "PIR_*" }
}
}