Hello
Please use the code fences when posting code:
Please use the sendCommand()`method instead of the action in your code
It is the recommend usage. More efficient and other reasons.
//Allume les lumieres
rule “Allume les lumières de présence”
when
Item NightState changed to ON
then
Hue_Boule_Toggle.sendCommand(ON)
Hue_Natacha_Toggle.sendCommand(ON)
Hue_Aluminium_Toggle.sendCommand(ON)
PriseFenetreSalon_Switch_Toggle.sendCommand(ON)
end
A better way to do this would be to create a group called GroupLumieresDePresence
Group GroupLumieresDePresence
Switch Hue_Boule_Toggle "xxxxxx" <icon> (GroupLumieresDePresence) { binding }
...
The new rule:
//Allume les lumieres
rule “Allume les lumières de présence”
when
Item NightState changed to ON
then
GroupLumieresDePresence.sendCommand(ON)
end