Help with conditional action

Is this a valid expression?

image

I want to run actions if the garage door is open when either the outside temp is colder than 5C or it is dark outside.

I would use parentheses and write it like this

IF(Garage Door Tilt Sensor open AND (Temperature... <= 5.0 OR Illuminance... <= 100)) THEN

1 Like

it is a valid expression, but another way you can do it (since they both share the door open criteria) is:

IF (Garage Door Tilt Sensor open) THEN
-IF (Temperature of Outside Front Motion Sensor <= 5.0 OR Illuminance of Outside Front Motion Sensor <= 100) THEN
--do stuff
-END-IF
END-IF

Thanks. Wasn't aware of parentheses.

parentheses are what you can use to do grouping of conditions