I have created this climate:

- name: "Riscaldamento"
  unique_id: "termostato"
  modes:
    - "off"
    - "heat"
    - "cool"
  mode_command_topic: "home/riscaldamento_raffrescamento/TEST/mode/set"
  mode_state_topic: "home/riscaldamento_raffrescamento/TEST/mode/state"
  temperature_command_topic: "home/riscaldamento_raffrescamento/TEST/temp/set"
  current_temperature_topic: "home/riscaldamento_raffrescamento/TEST/temp/state"
  power_command_topic: "home/riscaldamento_raffrescamento/TEST/pump/set"
  payload_on: 1 
  payload_off: 0
  min_temp: 17
  max_temp: 28
  temp_step: 0.1
  precision: 0.1

thinking that the power_command_topic would be sent whenever the temperature would go over/under the one set, but nothing ever get send to that topic. How can I turn on the pump when the temperature goes under the one set and turn it off when it goes over?

  • paf@jlai.lu
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    here is my config yaml for climate. added hint for your case but i never had heat pump, does your heat pump only heat or does it also cool? exemple here is ok if only heat. If yours heat/cool, try some of the hacs thermostat addon. A quick search led me to this https://community.home-assistant.io/t/generic-thermostat-switch-between-heating-and-cooling/420053 which point to https://github.com/swingerman/ha-dual-smart-thermostat but i know they are more hacs addon for thermostat, you may need to search which is good for your use if the one above doesn’t suit your needs

    climate:
      - platform: generic_thermostat
        name: Thermostat Chambre (Riscaldamento)
        heater: switch.radiateur_chambre (device to toggle your heat pump)
        target_sensor: sensor.sonde_chambre_temperature (your temp sensor)
        min_temp: 12
        max_temp: 21
        ac_mode: false
        target_temp: 19
        cold_tolerance: 0
        hot_tolerance: 0.1
        min_cycle_duration:
          seconds: 300
        keep_alive:
          minutes: 3
        initial_hvac_mode: "off" (set this to heat if you want it to be active when HA start/reboot)
        away_temp: 12
        precision: 0.1