Hi everyone,
I am getting a Legacy Syntax error on my code. Here is the code
- platform: template
name: Garage Door
value_template: "{{ is_state('binary_sensor.garagedoor_sensor', 'off') }}"
lock:
service: switch.toggle
target:
entity_id: switch.garagedoor_switch
unlock:
service: switch.toggle
target:
entity_id: switch.garagedoor_switch
On the service: switch.toggle lines I am getting the error “String does not match the pattern of “LEGACY_SYNTAX^”.”
Not sure how to fix this? Any help would be appreciated.
Cheers.