Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Comfort 2 Alarm working with Home Assistant!
#11
I\'m not familiar with Jeedom, but a quick search shows that there are quite a few MQTT plugins for it. To send commands, you mainly just need to publish the \'comfort2/alarm/set\' topic to ARM_HOME, ARM_AWAY or DISARM
#12
Thanks for the answer , I can see coming traffic form comfort in my debian terminal window, can see that it records a new entry in the list of commands, but did not finf the way /syntax to get a command send from my jeedom app to comfort. IN the sample I published, is the topic syntax ok? And the \"Valeur\" ( Payload), just DISARM? When testing this command I dont see anything on my debian terminal window.
#13
Replying to myself.
I was missing to publish as a message. Works now. Many thanks.
Is there a list of the Value(Payload) possibilities to access all commands of Comfort?I am trying to get the gsm message to be forwarded to my HA app through MQTT.
#14
If you\'d like more control over Comfort, you can use Comfigurator to program a custom Response that allows you to use Comfort internal commands. Then use MQTT to trigger that Response. However I\'m not sure if getting the gsm message is possible even with that.
#15
Was able to record a Control group command in the Comfort SMS table that did actionnate a flag, captured by MQTT and by my jeedom app.
Means I should now send through comfort SMS to actioonate any other equipment that is not connected to comfort.
#16
About starting the thing on a raspberry pi: that system (I use dietpi but others probably the same) uses systemd. So to use it unattended and autostart on boot, create a systemd service file (example below) and enable and start it.

The file (place in /etc/systemd/system/comfort2.service):

Code:
[Unit]
Description=Cytech Comfort to MQTT bridge
After=local-fs.target network.target

[Service]
Type=simple
ExecStart=/usr/bin/python3 /root/comfort2.py

[Install]
WantedBy=multi-user.target

Enable and start it:
Code:
systemctl daemon-reload
systemctl enable comfort2
systemctl start comfort2

Steef
#17
BTW anyone noticed that setting an OUTPUT through MQTT offsets by one (setting comfort2/output10/set to 1 sets output 11 not output 10)? Seems not to happen at other inputs.

Other thing: has anyone succesfully used virtual inputs (so set an input through MQTT to comfort and was able to see this reflected in comfigurator status?

I use this script adapted to USB input instead of ETH with openhab on the other side of MQTT.
#18
[user=5347]mikeinnc[/user] wrote:
Quote: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,
I am trying to see if I can get this working with openhab2.
So far I have installed mosquitto broker, and installed paho-mqtt
I am confused now as the next step is to edit the comfort2.py file but I cannot find this, where should it be located ?
#19
You need to grab it from here - https://github.com/koochyrat/comfort2/blob/master/comfort2.py

I just copied and pasted it into a notepad ++ window and then saved that file to where I could run it.
#20
Thanks, so I have an matt broker setup, I have comfort talking to it, and I have openhab talking to the broker. Now just need to figure out how to get them to bejave


Forum Jump:


Users browsing this thread: 1 Guest(s)