Edited your Home Assistant thermostat script for use with the Omnilinkbridge.
Not sure if I got it all right. I have not yet implemented it.
climate:
- platform: mqtt
name: "thermostat1"
unique_id: '1234567890'
payload_on: 1
payload_off: 0
activity_state_topic: "omnilink/thermostat1/current_operation"
activity_state_template: >-
{% set values = { '1':'heat', '2':'cool', '4':'idle'} %}
{{ values[value] if value in values.keys() else 'idle' }}
modes:
- auto
- heat
- cool
- 'off'
mode_state_topic: "omnilink/thermostat1/mode_state"
mode_state_template: >-
{% set values = { '0':'auto', '1':'heat', '2':'cool', '4':'off'} %}
{{ values[value] if value in values.keys() else 'off' }}
mode_command_topic: "omnilink/command/thermostat1/mode_state"
mode_command_template: >-
{% set values = { 'auto':'0', 'heat':'1', 'cool':'2', 'off':'4'} %}
{{ values[value] if value in values.keys() else '4' }}
fan_modes:
- auto
- 'on'
fan_mode_state_topic: "omnilink/thermostat1/fan_mode_state"
fan_mode_state_template: >-
{% set values = { '0':'auto', '1':'on'} %}
{{ values[value] if value in values.keys() else 'auto' }}
fan_mode_command_topic: "omnilink/command/thermostat1/fan_mode_state"
fan_mode_command_template: >-
{% set values = { 'auto':'0', 'on':'1'} %}
{{ values[value] if value in values.keys() else '0' }}
current_current_temperature_topic: "omnilink/thermostat1/current_temperature"
min_temp: 17
max_temp: 28
temp_step: 0.5
current_temperature_state_topic: "omnilink/thermostat1/temperature_heat_state"
current_temperature_command_topic: "omnilink/command/thermostat1/temperature_heat_state"
hold_state_topic: "omnilink/thermostat1/hold_state"
hold_state_template: "{{ 'hold' if value == '2' else 'auto' }}"
hold_command_topic: "omnilink/command/thermostat1/hold_state"
hold_command_template: "{{ '2' if value == 'hold' else '0' }}"
Curious about the temperature_heat_state versus temperature_cool_state?