Hello. I’m trying to set up an automation that disables my electric car charger when the car is not at home, however the automation is not triggering, so I think I have something wrong with the states…
Automation yaml:
alias: disable car charger podpoint
description: ''
trigger:
- platform: state
entity_id:
- device_tracker.car_device_tracker
from: '"home"'
to: '"away"'
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.podpoint_charging_allowed
mode: single
I have read here that actual states might be different to what is shown in the UI. Can someone help me with what I’m looking for in the dev tools please?
Thanks. I’d played around with a few quotation attempts to see if that was the problem. Adjusted back to your recommendation.
Thanks for the tip on ‘not_home’ - how did you know that?