wernerhp / ha.integration.load_shedding

A Home Assistant integration to track your load schedding schedule.
MIT License
113 stars 21 forks source link

Unable to reach Provider. See Logs for details. #93

Closed RandomSheepZA closed 6 months ago

RandomSheepZA commented 6 months ago

image

Not entirely sure where to grab the logs, new to this. Happy to share if you can advise.

TIA

RandomSheepZA commented 6 months ago

This might be what you need:

2024-03-08 19:22:55.732 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-03-08 19:22:55.732 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration load_shedding which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-03-08 19:22:55.732 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-03-08 19:22:55.733 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration weatherflow_forecast which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-03-08 19:22:56.993 WARNING (MainThread) [py.warnings] /usr/local/lib/python3.12/site-packages/telegram/utils/request.py:49: UserWarning: python-telegram-bot is using upstream urllib3. This is allowed but not supported by python-telegram-bot maintainers. warnings.warn(

2024-03-08 19:22:58.559 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues 2024-03-08 19:23:01.492 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/telegram_bot/polling.py", line 55, in start_polling self.updater.start_polling() File "/usr/local/lib/python3.12/site-packages/telegram/ext/updater.py", line 285, in start_polling self._init_thread(self.dispatcher.start, "dispatcher", ready=dispatcher_ready) File "/usr/local/lib/python3.12/site-packages/telegram/ext/updater.py", line 225, in _init_thread name=f"Bot:{self.bot.id}:{name}", ^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/telegram/bot.py", line 117, in decorator self.get_me() File "/usr/local/lib/python3.12/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), *kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/telegram/bot.py", line 135, in decorator result = func(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/telegram/bot.py", line 392, in get_me result = self._post('getMe', timeout=timeout, api_kwargs=api_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/telegram/bot.py", line 245, in _post return self.request.post(f'{self.base_url}/{endpoint}', data=data, timeout=timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/telegram/utils/request.py", line 349, in post result = self._request_wrapper( ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/telegram/utils/request.py", line 270, in _request_wrapper raise Unauthorized(message) telegram.error.Unauthorized: Unauthorized 2024-03-08 19:28:39.197 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% if states("sensor.load_shedding_milnerton_14") == "off" %} Starts in {{ timedelta(minutes=state_attr("sensor.load_shedding_area_jhbcitypower3_5_kloofendal", "next_start_time")) }} {% else %} Ends in {{ timedelta(minutes=state_attr("sensor.load_shedding_area_jhbcitypower3_5_kloofendal", "next_end_time")) }} {% endif %}) renders=2> Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 573, in async_render render_result = _render_with_context(self.template, compiled, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2364, in _render_with_context return template.render(kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render self.environment.handle_exception() File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception raise rewrite_traceback_stack(source=source) File "