Expose Charging Rate (Amps)
See original GitHub issueIs your feature request related to a problem? Please describe. I would like to be able to directly control the car’s charging rate. THis is now possible via the new API endpoint CHARGING_AMPS (requires vehicle 2021.36.5+).
Describe the solution you’d like A number entity that lets you set the current, from 5 amps to the vehicle maximum (too tricky? Could just use 48, but some cars won’t take more than 32).
Describe alternatives you’ve considered Just calling the custom api via the below from an automation triggered by an input_number works well, but it would be nice to be able to rate limit it, check for errors etc.
service: tesla_custom.api
data:
command: CHARGING_AMPS
parameters:
path_vars:
vehicle_id: '{{ state_attr(''binary_sensor.<car_name>_online_sensor'', ''id'') }}'
charging_amps: 16
Additional context Until now i’ve been using TWCManager to control the charge rate using the wall charger itself. The use case being to track solar production and charge your car using solar power exclusively. TWCManager is somewhat error prone. The codebase is a bit unstable, and it requires a hardware hack i’d just as soon eliminate if possible.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:15 (10 by maintainers)
Top GitHub Comments
Great EV charging tracking solar production which was up and down during the day. (Need to switch from teslafi sensors to tesla custom component sensors).
Cross posting: https://github.com/tmjo/charger-card/issues/12 https://github.com/tmjo/charger-card/issues/6
Using the following HA Customs Components:
EV Charger Card Tesla Style Power Card Tesla Custom Component SolarEdge MODBUS
sensors.yaml: [ Create template values in the same structure as required via Easee Charger card ]
Card Configuration: [ Configure Charger Card and include buttons to charger switch and solar tracking ]
automation.tesla_charging [Every minute, if car is charging, during daylight call script to set desired charging current]
script.tesla_solar: [ Call tesla_custom.api to set CHARGING_AMPS = PV generation / Voltage / Phases ]
Playing with some templates and the config has gotten me this far today.