I have some custom switches, i want to turn on a few of them using a script. I’m using switch.turn_on but it seems like its toggling the switches i.e. if the switch is already on, calling the turn_on service is turning it off. Any idea why or how i should be doing this differently ?
this is my switch config:
switch: - platform: mqtt name: "Garage Bypass" command_topic: "paradox/control/zones/Garage" state_topic: "paradox/states/zones/Garage/bypassed" state_on: "True" state_off: "False" payload_on: "bypass" payload_off: "clear_bypass"
this is the service call:
service: switch.turn_on target: entity_id: switch.garage_bypass