for some reason it does not seem to work. this is what i have in the automation
alias: Pornire Boiler
description: ‘’
trigger:
- platform: zone
entity_id: device_tracker.sm_g935f
zone: zone.home
event: enter - platform: zone
entity_id: device_tracker.sm_g935f
zone: zone.home
event: leave
condition: []
action: - service: ‘switch.turn_{{ ‘‘on’’ if trigger.event == ‘‘enter’’ else ‘‘off’’ }}’
entity_id: switch.boiler
mode: single
is there something wrong with the sytax?