I just got the Xfinity Zigbee Keypad and was able to write some ZHA automations using the zha_event from the Keypad to set Alarmo Arm Away/Disarm. The problem is I can’t find the correct Alarmo service code for Home Away.
You probably know, but the sequence on the keypad is to press one of the top buttons with icons for Disarm/Arm Away/Arm Home, followed by your 4-digit PIN. This throws the zha_event. Based on the the Arm Mode Description (Arm_All_Zones, Arm_Night_Sleep_Only, or Arm_Day_Home_Only), I set Alarmo to the appropriate mode. My code is below.
Problem is I cannot find the Alarmo Arm Home Service call. The other two are service: alarmo.arm and service: alarmo.disarm. arm just sets Arm Away. Does anyone know what the service call is for Alarmo Arm Home?
My code:
- id: '1681839081579'
alias: Alarm KeyPad Disarm
description: ''
trigger:
- platform: event
event_type: zha_event
event_data:
command: arm
args:
arm_mode_description: Arm_Day_Home_Only
condition: []
action:
- service: alarmo.disarm
data:
entity_id: alarm_control_panel.alarmo
code: '{{ trigger.event.data.args.code }}'
mode: single
- id: '1681841666611'
alias: Alarm KeyPad Arm Away
description: ''
trigger:
- platform: event
event_type: zha_event
event_data:
command: arm
args:
arm_mode_description: Arm_All_Zones
condition: []
action:
- service: alarmo.arm
data:
entity_id: alarm_control_panel.alarmo
code: '{{ trigger.event.data.args.code }}'
mode: single
- id: '1681842591517'
alias: Alarm KeyPad Alarm Home
description: ''
trigger:
- platform: event
event_type: zha_event
event_data:
command: arm
args:
arm_mode_description: Arm_Night_Sleep_Only
condition: []
action:
- service: alarmo.arm_home **(This is not correct, I need the correct Arm Home code)**
data:
entity_id: alarm_control_panel.alarmo
code: '{{ trigger.event.data.args.code }}'
mode: single
Update: @neliss provided the answer, many thanks to him:
- service: alarmo.arm
data:
entity_id: alarm_control_panel.alarmo
code: '{{ trigger.event.data.args.code }}'
mode: home # can be any of away/home/night/vacation/custom