Hi,
I am in the 3rd week of home assistant, and learning fast. I am at the point of configuring my my Comfort2 alarm system with paho-mqtt bridge, to get my HA connected to the alarm panel.
This was first done at the following link: GitHub - koochyrat/comfort2: Cytech Comfort 2 Alarm MQTT Bridge (Home Assistant/OpenHAB compatible)
koochyrat was kind enough to make a step by step process with config text that was to be copied configuration.yaml.
This project is 4 years old, and I can see that the mqtt sensors are not shown in entities, probably due to a change in the format for the YAML file for MQTT sensors.
I am struggling to correct these sensors to the new format in the YAML without returning an error.
NEW FORMAT:
mqtt:
alarm_control_panel:
- name: Comfort Alarm
state_topic: "comfort2/alarm"
command_topic: "comfort2/alarm/set"
availability_topic: "comfort2/alarm/online"
payload_available: "1"
payload_not_available: "0"
code: "1234"
mqtt:
binary_sensor:
- name: Front Door
state_topic: "comfort2/input1"
availability_topic: "comfort2/alarm/online"
payload_on: "1"
payload_off: "0"
payload_available: "1"
payload_not_available: "0"
- name: Front Motion
state_topic: "comfort2/input8"
availability_topic: "comfort2/alarm/online"
payload_on: "1"
payload_off: "0"
payload_available: "1"
payload_not_available: "0"
OLD FORMAT:
alarm_control_panel:
- platform: mqtt
name: Comfort Alarm
state_topic: "comfort2/alarm"
command_topic: "comfort2/alarm/set"
availability_topic: "comfort2/alarm/online"
payload_available: "1"
payload_not_available: "0"
code: "1234" #code can be different from Comfort's
binary_sensor:
- platform: mqtt
name: Front Door
state_topic: "comfort2/input1"
availability_topic: "comfort2/alarm/online"
payload_on: "1"
payload_off: "0"
payload_available: "1"
payload_not_available: "0"
- platform: mqtt
name: Front Motion
state_topic: "comfort2/input8"
availability_topic: "comfort2/alarm/online"
payload_on: "1"
payload_off: "0"
payload_available: "1"
payload_not_available: "0"
I have tried to correct 1 sensor to new format, but probably not correct until all have been re-formatted.
I have zero experience in YAML and MQTT, and any help would be greatly appreciated.
Thanks,
Iain