-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose Charging Rate (Amps) #93
Comments
Dupe of #86, but that was closed. Some of the earlier discussion from there is relevant. |
I'm taking a stab at this, but i'm still at the "extremely confused" stage of HA development. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
What about this? https://github.com/tmjo/charger-card |
I played around with it a bit. It probably needs some work to support us natively, but you can get something like this pretty easy: Their entities/limits are hardcoded in the javascript, but it probably can be generalized or a local copy can be modified. They already have a lot of handling and the fact you can defined attributes as sensors should allow the constants to be rewritten so that it's accepted as a stats object instead of an entity name. Their limit only supports fixed multiples, but that may be enough initially. |
Great EV charging tracking solar production which was up and down during the day. Cross posting: Using the following HA Customs Components: EV Charger Card 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 ]
|
Really would love to see this feature being added, since I have no access to the charger itself (being a Powerdale Nexxtender, that was installed by my employer). |
It would be a great new feature as you can create a smart charger with only a plug, the OEM Tesla charger and Home Assisstant! as you can adapt the charge rate to the home consuming power in real time! :) |
@alandtse Do you think it makes sense to create "shortcut" service calls for some of the things that can be done to the car? E.g. this setting of |
I exposed the API so everything was available. But I didn't want to try to expose everything via HA UI or by writing hundreds of service calls. Perhaps there's an easy way to automate the generation of service calls. I'm not opposed but each custom one increases the maintenance burden particularly if Tesla changes the call. As you can tell I'm only bug fixing this now as I'm working on other projects. Feel free to take on what is interesting to you. |
I tend to agree with you. It is pretty easy to write a script to send the correct API-calls, and use that in automations, so maybe we should just add a few examples in the Wiki. I have this for setting charge_limit:
It uses an
This is now pretty easy to trigger in an automation, just adjusting the input_number and calling the service |
I can undertand... but keep in mind that not all Home Assistant users have the right skills to write a script to solve this. |
I understand that. Please feel free to add a PR. In the mean time, I added the example above, with some more info, to the Wiki This could also be used as a starting point for creating either a blueprint in HA or just another wiki page winth a similar example for charge amps. |
Is 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.
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.
The text was updated successfully, but these errors were encountered: