rule "Bewegung_Terrasse an"
when
Item Bewegung_Terrasse1 changed to ON
then
if (Helligkeit2 == ON)
sendCommand(Light_EG_Terrasse_Markise,ON)
sendCommand(Light_EG_Terrasse_Mauer,ON)
end
if it gets triggered only the first item is updated (i swapped them to prove it), tried with brackets but then nothing is turned on
First error, you failed to use .state
Second, you need to use {} after an if statement
Third, you should use the .sendCommand(command) method syntax instead of the action syntax sendCommand(item, command)
rule "Bewegung_Terrasse an"
when
Item Bewegung_Terrasse1 changed to ON
then
if (Helligkeit2.state == ON) {
Light_EG_Terrasse_Markise.sendCommand(ON)
Light_EG_Terrasse_Mauer.sendCommand(ON)
}
end
Itโs ok.
Just make sure you understand the errors that you made.
Copy the changes, donโt copy and paste. Writing it yourself will make you learn it.