rainepretorius / olarm-ha-integration

Integration for Olarm devices created by a BSC(Computer Science and Mathematics) student.
https://raine.pretoriusse.net
BSD 2-Clause "Simplified" License
30 stars 13 forks source link

Installed ver 2.02 only shows 2 entities #32

Closed pickwit closed 1 year ago

pickwit commented 1 year ago

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

jonathankretzmer commented 1 year ago

Are you able to provide the exception being displayed in your HomeAssistant log?

pickwit commented 1 year ago

log.pdf

rainepretorius commented 1 year ago

log.pdf

Hi @pickwit , That is the device page and not the logs. The logs can be found here: http://::8123/config/logs/?filter=olarm_sensors

pickwit commented 1 year ago

HA Core Log.pdf Sorry about that. Here we go...

rainepretorius commented 1 year ago

Can you please click on each one of those errors and sent through the popup?

rainepretorius commented 1 year ago

It seems that it is trying to get data that does not exist, but I cannot yet see where.

pickwit commented 1 year ago

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

pickwit commented 1 year ago

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

pickwit commented 1 year ago

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

pickwit commented 1 year ago

These are the 3 errors copied and pasted

Sorry for the delay in posting. Power failure here

rainepretorius commented 1 year ago

Thanks @pickwit , I will try to implement a fix for this asap. Apologies for the continued outage due to certain added features.

pickwit commented 1 year ago

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: @.***>

pickwit commented 1 year ago

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

rainepretorius commented 1 year ago

Glad to hear that it is working. Sorry for the delayed response as I broke my finger the pas week.