Assign value to switch based on input - advanced condition based switching

Hello,

I have a switch entity which I want switched on or off based on ‘simple’ AND or OR statement like in the following pseudo code:

switch.centralheating.state = input_boolean.room1demand or input_boolean.room2demand or input_boolean.room3demand

Is that possible as I don’t want two automations comparing different statuses with AND and OR etc.

If you want to combine automations you can try the choose type action which will give you ability to have different paths according to conditions.

I don’t see any AND conditions in that pseudo-code. All I see are OR.

Just in case somebody comes along. There is a choose action for automations I now used.