flashg1 / TeslaSolarCharger

Home Assistant Blueprint to charge Tesla car using surplus solar electricity and weather forecast.
MIT License
17 stars 6 forks source link

Automation stopped without clear reason #8

Closed kimme1024 closed 2 weeks ago

kimme1024 commented 1 year ago

This morning I noticed that the script didn't change the amps anymore. I checked and it did stop working indeed. However I've been looking around and it had no clear reason why it did. Maybe it's a good idea to send a notification to the user's phone when the car stops charging unexpectedly?

Trace Timeline:

Triggered by the sunrise with offset at 26 september 2023 om 08:03:46

Confirm Wattson Location tracker is Thuis testen

Confirm Wattson Charger is Ingeplugd testen

Service "Knop: Druk" aanroepen op "Wattson Wake up"

(button.wattson_wake_up) turned 2023-09-26T06:03:46.276675+00:00

Vertraging gebaseerd op een sjabloon
40 seconden later

Service "Knop: Druk" aanroepen op "Wattson Force data update"

(button.wattson_force_data_update) turned 2023-09-26T06:04:26.443529+00:00

Vertraging gebaseerd op een sjabloon
5 seconden later

Service "Scène: Aanmaken" aanroepen op ""

Vertraging gebaseerd op een sjabloon
5 seconden later

Actie terwijl 1 voorwaarde overeenkomt herhalen

unknown

(number.wattson_charging_amps) turned 6
5 seconden later

(switch.wattson_charger) turned on
11 seconden later

(button.wattson_force_data_update) turned 2023-09-26T06:04:53.602238+00:00
37 seconden later

unknown

(number.wattson_charging_amps) turned 5
1 seconde later

(number.wattson_charging_amps) turned 4
1 seconde later

(number.wattson_charging_amps) turned 3
(number.wattson_charging_amps) turned 2
(number.wattson_charging_amps) turned 1
1 seconde later

(number.wattson_charging_amps) turned 0
(button.wattson_force_data_update) turned 2023-09-26T06:05:36.503737+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:06:12.295027+00:00
37 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:06:49.125367+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:07:25.486413+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:08:01.778210+00:00
37 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:08:39.115131+00:00
38 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:09:16.712338+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:09:52.735257+00:00
37 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:10:29.327125+00:00
38 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:11:07.781811+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:11:43.955024+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:12:19.930122+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:12:55.428880+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:13:31.789315+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:14:07.237174+00:00
37 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:14:43.798678+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:15:19.638622+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:15:55.718315+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:16:31.170071+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:17:06.646079+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:17:42.731966+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:18:18.202724+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:18:54.698225+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:19:30.210403+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:20:06.339210+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:20:41.842449+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:21:17.838173+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:21:53.383934+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:22:29.718079+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:23:05.093765+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:23:41.050225+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:24:16.603795+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:24:52.786510+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:25:28.229645+00:00
37 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:26:04.867980+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:26:40.333450+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:27:15.771974+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:27:51.254865+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:28:26.747752+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:29:02.203464+00:00
37 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:29:38.754774+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:30:14.204723+00:00
37 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:30:50.775961+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:31:26.248563+00:00
1 minuut later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:32:12.523492+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:32:48.267342+00:00
37 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:33:24.799470+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:34:00.440624+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:34:36.773422+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:35:12.350304+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:35:47.775237+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:36:23.825676+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:36:59.313764+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:37:35.810334+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:38:11.243843+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:38:46.717162+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:39:22.137121+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:39:57.652191+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:40:33.126446+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:41:08.662586+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:41:44.830672+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:42:20.398163+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:42:56.860319+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:43:32.446909+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 1
(button.wattson_force_data_update) turned 2023-09-26T06:44:09.785489+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 2
(button.wattson_force_data_update) turned 2023-09-26T06:44:46.144400+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:45:21.975032+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:45:57.719903+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 3
(button.wattson_force_data_update) turned 2023-09-26T06:46:34.758886+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:47:10.136730+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:47:46.040414+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:48:21.614410+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:48:57.206942+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:49:32.698152+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:50:08.806673+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:50:44.487209+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:51:20.886488+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:51:56.339846+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 2
(button.wattson_force_data_update) turned 2023-09-26T06:52:32.621353+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:53:07.911101+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 3
(button.wattson_force_data_update) turned 2023-09-26T06:53:44.699915+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:54:20.156397+00:00
37 seconden later

unknown

(number.wattson_charging_amps) turned 4
(button.wattson_force_data_update) turned 2023-09-26T06:54:57.953877+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 3
(button.wattson_force_data_update) turned 2023-09-26T06:55:34.178341+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:56:10.027663+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 2
(button.wattson_force_data_update) turned 2023-09-26T06:56:46.293276+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:57:22.165955+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:57:57.628829+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:58:33.830777+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:59:09.373155+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T06:59:45.851398+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:00:21.427844+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 1
(button.wattson_force_data_update) turned 2023-09-26T07:00:57.742900+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:01:33.166630+00:00
38 seconden later

unknown

(number.wattson_charging_amps) turned 0
(button.wattson_force_data_update) turned 2023-09-26T07:02:12.532838+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:02:48.950899+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:03:24.748281+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:04:00.906530+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:04:36.477252+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 1
(button.wattson_force_data_update) turned 2023-09-26T07:05:13.729789+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 2
(button.wattson_force_data_update) turned 2023-09-26T07:05:50.168461+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 3
(button.wattson_force_data_update) turned 2023-09-26T07:06:26.847043+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:07:02.145810+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:07:37.562848+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 2
(button.wattson_force_data_update) turned 2023-09-26T07:08:13.925658+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:08:50.062616+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 3
(button.wattson_force_data_update) turned 2023-09-26T07:09:26.266500+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 4
(number.wattson_charging_amps) turned 5
(button.wattson_force_data_update) turned 2023-09-26T07:10:03.477480+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:10:38.815682+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:11:14.882802+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 4
(button.wattson_force_data_update) turned 2023-09-26T07:11:51.119666+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:12:26.556585+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:13:02.118220+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:13:37.679579+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 5
(button.wattson_force_data_update) turned 2023-09-26T07:14:13.775278+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:14:49.886253+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:15:25.323145+00:00
37 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:16:01.946004+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 6
(number.wattson_charging_amps) turned 7
(button.wattson_force_data_update) turned 2023-09-26T07:16:39.251554+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:17:15.170355+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:17:50.652808+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:18:26.990291+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:19:02.431023+00:00
37 seconden later

unknown

(number.wattson_charging_amps) turned 6
(button.wattson_force_data_update) turned 2023-09-26T07:19:39.613339+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 7
(button.wattson_force_data_update) turned 2023-09-26T07:20:15.616362+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:20:51.986115+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 6
(button.wattson_force_data_update) turned 2023-09-26T07:21:28.064161+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 5
(button.wattson_force_data_update) turned 2023-09-26T07:22:04.613965+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 6
(number.wattson_charging_amps) turned 7
(button.wattson_force_data_update) turned 2023-09-26T07:22:41.162699+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:23:16.957155+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 6
(button.wattson_force_data_update) turned 2023-09-26T07:23:52.964958+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 5
(button.wattson_force_data_update) turned 2023-09-26T07:24:29.585350+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 6
(button.wattson_force_data_update) turned 2023-09-26T07:25:05.576256+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:25:41.984073+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 5
(button.wattson_force_data_update) turned 2023-09-26T07:26:18.096222+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 4
(button.wattson_force_data_update) turned 2023-09-26T07:26:54.788319+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:27:30.094970+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:28:06.004129+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:28:41.486821+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:29:17.044309+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:29:52.498890+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:30:28.966223+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 5
(number.wattson_charging_amps) turned 6
Show 2 more items
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:31:41.695603+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 6
(button.wattson_force_data_update) turned 2023-09-26T07:32:17.696556+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:32:53.977222+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 5
(button.wattson_force_data_update) turned 2023-09-26T07:33:30.024015+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:34:05.943734+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 4
(number.wattson_charging_amps) turned 3
(button.wattson_force_data_update) turned 2023-09-26T07:34:42.925999+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:35:18.322732+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 4
(button.wattson_force_data_update) turned 2023-09-26T07:35:54.795689+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 3
(button.wattson_force_data_update) turned 2023-09-26T07:36:30.929837+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 4
(button.wattson_force_data_update) turned 2023-09-26T07:37:07.783086+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:37:43.329755+00:00
37 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:38:20.075853+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:38:55.497852+00:00
37 seconden later

unknown

(number.wattson_charging_amps) turned 3
(button.wattson_force_data_update) turned 2023-09-26T07:39:32.851586+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 4
(button.wattson_force_data_update) turned 2023-09-26T07:40:09.012993+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:40:44.990357+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 5
(button.wattson_force_data_update) turned 2023-09-26T07:41:20.981849+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:41:57.037407+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 6
(button.wattson_force_data_update) turned 2023-09-26T07:42:33.141698+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:43:09.071850+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 7
(button.wattson_force_data_update) turned 2023-09-26T07:43:45.108297+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 8
(number.wattson_charging_amps) turned 9
(button.wattson_force_data_update) turned 2023-09-26T07:44:22.104087+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 8
(number.wattson_charging_amps) turned 7
(button.wattson_force_data_update) turned 2023-09-26T07:44:58.567276+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 8
(button.wattson_force_data_update) turned 2023-09-26T07:45:35.663324+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:46:10.996194+00:00
37 seconden later

unknown

(number.wattson_charging_amps) turned 9
(button.wattson_force_data_update) turned 2023-09-26T07:46:48.604232+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:47:24.034441+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 8
(button.wattson_force_data_update) turned 2023-09-26T07:48:00.590180+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:48:36.072026+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 7
(button.wattson_force_data_update) turned 2023-09-26T07:49:12.589614+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 6
(number.wattson_charging_amps) turned 5
(button.wattson_force_data_update) turned 2023-09-26T07:49:49.044782+00:00
36 seconden later

unknown

(number.wattson_charging_amps) turned 4
(number.wattson_charging_amps) turned 3
(button.wattson_force_data_update) turned 2023-09-26T07:50:26.472123+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 4
(number.wattson_charging_amps) turned 5
(button.wattson_force_data_update) turned 2023-09-26T07:51:03.263576+00:00
37 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:51:40.026113+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:52:15.498607+00:00
37 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:52:52.049740+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:53:27.538904+00:00
37 seconden later

unknown

(number.wattson_charging_amps) turned 6
(button.wattson_force_data_update) turned 2023-09-26T07:54:04.696485+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:54:40.250085+00:00
37 seconden later

unknown

(number.wattson_charging_amps) turned 7
(button.wattson_force_data_update) turned 2023-09-26T07:55:17.815683+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 8
(button.wattson_force_data_update) turned 2023-09-26T07:55:53.864611+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:56:30.101616+00:00
35 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:57:05.569347+00:00
36 seconden later

unknown

(button.wattson_force_data_update) turned 2023-09-26T07:57:42.056310+00:00
35 seconden later

unknown

(number.wattson_charging_amps) turned 9
(button.wattson_force_data_update) turned 2023-09-26T07:58:18.076839+00:00

Stopped because an error was encountered at 26 september 2023 om 09:58:18 (runtime: 6871.90 seconds)

Scherm­afbeelding 2023-09-26 om 10 46 49

flashg1 commented 1 year ago

Please check the HA system log around that time. There should be more clues there as to the cause, ie.

Settings > System > Logs

Suspect the Tesla API call failed or timed out. If that is the case, not sure if anything can be done here unless there is a way to capture that exception.

kimme1024 commented 1 year ago

Please check the HA system log around that time. There should be more clues there as to the cause, ie.

Settings > System > Logs

Suspect the Tesla API call failed or timed out. If that is the case, not sure if anything can be done here unless there is a way to capture that exception.

I’ll check this when I’m back at home.

kimme1024 commented 1 year ago

This came up in the logs. Any useful info in here?

Logger: homeassistant.components.automation.tesla_solar_charger
Source: custom_components/tesla_custom/base.py:82 
Integration: Automatisering ([documentation](https://www.home-assistant.io/integrations/automation), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+automation%22)) 
First occurred: 09:58:18 (3 occurrences) 
Last logged: 09:58:18

Tesla Solar Charger: Repeat at step 7: Error executing script. Unexpected error for call_service at pos 4:
Tesla Solar Charger: Error executing script. Unexpected error for repeat at pos 7:
While executing automation automation.tesla_solar_charger
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 704, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 666, in _async_run_long_action
    return long_task.result()
           ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 1969, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2006, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/button/__init__.py", line 124, in _async_press_action
    await self.async_press()
  File "/config/custom_components/tesla_custom/button.py", line 84, in async_press
    await self.update_controller(wake_if_asleep=True, force=True)
  File "/config/custom_components/tesla_custom/base.py", line 82, in update_controller
    await self.coordinator.controller.update(
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 757, in update
    cars = await self.get_vehicles()
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 301, in get_vehicles
    return (await self.api("VEHICLE_LIST"))["response"]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 1348, in api
    return await self.__post_with_retries_except_unavailable(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 88, in async_wrapped
    return await fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 47, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 314, in iter
    return fut.result()
           ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 50, in __call__
    result = await fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 1380, in __post_with_retries_except_unavailable
    return await self.__connection.post(command, method=method, data=data, url=url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/connection.py", line 162, in post
    return await self.__open(url, method=method, headers=self.head, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/connection.py", line 213, in __open
    raise TeslaException(resp.status_code)
teslajsonpy.exceptions.TeslaException
kimme1024 commented 1 year ago

More logs:

2023-09-26 09:58:18.114 ERROR (MainThread) [homeassistant.components.automation.tesla_solar_charger] Tesla Solar Charger: Repeat at step 7: Error executing script. Unexpected error for call_service at pos 4: 
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 704, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 666, in _async_run_long_action
    return long_task.result()
           ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 1969, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2006, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/button/__init__.py", line 124, in _async_press_action
    await self.async_press()
  File "/config/custom_components/tesla_custom/button.py", line 84, in async_press
    await self.update_controller(wake_if_asleep=True, force=True)
  File "/config/custom_components/tesla_custom/base.py", line 82, in update_controller
    await self.coordinator.controller.update(
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 757, in update
    cars = await self.get_vehicles()
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 301, in get_vehicles
    return (await self.api("VEHICLE_LIST"))["response"]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 1348, in api
    return await self.__post_with_retries_except_unavailable(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 88, in async_wrapped
    return await fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 47, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 314, in iter
    return fut.result()
           ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 50, in __call__
    result = await fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 1380, in __post_with_retries_except_unavailable
    return await self.__connection.post(command, method=method, data=data, url=url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/connection.py", line 162, in post
    return await self.__open(url, method=method, headers=self.head, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/connection.py", line 213, in __open
    raise TeslaException(resp.status_code)
teslajsonpy.exceptions.TeslaException
2023-09-26 09:58:18.140 ERROR (MainThread) [homeassistant.components.automation.tesla_solar_charger] Tesla Solar Charger: Error executing script. Unexpected error for repeat at pos 7: 
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/trace.py", line 266, in async_wrapper
    await func(*args)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 889, in _async_repeat_step
    await async_run_sequence(iteration)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 823, in async_run_sequence
    await self._async_run_script(script)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1069, in _async_run_script
    await self._async_run_long_action(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 666, in _async_run_long_action
    return long_task.result()
           ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1579, in async_run
    return await asyncio.shield(run.async_run())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 420, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 470, in _async_step
    self._handle_exception(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 493, in _handle_exception
    raise exception
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 704, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 666, in _async_run_long_action
    return long_task.result()
           ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 1969, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2006, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/button/__init__.py", line 124, in _async_press_action
    await self.async_press()
  File "/config/custom_components/tesla_custom/button.py", line 84, in async_press
    await self.update_controller(wake_if_asleep=True, force=True)
  File "/config/custom_components/tesla_custom/base.py", line 82, in update_controller
    await self.coordinator.controller.update(
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 757, in update
    cars = await self.get_vehicles()
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 301, in get_vehicles
    return (await self.api("VEHICLE_LIST"))["response"]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 1348, in api
    return await self.__post_with_retries_except_unavailable(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 88, in async_wrapped
    return await fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 47, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 314, in iter
    return fut.result()
           ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 50, in __call__
    result = await fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 1380, in __post_with_retries_except_unavailable
    return await self.__connection.post(command, method=method, data=data, url=url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/connection.py", line 162, in post
    return await self.__open(url, method=method, headers=self.head, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/connection.py", line 213, in __open
    raise TeslaException(resp.status_code)
teslajsonpy.exceptions.TeslaException
2023-09-26 09:58:18.152 ERROR (MainThread) [homeassistant.components.automation.tesla_solar_charger] While executing automation automation.tesla_solar_charger
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 659, in async_trigger
    await self.action_script.async_run(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1579, in async_run
    return await asyncio.shield(run.async_run())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 420, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 470, in _async_step
    self._handle_exception(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 493, in _handle_exception
    raise exception
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/trace.py", line 266, in async_wrapper
    await func(*args)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 889, in _async_repeat_step
    await async_run_sequence(iteration)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 823, in async_run_sequence
    await self._async_run_script(script)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1069, in _async_run_script
    await self._async_run_long_action(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 666, in _async_run_long_action
    return long_task.result()
           ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1579, in async_run
    return await asyncio.shield(run.async_run())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 420, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 470, in _async_step
    self._handle_exception(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 493, in _handle_exception
    raise exception
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 704, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 666, in _async_run_long_action
    return long_task.result()
           ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 1969, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2006, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/button/__init__.py", line 124, in _async_press_action
    await self.async_press()
  File "/config/custom_components/tesla_custom/button.py", line 84, in async_press
    await self.update_controller(wake_if_asleep=True, force=True)
  File "/config/custom_components/tesla_custom/base.py", line 82, in update_controller
    await self.coordinator.controller.update(
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 757, in update
    cars = await self.get_vehicles()
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 301, in get_vehicles
    return (await self.api("VEHICLE_LIST"))["response"]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 1348, in api
    return await self.__post_with_retries_except_unavailable(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 88, in async_wrapped
    return await fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 47, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 314, in iter
    return fut.result()
           ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 50, in __call__
    result = await fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/controller.py", line 1380, in __post_with_retries_except_unavailable
    return await self.__connection.post(command, method=method, data=data, url=url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/connection.py", line 162, in post
    return await self.__open(url, method=method, headers=self.head, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/teslajsonpy/connection.py", line 213, in __open
    raise TeslaException(resp.status_code)
teslajsonpy.exceptions.TeslaException
kimme1024 commented 1 year ago

Happened again today... Could there be a possibility to add a failsafe in the script for when this happens? At this point I can't seem to trust the script. It worked flawlessly yesterday but failed again today...

stop: >-
  Exiting script due to charger turned off manually or automatically by car when
  charge limit reached.
Triggered by the sunrise with offset at 28 september 2023 om 08:06:55

Confirm Wattson Location tracker is Thuis testen

Confirm Wattson Charger is Ingeplugd testen

Service "Knop: Druk" aanroepen op "Wattson Wake up"

(button.wattson_wake_up) turned 2023-09-28T06:06:55.863864+00:00

Vertraging gebaseerd op een sjabloon
40 seconden later

Service "Knop: Druk" aanroepen op "Wattson Force data update"

(button.wattson_force_data_update) turned 2023-09-28T06:07:36.057267+00:00

Vertraging gebaseerd op een sjabloon
5 seconden later

Service "Scène: Aanmaken" aanroepen op ""

Vertraging gebaseerd op een sjabloon
5 seconden later

Actie terwijl 1 voorwaarde overeenkomt herhalen

unknown

(number.wattson_charging_amps) turned 6
5 seconden later

(switch.wattson_charger) turned on
11 seconden later

(button.wattson_force_data_update) turned 2023-09-28T06:08:03.298540+00:00
36 seconden later

unknown

(scene.tesla_solar_charger_script_scene) turned 2023-09-28T06:08:39.327585+00:00
(number.wattson_charging_amps) turned 5
5 seconden later

(button.wattson_force_data_update) turned 2023-09-28T06:08:44.669361+00:00

Finished at 28 september 2023 om 08:08:50 (runtime: 114.23 seconds)
kimme1024 commented 1 year ago

Happened today as well…

flashg1 commented 1 year ago

Just wondering what could be turning off your charger?

What did you set your battery charge limit to?

At what battery percentage did it stop charging?

Do you have scheduled charging set for your Tesla?

kimme1024 commented 1 year ago

Just wondering what could be turning off your charger?

What did you set your battery charge limit to?

At what battery percentage did it stop charging?

Yesterday at 74 with limit of 80 Today at 78 with limit of 90

flashg1 commented 1 year ago

Do you have scheduled charging set for your Tesla? Ie. Do you have charging start and stop time programmed into your Tesla?

kimme1024 commented 1 year ago

Do you have scheduled charging set for your Tesla? Ie. Do you have charging start and stop time programmed into your Tesla?

Nope. Everything off.

flashg1 commented 1 year ago

Then I don't know. The issue is most likely environmental. Something turned off your charger. The only way I might be able to help you is if the problem is reproducible and I have the exact reproduction steps and settings.

kimme1024 commented 1 year ago

Then I don't know. The issue is most likely environmental. Something turned off your charger. The only way I might be able to help you is if the problem is reproducible and I have the exact reproduction steps and settings.

Anything you need from me to figure this out?

flashg1 commented 1 year ago

There is only one place in the script where the charger is turned off, and that is at end of script just before exit.

The message showed the end of script was never reached and that the charger was turned off external to the automation.

I suggest you check if you have any other Tesla automations running that can turn off the charger.

You will get the same message is you click "Stop charging" in the Tesla app.

kimme1024 commented 1 year ago

It happened again today. What’s weird is that it now happens very quickly after the automation starts. This is new since the updated version with the minimum charging amps. Before it took longer to crash and it didn’t crash everyday at the same moment.

kimme1024 commented 1 year ago

It only does one cycle. Then it stops.


Triggered by the sunrise with offset at 30 september 2023 om 08:40:06

Confirm Wattson Location tracker is Thuis testen

Confirm Wattson Charger is Ingeplugd testen

Service "Knop: Druk" aanroepen op "Wattson Wake up"

(button.wattson_wake_up) turned 2023-09-30T06:40:06.208828+00:00

Vertraging gebaseerd op een sjabloon
40 seconden later

Service "Knop: Druk" aanroepen op "Wattson Force data update"

(button.wattson_force_data_update) turned 2023-09-30T06:40:46.413710+00:00

Vertraging gebaseerd op een sjabloon
5 seconden later

Service "Scène: Aanmaken" aanroepen op ""

Vertraging gebaseerd op een sjabloon
5 seconden later

Actie terwijl 1 voorwaarde overeenkomt herhalen

unknown

(number.wattson_charging_amps) turned 6
5 seconden later

(switch.wattson_charger) turned on
11 seconden later

(button.wattson_force_data_update) turned 2023-09-30T06:41:13.548043+00:00
37 seconden later

unknown

(scene.tesla_solar_charger_script_scene) turned 2023-09-30T06:41:50.195452+00:00
(number.wattson_charging_amps) turned 5
5 seconden later

(button.wattson_force_data_update) turned 2023-09-30T06:41:55.556283+00:00

Finished at 30 september 2023 om 08:42:01 (runtime: 115.03 seconds)

IMG_1101

kimme1024 commented 1 year ago

Exactly the same today. Everytime after 114/115 seconds after running the script with sunrise as trigger. When I manually start the script afterwards, there’s no problem. As the issue is very “reliable” I really think it’s caused by the script. The reliability was introduced since the last update (minimal charging amps feature).

flashg1 commented 2 weeks ago

Closing case unless this is still an issue.