Hello there,
I am pretty new to Home Assistant, comming from the Domoticz world, and I have an device that have 4 states presented by MQTT.
This device is controling using french “fil pilote” the heather that have it’s own thermostat.
I would like to have the following “buttons”:
- Confort
- Eco
- Hors-Gel
- Off
(and maybe later: - Confort -1°C
- Confort -2°C)
I figure to get this using MQTT with the following template, but I would remove the “temperature” thing which is not interesting for my usage (in my configuration.yaml)
mqtt:
climate:
- name: "Fil pilote"
unique_id: chalet_fil_pilot
payload_on: 1
payload_off: 0
modes:
- heat
- heat_cool
- cool
- 'off'
mode_state_topic: "filpilot/Status"
mode_state_template: >-
{% set values = { 'Off':'off', 'Hors-Gel':'cool', 'Eco':'heat_cool', 'Confort':'heat'} %}
{{ values[value] if value in values.keys() else 'off' }}
mode_command_topic: "filpilot/set"
mode_command_template: >-
{% set values = { 'off':'Off', 'cool':'Hors-Gel', 'heat_cool':'Eco', 'heat':'Confort'} %}
{{ values[value] if value in values.keys() else 'Off' }}
availability_topic: "filpilot/availability"
Any good hint I can use for make this better?