Charge automation not working #903
-
Newly finished setting up my HA and Tesla integration and all the data seems to be flowing correctly. I did not change the polling interval from default one. I am moving to a hourly pricing through my electricity provider and preparing to set automations for charging when the hourly prices hit certain numbers. In preparation to that I created a simple time based automation to start charging at a particular time for test run but the automation is not running as expected. I did more reading and understand it could be due to the fact that the car goes to sleep and the automation may not be able to wake up the car and send the necessary command. I saw a script to send a scheduled charging command with wakeup signal. Can I similar script be created for flipping the charging switch with wake up signal when the prices are below certain number and charger is connected? If so, any help with the script is appreciated as i am not good with programming. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
The turning on of the charger counts as a command that will wake the car up. I have an automation for my Model 3 that does this exact thing (turns the charger on at 0200 until 0500 each morning as that's when my electricity is cheapest). It is worth checking if you can get the car to accept commands in general as the unofficial API that was being used for some people could read data but not update (and there have been some fixes this week to use the official one) |
Beta Was this translation helpful? Give feedback.
-
Yes, looks like my commands are not working. I tried few commands like lock/unlock and I keep getting below errors (Failed to call service climate/set_hvac_mode. unknown error, Failed to call service lock/unlock. unknown error). I have also attached logs if someone can help with whats happening here?
|
Beta Was this translation helpful? Give feedback.
-
Got it, when the old API method was able to read data, I felt happy as I understand the proxy thing is a complex setup. If I won't be able to run commands with old API, then I will give the new setup process a try. |
Beta Was this translation helpful? Give feedback.
-
I'm currently using v3.19.11 of this integration with automations to control 'Backup reserve', 'Energy exports' and 'Operation mode' and have done for a number of years. Despite the issues facing a number of people this integration, at least for me at the moment is working without issue. My intention is to remain on this version, at least until it breaks!!
|
Beta Was this translation helpful? Give feedback.
You need to use the latest version (v3.20.3+) and the new setup process as, by your description, your car won't allow usage of the old unofficial API