06-17-2023, 01:03 PM
ok,
Forgive any innacuracies or errors, I am not really good at linux/coding etc, so this is how I stumbled accross it.
First off, my installation is home assistant supervised, installed onto a rpi 3 using the standard install image.
The problem with this install, is I beleive that it is a \"containerised\" install, is heavily locked down, and does not have many of the linux applications etc installed to allow you run koochies install, so some modifications are required. Please feel free to expand on any of my poiints below (either by correction or explaining what is happening which would be helpful to those of us without the detailed understanding).
So, first off, what I think I am doing, is this. SSH into HA. I do this via an ssh add on, but not the normal one. The normal ssh add on takes you to the HA container, which is not suitable for this purpose (please forgive me if this is not the correct explanation, but it is what I think is the explanation).
I use an add on called \"advanced ssh and web terminal\"
Once installed (from the addon store) TURN OFF PROTECTION MODE and ENABLE SHOW IN SIDEBAR\"
Then start the addon.(it is slow to start)
the comfort2.py file koochie provided needs edited and be saved in the config folder. I do this, by enabling samba share and then using windows to connect to it like a network drive/folder, i edit the file with notepad then.
once comfort2.py is edited and installed, then in HA
Click on the TERMINAL
and use koochys 2 commands:pip3 install paho-mqtt
Followed by:
python3 config/comfort2.py
you should then see the terminal startup and connect to comfort and report back.
The configuration.yaml file now needs to be updated, as the format is different from when koochie wrote his documentation. I am pasting my file below, which is/was done by trial and error, so it works. You need to do this to ensure the entities get created and mapped to the correctr comfort inputs etc. \"
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
# Text-to-speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# Example configuration.yaml entry
mqtt:
binary_sensor:
- name: \"Front Door\"
unique_id: \"front door\"
state_topic: \"comfort2/input1\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Kitchen Door\"
unique_id: \"Kitchen door\"
state_topic: \"comfort2/input2\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Back Door\"
unique_id: \"Back door\"
state_topic: \"comfort2/input3\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Office Door\"
unique_id: \"Office door\"
state_topic: \"comfort2/input4\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Hall Motion\"
unique_id: \"Hall Motion\"
state_topic: \"comfort2/input5\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Corridoor Motion\"
unique_id: \"Corridoor Motion\"
state_topic: \"comfort2/input6\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Kitchen Motion\"
unique_id: \"Kitchen Motion\"
state_topic: \"comfort2/input7\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Den Motion\"
unique_id: \"Den Motion\"
state_topic: \"comfort2/input8\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Utility Motion\"
unique_id: \"Utility Motion\"
state_topic: \"comfort2/input9\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Office Motion\"
unique_id: \"Office motion\"
state_topic: \"comfort2/input10\"
payload_on: \"1\"
payload_off: \"0\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
- name: \"Bathroom Motion\"
unique_id: \"Bathroom Motion\"
state_topic: \"comfort2/input11\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Ciaran Motion\"
unique_id: \"Ciaran Motion\"
state_topic: \"comfort2/input12\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Guest Motion\"
unique_id: \"Guest Motion\"
state_topic: \"comfort2/input13\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Master Bedroom Motion\"
unique_id: \"Master Bedroom Motion\"
state_topic: \"comfort2/input14\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"En Suite Motion\"
unique_id: \"En Suite Motion\"
state_topic: \"comfort2/input15\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"En Suite Door\"
unique_id: \"En Suite Door\"
state_topic: \"comfort2/input16\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Dressing Room Door\"
unique_id: \"Dressing Room Door\"
state_topic: \"comfort2/input17\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Kelly Motion\"
unique_id: \"Kelly Motion\"
state_topic: \"comfort2/input18\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Living Room Motion\"
unique_id: \"Living Room Motion\"
state_topic: \"comfort2/input19\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"En Suite Door\"
unique_id: \"En Suite door\"
state_topic: \"comfort2/input24\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
alarm_control_panel:
- name: \"Comfort Alarm\"
unique_id: \"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
that seems to work for me. The last bit is to get it to autostart, which I havent done yet, but will see if it works now in a while and post back.
I think the 2 key things here are with the standarad supervised install, you need to use an elevated version of ssh to get access to run the commands koochie has shown and the second point is the yaml file sytnax has changed to something like what I have posted above.
Forgive any innacuracies or errors, I am not really good at linux/coding etc, so this is how I stumbled accross it.
First off, my installation is home assistant supervised, installed onto a rpi 3 using the standard install image.
The problem with this install, is I beleive that it is a \"containerised\" install, is heavily locked down, and does not have many of the linux applications etc installed to allow you run koochies install, so some modifications are required. Please feel free to expand on any of my poiints below (either by correction or explaining what is happening which would be helpful to those of us without the detailed understanding).
So, first off, what I think I am doing, is this. SSH into HA. I do this via an ssh add on, but not the normal one. The normal ssh add on takes you to the HA container, which is not suitable for this purpose (please forgive me if this is not the correct explanation, but it is what I think is the explanation).
I use an add on called \"advanced ssh and web terminal\"
Once installed (from the addon store) TURN OFF PROTECTION MODE and ENABLE SHOW IN SIDEBAR\"
Then start the addon.(it is slow to start)
the comfort2.py file koochie provided needs edited and be saved in the config folder. I do this, by enabling samba share and then using windows to connect to it like a network drive/folder, i edit the file with notepad then.
once comfort2.py is edited and installed, then in HA
Click on the TERMINAL
and use koochys 2 commands:pip3 install paho-mqtt
Followed by:
python3 config/comfort2.py
you should then see the terminal startup and connect to comfort and report back.
The configuration.yaml file now needs to be updated, as the format is different from when koochie wrote his documentation. I am pasting my file below, which is/was done by trial and error, so it works. You need to do this to ensure the entities get created and mapped to the correctr comfort inputs etc. \"
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
# Text-to-speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# Example configuration.yaml entry
mqtt:
binary_sensor:
- name: \"Front Door\"
unique_id: \"front door\"
state_topic: \"comfort2/input1\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Kitchen Door\"
unique_id: \"Kitchen door\"
state_topic: \"comfort2/input2\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Back Door\"
unique_id: \"Back door\"
state_topic: \"comfort2/input3\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Office Door\"
unique_id: \"Office door\"
state_topic: \"comfort2/input4\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Hall Motion\"
unique_id: \"Hall Motion\"
state_topic: \"comfort2/input5\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Corridoor Motion\"
unique_id: \"Corridoor Motion\"
state_topic: \"comfort2/input6\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Kitchen Motion\"
unique_id: \"Kitchen Motion\"
state_topic: \"comfort2/input7\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Den Motion\"
unique_id: \"Den Motion\"
state_topic: \"comfort2/input8\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Utility Motion\"
unique_id: \"Utility Motion\"
state_topic: \"comfort2/input9\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Office Motion\"
unique_id: \"Office motion\"
state_topic: \"comfort2/input10\"
payload_on: \"1\"
payload_off: \"0\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
- name: \"Bathroom Motion\"
unique_id: \"Bathroom Motion\"
state_topic: \"comfort2/input11\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Ciaran Motion\"
unique_id: \"Ciaran Motion\"
state_topic: \"comfort2/input12\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Guest Motion\"
unique_id: \"Guest Motion\"
state_topic: \"comfort2/input13\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Master Bedroom Motion\"
unique_id: \"Master Bedroom Motion\"
state_topic: \"comfort2/input14\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"En Suite Motion\"
unique_id: \"En Suite Motion\"
state_topic: \"comfort2/input15\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"En Suite Door\"
unique_id: \"En Suite Door\"
state_topic: \"comfort2/input16\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Dressing Room Door\"
unique_id: \"Dressing Room Door\"
state_topic: \"comfort2/input17\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Kelly Motion\"
unique_id: \"Kelly Motion\"
state_topic: \"comfort2/input18\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"Living Room Motion\"
unique_id: \"Living Room Motion\"
state_topic: \"comfort2/input19\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
- name: \"En Suite Door\"
unique_id: \"En Suite door\"
state_topic: \"comfort2/input24\"
availability_topic: \"comfort2/alarm/online\"
payload_available: \"1\"
payload_not_available: \"0\"
payload_on: \"1\"
payload_off: \"0\"
alarm_control_panel:
- name: \"Comfort Alarm\"
unique_id: \"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
that seems to work for me. The last bit is to get it to autostart, which I havent done yet, but will see if it works now in a while and post back.
I think the 2 key things here are with the standarad supervised install, you need to use an elevated version of ssh to get access to run the commands koochie has shown and the second point is the yaml file sytnax has changed to something like what I have posted above.