Hi all,
so I embarked into recompiling my yaml files as I understand that the current way I am using for sensors and alarm control panel will be “discontinued” as per the warning “This stops working in version 2022.12.0. Please address before upgrading.”
So, in the manual it states a very simple example however that doesn’t suite in my case as I have two alarm zones and the example is given only for one. There are people with many more zones then me, so the advise /solution will help many.
I currently have the following in my alarm_control_panel.yaml
- platform: mqtt
state_topic: 'paradox/alarm/state/1'
command_topic: 'paradox/alarm/cmnd/1'
name: Inside Alarm
payload_disarm: "DISARM"
payload_arm_away: "ARM_AWAY"
qos: 1
code_disarm_required: true
code_arm_required: false
- platform: mqtt
state_topic: 'paradox/alarm/state/2'
command_topic: 'paradox/alarm/cmnd/2'
name: Outside Alarm
payload_disarm: 'DISARM'
payload_arm_home: 'ARM_HOME'
payload_arm_away: 'ARM_AWAY'
qos: 1
code_disarm_required: true
code_arm_required: false
and from reading the documentation, I thought it was supposed to be like this:
mqtt:
alarm_control_panel:
- name: "Inside Alarm"
state_topic: "paradox/alarm/state/1"
command_topic: "paradox/alarm/cmnd/1"
payload_disarm: "DISARM"
payload_arm_away: "ARM_AWAY"
qos: 1
code_disarm_required: true
code_arm_required: false
- name: "Outside Alarm"
state_topic: "paradox/alarm/state/2"
command_topic: "paradox/alarm/cmnd/2"
payload_disarm: 'DISARM'
payload_arm_home: 'ARM_HOME'
payload_arm_away: 'ARM_AWAY'
qos: 1
code_disarm_required: true
code_arm_required: false
This has an error and does not work
On the alarm sensors, currently I have sensors like this:
- platform: mqtt
state_topic: 'paradox/zone/state/6'
name: "Study"
payload_on: "on"
payload_off: "off"
qos: 1
device_class: motion
- platform: mqtt
state_topic: 'paradox/zone/state/19'
name: "Lounge"
payload_on: "on"
payload_off: "off"
qos: 1
device_class: motion
and I am hoping that this is the correct way to convert (not sure just yet as I still need to resolve the alarm panel)
mqtt:
binary_sensor:
- name: "Study"
state_topic: "paradox/zone/state/6"
payload_on: "on"
payload_off: "off"
qos: 1
device_class: motion
- name: "Lounge"
state_topic: "paradox/zone/state/19"
payload_on: "on"
payload_off: "off"
qos: 1
device_class: motion
Will this work?
Please help