I have an alarm ( HARMONIA 2650 ) that makes an http connection on port 21 to indicate when it goes armed or disarmed and on port 42 if it rings. I currently have a python script that listens to these ports and sends me an SMS. I would like to integrate this into Home Assistant so that I know the status of my alarm. Do I have to write an integration or is it possible to use something existing?
I currently use the HA webhook which allows me to send myself a notification but it does not allow me to know the status of my alarm for other automation.
I also saw “HTTP sensor” but in the documentation it says “The sensor will then exist as long as Home Assistant is running. After a restart of Home Assistant the sensor will be gone until it is triggered again.” which can cause me problems in case of restart of HA after a power failure for example.
yes I wrote this python script. I modified it to make a webhook but it’s not enough for me. So I can actually make a mqtt call if that is the solution.
I have bypassed the operation of my alarm. It can communicate with a central via an http connection. I simply indicated as IP a local IP to get the information. I only have a user documentation but no technical documentation that explains this.
{ "alarm_state": "armed" } { "alarm_state": "disarmed" } { "alarm_state": "triggered" } or { "alarm_state": "sound" } if you prefer.
Mainly because it is an accepted standard and would be easy to add things to later without messing up your HA mqtt sensors if you discover there are more things you can send. But really you could just publish “armed” or “disarmed” to the topic of your choice and it could still easily be used by HA.