Closed jonathankretzmer closed 1 year ago
Hi @jonathankretzmer,
I added the fix for it just now. Can you please update and let me know if it is working?
I see the bugfix was done to the get_sensor_states
method, but also needed to be done to the get_sensor_bypass_states
method.
Also, there appears to be a new bug with the zone_types now too. I'll pop a quick PR through for you to review as I debugged it to get it working on my local installation anyway.
THanks @jonathankretzmer
Pleasure, happy to contribute 🙂
Hi @jonathankretzmer,
Is the new update (1.1.8) working on your side?
This particular issue is resolved.
However, I did receive an error related to the introduction of the Pin parameter and that it was missing; removing and then re-adding the integration fixed that.
2023-04-06 09:36:15.053 ERROR (MainThread) [homeassistant.components.alarm_control_panel] Error while setting up olarm_sensors platform for alarm_control_panel
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/olarm_sensors/alarm_control_panel.py", line 43, in async_setup_entry
sensor = OlarmAlarm(
File "/config/custom_components/olarm_sensors/alarm_control_panel.py", line 83, in __init__
if not self.coordinator.entry.data[CONF_ALARM_CODE] is None:
KeyError: 'olarm_arm_code'
Ok Cool. Yes, according to the release notes, the integration needs to be set up again due to the alarm panel code parameter. I am still looking for a way to add the ability to edit the configuration on the fly without having to redo the setup every time. Please note that the sensor names and entity ids have changed due to adding support for multiple olarm devices. Just in case someone has two different alarms with the same zone name in one of them.
The returned
olarm_zones["zonesLimit"]
does not accurately match the number of returned values inolarm_zones["zonesLabels"]
Whilst the iteration makes use of the
olarm_zones["zonesLimit"]
, this value differs from the number of returned values in the array. Perhaps this is an Evo192 panel nuance?The fix needs to be applied to both the following methods:
Here is the code snippet: