Comfort Automation/ Security System Forums
Comfort 2 Alarm working with Home Assistant! - Printable Version

+- Comfort Automation/ Security System Forums (https://www.comfortforums.com)
+-- Forum: Software Applications (https://www.comfortforums.com/forum-4.html)
+--- Forum: Comfort with Home Assistant (https://www.comfortforums.com/forum-143.html)
+--- Thread: Comfort 2 Alarm working with Home Assistant! (/thread-4879.html)

Pages: 1 2 3 4 5 6 7 8 9


- theshepherdmatt - 07-04-2019

Hi mate,
Bit of an old thread, but is it possible to send commands to comfort from openhab? i know that the items file is reading states, but can it set the alarm via published mqtt?
cheersmatt


- slychiu - 07-05-2019

You would need UCM/Pi to use MQTT



- theshepherdmatt - 07-05-2019

Hi Slychui,
I already have koochyrat\'s python code running on my pi that is receiving mqtt messages from Comfort but I\'d like to send commands to comfort from my Pi but I don\'t know how comfort executes these commands, I think it\'s under responses but i\'ve hit a wall.
Cheers


- slychiu - 07-06-2019

The Comfort serial Protocol is the format of messages sent and received by Comfort which others have used to communicate with Comfort.
You can download from here. https://www.cytech.biz/serial_interface_protocol.html



- koochy_rat - 07-08-2019

[user=30940]theshepherdmatt[/user] wrote:
Quote:Hi Slychui,
I already have koochyrat\'s python code running on my pi that is receiving mqtt messages from Comfort but I\'d like to send commands to comfort from my Pi but I don\'t know how comfort executes these commands, I think it\'s under responses but i\'ve hit a wall.
Cheers

Yes, using responses is the most flexible way. You can use Comfigurator to program what each response does. Then via MQTT, just set a dummy value to the response to trigger it.


- theshepherdmatt - 07-08-2019

Hi Hoochy_rat,
Many thanks for the code, I\'ve finally got my head around the Openhab side of MQTT and can now send commands to (via Alexa) Comfort.
Cheers fella



- nbexiga - 06-11-2020

HI
i just configure Home Assistant and i can communicate with the comfort.
now i need help with the devices and the configurations that i have currently for my devices.in the main windows , with this yaml file, i only can see ARM AWAY and ARM HOME
I need to configure the way as i have in my cytech configuration , the buttons for AWAY MODE , NIGHT MODE , AND DAY MODE.
Waht changes do i have to make in the yaml file from https://github.com/koochyrat/comfort2
Currently my configuration.yaml file is :
#comfortalarm_control_panel:  - platform: mqtt    name: Comfort Alarm    state_topic: \"comfort2/alarm\"    command_topic: \"comfort2/alarm/set\"    availability_topic: \"comfort2/alarm/online\"    code_arm_required: true    code_disarm_required: true    payload_available: \"1\"    payload_not_available: \"0\"
AnyOne that can help?
Thanks




- koochy_rat - 06-12-2020

This is the mapping from Home assistant:
Quote:if msgstr == \"ARM_HOME\":
self.comfortsock.sendall((\"\\x03m!03\"+self.comfort_pincode+\"\\").encode()) #arm to 03 day mode
elif msgstr == \"ARM_NIGHT\":
self.comfortsock.sendall((\"\\x03m!02\"+self.comfort_pincode+\"\\").encode()) #arm to 02 night mode
elif msgstr == \"ARM_AWAY\":
self.comfortsock.sendall((\"\\x03m!01\"+self.comfort_pincode+\"\\").encode()) #arm to 01 away mode

ARM_HOME is for day mode. However Home assistant\'s UI does not have night mode, you have to find a way of adding that or use a different plugin.


- wexfordman - 02-05-2021

Hi koochi, So I decided to abandon my openhab installation and try and move over to HASS, and see if I could implement your solution. Of course, Ive stumbled at the first hurdle again. I have installed HASS on a RPI3B, it is HASSOS/HASSIO, so i cannot SSH into it and run the commands to install mqtt client etc.

Any reccomendations I could look at to work around this ?


- Ian - 02-08-2021

I came across your script on Github, I didn\'t realise it was already a discussion on here!
I have it running and use it to interface to HomeSeer software - it works well.
Thank you.