Open nfrankel opened 1 week ago
I have the same issue, this is the error from the Homeassistant logs:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 268, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/somneo/__init__.py", line 121, in _async_update
return await self.hass.async_add_executor_job(self.somneo.fetch_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pysomneo/__init__.py", line 174, in fetch_data
self.data['sunset'] = sunset_to_dict(self.sunset_data, self.dusk_light_themes, self.dusk_sound_themes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pysomneo/util.py", line 51, in sunset_to_dict
data['curve'] = list(light_curves.keys())[list(light_curves.values()).index(int(sunset_data['ctype']))]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: 3 is not in list
Great! May I ask you how to access the logs?
Here are the official docs: https://www.home-assistant.io/integrations/system_log/
Thanks a lot!
I've setup the HACS and this integration. The integration finds my Somneo device over the network. Unfortunately, I get the following error message in the UI:
I've enabled debug logging but I don't know where to check the produced logs.