tesla
tesla copied to clipboard
Add charging voltage as a sensor
In order to use only the solar energy produced by the photovoltaic system I would need to know the voltage to dynamically adapt the car's amperage when recharging.
Thank you
It's not perfect but I have done this with an automation to have my solaredge production linked to the tesla amps like this: Trigger: When produced watts are between 2400w and 2700w, Condition: Tesla charger is switched on, Action: Set tesla amps to 6.
This way you can choose how much you can leave for other devices. I leave about 1kW of power. So for 5 amps it's 2400 to 2700w.
I have an automation for every amp from 5 to 16 on the ac charger. The hardest part was figuring out how to turn on and off charging and polling automatically when there is enough or not enough solar. For my situation it works to turn on with trigger: solar above 1700w, no condition, action: wake up tesla, delay 10sec, polling on, if/then: if: Charger is connected, location tracker home, charger is switched off, then: switch charger on, set amps to 5.
To turn off: trigger: solar below 1400w for 1 minute, condition: charger on, location tracker home, action: charger off, polling off.
The only (little) inconvenience is when I get home and there is not enough solar. When I plug in the charger the car starts charging so I have to switch off charging on my phone. When there is enough solar I leave it charging but I need to press a button in HA to turn on polling (and wakes up the car by turning on polling). I also have an automation to automatically turn off polling after turning polling on when the car is not at home, when solar is too low or when I close the charger door.
This works stable in the hardest conditions: cloud makes watts produced go from 5000 to 2000w in 3sec, then it will drop the amps within 10 seconds from 16 to 5. When sun comes out again, from 2000 to 5000w, back from 5 to 16 amps.
Charger volts is available as an attribute under "Charger Power" sensor. Attributes should be easily accessible in automations. Give that a shot before we dedicate a new sensor to the same info.