Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Comfort 2 Alarm working with Home Assistant!
#31
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

#32
You would need UCM/Pi to use MQTT

#33
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

#34
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

#35
[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.

#36
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

#37
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


#38
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.

#39
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 ?

#40
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.



Forum Jump:


Users browsing this thread:
8 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.