Can I please have a code snippet of someones charging automation?
The fact the car turns the charging switch on everytime I plug in the charger cable confuses me a bit.
Can I please have a code snippet of someones charging automation?
The fact the car turns the charging switch on everytime I plug in the charger cable confuses me a bit.
I have some automations to only charge during the day (when my solar is producing). Here’s one I use to turn off charging if I plug it in outside of those ours:
- id: tesla_plugged_in
alias: Tesla plugged in
description: When the tesla is plugged in at night, turn off charging
trigger:
- entity_id: binary_sensor.tesla_charger_sensor
from: 'off'
platform: state
to: 'on'
condition:
- after: '16:28'
condition: time
action:
- delay: 00:01:00
- entity_id: switch.tesla_charger_switch
service: switch.turn_off
I added the delay to be safe with it getting the charging started up. I can share other examples around this, but they are pretty straightforward.
yes please, share!
Here’s what I use to turn charging on and off around the times my solar is producing:
- id: turn_off_car_charging
alias: Turn off car charging
description: Turn off car charging in the evening
trigger:
- at: '16:30:00'
platform: time
condition:
- condition: state
entity_id: switch.tesla_charger_switch
state: 'on'
action:
- entity_id: switch.tesla_charger_switch
service: switch.turn_off
- id: turn_on_car_charging
alias: Turn on car charging
description: Turn on car charging in the morning
trigger:
- at: 09:00:00
platform: time
condition:
- condition: state
entity_id: binary_sensor.tesla_charger_sensor
state: 'on'
action:
- entity_id: switch.tesla_charger_switch
service: switch.turn_on
Do you have a switch for the Tesla charger then? I integrated the Tesla wall charger but I just see sensors and binary_sensors.
Thanks!
You can’t control the wall charger with home assistant (or anything for that matter). You need to use the car API (assuming that you have a Tesla vehicle) to control it’s charging.
Is there no way to use the wall connector (Gen3) APIs to start/stop charging, or to adjust charging amps?
I am charging a non-tesla, and the non-tesla has a poor API/HA integration so i am trying to use the wall connector APIs.
Let’s vote for that feature here:
If we could add/modify schedule this would be a way of achieving the ‘control’ aspect of wall connector. Please add feature.
I also have a Non-Tesla Vehicle and I would like to send a charge start and stop command to my Tesla Wall Connector to begin charging