Multiple actions on automation

My automation requires to turn_on or turn_off the switch according to a condition. Is there a way to define single action rule for both on and off?.

I think service_template will do what you’re looking for. Use template logic to determine if you use light.turn_on or light.turn_off (or equivalents).

1 Like

Thank you. Used service_template and worked fine.