Open kimme1024 opened 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.
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.
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
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
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)
Happened today as well…
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?
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
Do you have scheduled charging set for your Tesla? Ie. Do you have charging start and stop time programmed into your Tesla?
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.
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.
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?
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.
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.
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)
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).
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: