Simple automation to unlock the charging cable without needkng the app or going into the car.
Can do with Shelly motion sensor or button. I have chosen the button which I’ve put next to my charging station.
Can do with Yaml code for the automation (go to new automation - edit in yaml - paste). Probably need the ID so might be simpeler to simply add the trigger (push of the button), condition (car is home) and actions (stop charging and open charge port which is also same for unlocking the cable)
YAML
alias: Disconnect Charger Tesla Button
description: ''
trigger:
- platform: device
device_id: <fill yours in>
domain: shelly
type: single
subtype: button
condition:
- condition: state
entity_id: device_tracker.tesla_model_3_location_tracker
state: home
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.tesla_model_3_charger_switch
- service: lock.unlock
data: {}
target:
entity_id: lock.tesla_model_3_charger_door_lock
mode: single
Thanks for this! I want to trigger this action by using a Robbshop 4 button zigbee wall switch, I have managed to record the Event, but don’t seem to get to the correct action.
I don’t seem to have any entities that enable actions for my Tesla. How have you linked the Tesla to HA? I seem to only see sensors from the car. I used the fleet linking option to add the car to HA.