Awesome ,thank you
Will Glady share the code once done. Just busy with some custom pop-up cards.
Depending on the state of the sensor the colour changes from green, to yellow to red
This looks great! I would love to be on the list of people that you share this with when its ready. Thanks!
Hello! I have been attempting to create an integration similar to this but unfortunately have not had the time so I was very excited when I saw this!!
Looks like I am getting the following error in my logs when attempting to setup. Any thoughts?
Traceback (most recent call last):
File "/config/custom_components/olarm_sensors/olarm_api.py", line 256, in get_panel_states
if zone2:
UnboundLocalError: local variable 'zone2' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/olarm_sensors/binary_sensor.py", line 30, in async_setup_entry
await coordinator.async_get_data()
File "/config/custom_components/olarm_sensors/coordinator.py", line 71, in async_get_data
self.panel_data = await self.api.get_panel_states()
File "/config/custom_components/olarm_sensors/olarm_api.py", line 317, in get_panel_states
except aiohttp.web_exceptions.Any as ex:
TypeError: catching classes that do not inherit from BaseException is not allowed
Hi @maxc123,
I have updated the code to fix and accommodate alarm panels that do not have a secondary zone. As well as fixing that bug. It is also now installable via HACS, and thereafter it will be able to be updated via the ui.
Great work Raine
Hey Tim, would be lovely if you could share the full integration with me too. Switched from Pradox to Olarm last year and itās like day and night. Would be great to integrate to HA now. I am struggeling with the first task already - getting the api. Canāt seem to find it in Olarmās website.
Thanks in advance
Ben
UPDATE: Was able to integrate Olarm in my HA - great work Raine! Sent you an email as my 3 Zones are shown āunavailableā in HA. Also can I also scan all my sensors? Or does your integration only map Olarms alam panel only for now?
Thanks so much for all your hard work
It maps the sensors for your alarm panel, the state of each sensor and the state for each area. I also added the ability to use ukeys and pgmās.
Hi Jakesie
Is there any update on this?
Hi there
I have notice that every time i restart HA, the alarm panel entity does not work. The only way to fix this is to remove the integration, re-setup and then the alarm panel works again.
Please see below error log.
Logger: homeassistant.config_entries
Source: helpers/entity_component.py:169
First occurred: 09:01:35 (3 occurrences)
Last logged: 09:01:35
Error setting up entry Olarm Sensors for alarm_control_panel
Error setting up entry Olarm Sensors for binary_sensor
Error setting up entry Olarm Sensors for button
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/alarm_control_panel/__init__.py", line 115, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 169, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
```
HI there
Almost done. Just ironing some issue out. Need to change again as i am making use of the fantastic alarm interrogation from Rainepretorius
Will share once done
I will look into it.
Well done.
I guess I should have enabled notifications on this thread. I come back to find a whole integration has been built since I posted in January Sorry to those that I didnāt respond to in this thread.
Good day all,
So thanks a lot to the contributors for the integration, mine is working on a DSC PowerSeries alarm. I was just wondering - how would one actually trigger the alarm using this integration? I tried the service - but it didnāt work? I want to try and see how far I can stretch the application of my alarm in the house using my other PIRās that arenāt directly linked to the alarm panel and/or Olarm.
Also, canāt whether there is a specific PGM linked to the trigger. Your help would be appreciated.
I have the error below with too many API attempts in the Olarm integration. I have changed this from 5 to 10, however the app/integration is not as responsive then as what it used to be.
This is due to Olarm limiting X amount of API calls in a certain timeframe.
If you have this issue, please log a call with Olarm for this error.
The reason is so that they can see how many users use this integration and put more resources to creating the MQTT/HomeKit/Google Home/API connectivity that they have been promising since last year.
See post below on the GitHub site.
Error:
Logger: custom_components.olarm_sensors
Source: custom_components/olarm_sensors/olarm_api.py:87
Integration: Olarm Sensors (documentation, issues)
First occurred: October 30, 2023 at 11:04:09 AM (7676 occurrences)
Last logged: 6:46:29 AM
Your refresh interval is set too frequent for the Olarm API to handle
Good day all, I have done an update on the Olarm Integration today and all of a sudden I am getting errors. What am I doing wrong?
Logger: homeassistant.setup
Source: setup.py:377
First occurred: 12:03:13 PM (5 occurrences)
Last logged: 12:03:13 PM
Unable to prepare setup for platform olarm_sensors.alarm_control_panel: Platform not found (cannot import name 'DeviceInfo' from 'homeassistant.helpers.device_registry' (/usr/src/homeassistant/homeassistant/helpers/device_registry.py)).
Unable to prepare setup for platform olarm_sensors.binary_sensor: Platform not found (cannot import name 'DeviceInfo' from 'homeassistant.helpers.device_registry' (/usr/src/homeassistant/homeassistant/helpers/device_registry.py)).
Unable to prepare setup for platform olarm_sensors.button: Platform not found (cannot import name 'DeviceInfo' from 'homeassistant.helpers.device_registry' (/usr/src/homeassistant/homeassistant/helpers/device_registry.py)).
Unable to prepare setup for platform olarm_sensors.sensor: Platform not found (cannot import name 'DeviceInfo' from 'homeassistant.helpers.device_registry' (/usr/src/homeassistant/homeassistant/helpers/device_registry.py)).
Unable to prepare setup for platform olarm_sensors.switch: Platform not found (cannot import name 'DeviceInfo' from 'homeassistant.helpers.device_registry' (/usr/src/homeassistant/homeassistant/helpers/device_registry.py)).
Hey @jakesie
Sorry to ping you on this old thread, Iām just curious if you managed to release your custom card for the alarm stuff?
It looked really neat!
Hey @eitel13
Apologies for the late reply. Never got time to create the card but happy to share the yaml code with you and assist where I can.