Comfort  Automation/ Security System Forums Home

 Moderated by: slychiu  
AuthorPost
Sota
UCM Pi Users
 

Joined: Friday May 3rd, 2013
Location: Galway, Ireland
Posts: 86
Status: 
Offline

  back to top

I posted this on Discord, but as it seems to be dead over there I will post it here as well. I have setup a number of Sonoff NSPanel Pro devices to act as wall-mounted touchscreens for HA and I wanted to use them as alarm contol panels along with controlling lights, heating, etc. As Comfort is setup with a number of different codes for family members, guest, etc. I wanted to allow everyone to be able to sign-in to the alarm using their own codes.By default, the HA MQTT Alarm Control Panel only allows one fixed code in the configuration, but I have discovered that it now allows the code to be validated by the alarm system itself. I've tested this out and it works perfectly. This is my setup with the old settings commented out:
mqtt:
  - alarm_control_panel:
    name: 'Comfort Alarm'
    unique_id: comfort_alarm_panel_1
    state_topic: 'homeassistant/alarm/comfort/alarm_mode/status'
    command_topic: 'homeassistant/alarm/comfort/alarm_mode/set'
    code_arm_required: false
    code_disarm_required: true
    payload_arm_away: 'away'
    payload_arm_home: 'day'
    payload_arm_night: 'night'
    payload_arm_vacation: 'vacation'
    payload_disarm: 'off'
    payload_arm_custom_bypass: '#'
#  code: "1234"
#  command_template: '{{action}},{{code}}'
    code: REMOTE_CODE
    command_template: >
        { "action": "{{ action }}", "code": "{{ code }}" }
 

Attachment: Image 2023-09-08 at 09.29.40.jpg (Downloaded 20 times)

slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5766
Status: 
Offline

  back to top

Thats wonderful. is this the same setup as in http://www.comfortforums.com/forum27/4879.html ? I need to try that

Sota
UCM Pi Users
 

Joined: Friday May 3rd, 2013
Location: Galway, Ireland
Posts: 86
Status: 
Offline

  back to top

No, this uses the UCM/Pi instead of the ETH03 connection but there is no reasn why it shouldn't work as both alarm panels are connecting over MQTT.


UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems