Comfort Automation/ Security System Forums

Full Version: Comfort 2 Alarm working with Home Assistant!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9
Hi all,

I am sharing my Comfort integration with Home Assistant. This is a standalone Comfort to MQTT bridge for Cytech\'s Comfort II Ultra Alarm system with UCM/ETH03 module primarily intended to integrate with Home Assistant (or OpenHAB or other MQTT compatible systems). It can run on a Raspberry Pi and other systems with Python 3 support.

With Home Assistant, you can further extend the Comfort system with more complex logic, inputs, outputs and actions. Using virtual inputs, you can define additional zones in Comfort triggered by any sensor available in your Home Assistant setup. Or vice-versa, having Comfort trigger any action in your Home Assistant setup.


Instructions and source code available at:
https://github.com/koochyrat/comfort2

Attached is my HADashboard setup for Home Assistant




Very nice, Koochy_rat!
I hope you dont mind us sharing your news
No problem, please share away. It\'s totally free for anyone to use, modify or distribute Big Grin
This is something I\'ve been thinking about but I\'m not familiar with Home Assistant, do you have any guidance on using this with OpenHAB / Mosquitto?
Sorry, I am not familiar with OpenHAB, but it should just be about defining the appropriate topics for MQTT sensors and switches. The should be some guides out there on how to do this. Test with just one sensor, say \"comfort2/input1\" then activate that input by opening/closing doors or windows in the corresponding zone and you should see some message in the comfort2.py console as well as your mosquitto log and hopefully in OpenHAB. Comfort alarm does not need to be armed for this.
So, I have Home Assistant (HA) successfully running on a RaspberryPi with my MQTT broker, Mosquitto, running on another, separate, Pi on my home network. HA is using MQTT and it works perfectly for a number of Tasmota flashed switches. If I want to connect my Comfort alarm system to HA, is it essential I install the paho-mqtt client, and presumably on the Pi running HA? And - can Comfort be shown in HA automatically, or must I use the command once HA is running? Thanks so much for this - it looks like it will be fantastic! Smile
Yes, the comfort2.py script requires paho-mqtt library to be installed. It is not a broker so it won\'t interfere with your Mosquitto and HA. You can run it on any Pi in your network. Comfort will not show in HA automatically, you will need to manually setup HA accordingly with MQTT alarm, sensors, and switches. Check my github link above for details. Since you are using Mosquitto as your broker, set comfort2.py to connect to it. It doesn\'t matter who starts up first as it will constantly reattempt connection.
Thanks so much to koochy_rat for all his help and assistance with this fabulous extension to Comfort! Home Assistant (HA) is an open-source program that will happily run on a Raspberry Pi and can control and monitor numerous \'smarthome\' devices. Being able to integrate Comfort with HA is a huge plus as it brings everything together under one UI. After a couple of minor issues, which koochy_rat soon fixed, I have this working. One issue that may be of use is that if you follow the instructions supplied, if - or when - your terminal session times-out, the program will stop running and all the Comfort entities will be unavailable. I found that using the command \'exec python3 comfort2.py &> /dev/null &\' ensures it runs in the background and will NOT stop when you close your Pi terminal session. If you then need to stop the process, use top -u pi (assuming you are running it as the pi user) to see what PID is associated with the python3 process and then kill xxxx where xxxx is that PID. Great work - well worth looking at!Smile
Hi Koochy_rat,
I was looking for a way to get Comfort to talk to my Home Automation system and you have created one. Thanks for that.
I implemented Comfort2.py on a debian VM machine ( esxi Vmware) which is also running an open source HA system named Jeedom. I just took out the line calling Home Assistant.
My jeedom app detected the comfort2 \"equipment \" and started to record the first status messages send by comfort. So was happy to see the disarmed sattus to appear when I did disarmed the alarm.

Now, is it possible to get my Jeedom app to send commands to Comfort through Mosquitto? Any examples of commands would be helpful. Thank you again.
Hi Koochy_rat,
I was looking for a way to get Comfort to talk to my Home Automation system and you have created one. Thanks for that.
I implemented Comfort2.py on a debian VM machine ( esxi Vmware) which is also running an open source HA system named Jeedom. I just took out the line calling Home Assistant.
My jeedom app detected the comfort2 \"equipment \" and started to record the first status messages send by comfort. So was happy to see the disarmed sattus to appear when I did disarmed the alarm.

Now, is it possible to get my Jeedom app to send commands to Comfort through Mosquitto? Any examples of commands would be helpful. Thank you again.
Pages: 1 2 3 4 5 6 7 8 9