@bedfellow wrote:
Hi,
I’m new here and very new to YAML, so sorry if this is obvious to everyone else, but I can’t get the thermostat card in HA to switch on/off my thermostat. I want it to control a sonoff basic, running Tasmota, with a AM2301 attached.
Here is the YAML extract for the relevant functions. The switch works in it’s own right, i.e. I can switch it on/off via HA and the sensor also works and can be displayed in HA but no matter what I set the temperature to on the thermostat card, it does not switch the sonoff on/off, it just displays idol even when the temperature is below the set point:
switch: - platform: mqtt name: "Boiler" command_topic: "cmnd/boiler/power" state_topic: "stat/boiler/POWER" qos: 1 payload_on: "ON" payload_off: "OFF" retain: false climate: - platform: generic_thermostat name: "Thermostat" heater: switch.boiler target_sensor: sensor.boiler min_temp: 7 max_temp: 26 min_cycle_duration: minutes: 1 initial_hvac_mode: "off" cold_tolerance: 0.5 hot_tolerance: 0.5 away_temp: 7 precision: 0.1 sensor: - platform: mqtt state_topic: 'tele/boiler/SENSOR' name: 'Room Temp' #AM2302 unit_of_measurement: '°C' value_template: '{{ value_json.AM2301.Temperature }}' - platform: mqtt state_topic: 'tele/boiler/SENSOR' name: 'Room Humidity' unit_of_measurement: '%' value_template: '{{ value_json.AM2301.Humidity }}'
Posts: 1
Participants: 1