Trying to run a generic thermostat. The Mqtt switch goes ‘ON’ when set temperature in higher than actual temperature. Then, setting temperature lower than actual temperature, the Mqtt switch remain on (no change, no Mqtt messages).
This my configuration:
climate:
- platform: generic_thermostat
name: Piano terra
heater: switch.termostato_piano_terra
target_sensor: sensor.temperatura_piano_terra
min_temp: 10
max_temp: 25
ac_mode: False
initial_operation_mode: "off"
switch 5:
- platform: mqtt
name: "termostato piano terra"
state_topic: "switch/relay_termostato_piano_inferiore/state"
command_topic: "switch/relay_termostato_piano_inferiore/switch"
payload_on: "1"
payload_off: "2"
state_on: "ON"
optimistic: false
qos: 0
retain: true
Thank you.
Fabio