Closed pickwit closed 1 year ago
Are you able to provide the exception being displayed in your HomeAssistant log?
Hi @pickwit , That is the device page and not the logs. The logs can be found here:
http://
HA Core Log.pdf Sorry about that. Here we go...
Can you please click on each one of those errors and sent through the popup?
It seems that it is trying to get data that does not exist, but I cannot yet see where.
This error originated from a custom integration.
Logger: custom_components.olarm_sensors.coordinator Source: custom_components/olarm_sensors/olarm_api.py:263 Integration: Olarm Sensors (documentation, issues) First occurred: 8:50:44 AM (266 occurrences) Last logged: 9:13:00 AM
Unexpected error fetching Olarm Coordinator (735ee402-1f7d-44d9-9773-9e22a840f4c3) data: list index out of range Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 250, in _async_refresh self.data = await self._async_update_data() File "/config/custom_components/olarm_sensors/coordinator.py", line 145, in _async_update_data return await self.update_data() File "/config/custom_components/olarm_sensors/coordinator.py", line 128, in update_data self.pgm_data = await self.api.get_pgm_zones(devices_json) File "/config/custom_components/olarm_sensors/olarm_api.py", line 263, in get_pgm_zones state = str(pgm_state[i]).lower() == "a" IndexError: list index out of range
Logger: homeassistant.components.button Source: custom_components/olarm_sensors/olarm_api.py:263 Integration: Button (documentation, issues) First occurred: 8:50:40 AM (2 occurrences) Last logged: 9:03:25 AM
Error while setting up olarm_sensors platform for button Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/olarm_sensors/button.py", line 26, in async_setup_entry await coordinator.async_get_data() File "/config/custom_components/olarm_sensors/coordinator.py", line 153, in async_get_data return await self.update_data() File "/config/custom_components/olarm_sensors/coordinator.py", line 128, in update_data self.pgm_data = await self.api.get_pgm_zones(devices_json) File "/config/custom_components/olarm_sensors/olarm_api.py", line 263, in get_pgm_zones state = str(pgm_state[i]).lower() == "a" IndexError: list index out of range
Logger: homeassistant.components.binary_sensor Source: custom_components/olarm_sensors/olarm_api.py:263 Integration: Binary sensor (documentation, issues) First occurred: 8:50:41 AM (2 occurrences) Last logged: 9:03:25 AM
Error while setting up olarm_sensors platform for binary_sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/olarm_sensors/binary_sensor.py", line 31, in async_setup_entry await coordinator.async_get_data() File "/config/custom_components/olarm_sensors/coordinator.py", line 153, in async_get_data return await self.update_data() File "/config/custom_components/olarm_sensors/coordinator.py", line 128, in update_data self.pgm_data = await self.api.get_pgm_zones(devices_json) File "/config/custom_components/olarm_sensors/olarm_api.py", line 263, in get_pgm_zones state = str(pgm_state[i]).lower() == "a" IndexError: list index out of range
These are the 3 errors copied and pasted
Sorry for the delay in posting. Power failure here
Thanks @pickwit , I will try to implement a fix for this asap. Apologies for the continued outage due to certain added features.
No problem Raine. You are doing a sterling job! Thanks for integrating Olarm into HA On 09 Apr 2023 at 17:57 +0200, Raine Pretorius @.***>, wrote:
Thanks @pickwit , I will try to implement a fix for this asap. Apologies for the continued outage due to certain added features. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Issue of no entities being displayed has been resolved with version 2.04!
PGM error is only error that is thrown up (see attached) Olarm ver 2.04 error.pdf
Thanks Raine
Glad to hear that it is working. Sorry for the delayed response as I broke my finger the pas week.
Hi. I did a fresh re-install to ver 2.02 and only get 2 entities which are unavailable. (see screenshots). Please assist. Olarm.pdf olarm2.pdf