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?

  • peregus@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    I think I will, I just wanted to avoid automation (it’s getting pretty crowded there!) to read ambient temperature from MQTT

    • Jakor@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      10 months ago

      I don’t have an answer for you, but this comment reminds me how badly home assistant needs to add subfolders for organizing and grouping our automations

      • paf@jlai.lu
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 months ago

        If I recall correctly, chances are they are coming this year

        • Jakor@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          10 months ago

          Fingers crossed! I know one YouTuber I follow mentioned it in his “2024 predictions” - wasn’t sure if he was pulling ideas out of his butt or if there had been actual commitment to this idea. Your comment gives me hope it’s the latter!

          • paf@jlai.lu
            link
            fedilink
            English
            arrow-up
            1
            ·
            10 months ago

            Can’t recall which video (maybe “year of the voice chapter 5”) but devs talked about it on official youtube Channel

    • paf@jlai.lu
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Unless you want some specific schedule, there is no need for automation, add config to yaml and it is good to go

      • peregus@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 months ago

        Don’t I need at least one to read the temperature from MQTT? Or can I just use an MQTT sensors? How?

        • paf@jlai.lu
          link
          fedilink
          English
          arrow-up
          2
          ·
          10 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
          
          • peregus@lemmy.worldOP
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            5 months ago

            I’m trying to use the generic thermostat:

            climate:
              - platform: generic_thermostat
                name: termostato_raffreddamento
                heater: switch.valvola_climatizzazione
                target_sensor: sensor.aqara_temp_sala_temperature
                min_temp: 24
                max_temp: 28
                ac_mode: true
                target_temp: 26 
                cold_tolerance: 0.1
                hot_tolerance: 0.1
                min_cycle_duration:
                  seconds: 300
                keep_alive:
                  minutes: 3
                initial_hvac_mode: "off"
                away_temp: 28
                precision: 0.1
            

            But I only have the button to turn it off:

            If I click it nothing happens. What have I done wrong?

            • paf@jlai.lu
              link
              fedilink
              English
              arrow-up
              2
              ·
              edit-2
              5 months ago

              on your card, click on the three dots. You should have more options there. If it doesn’t work, change “intial_hvac_mode” to “cool”

              edit: didn’t see your next replied, glad you work it out

            • peregus@lemmy.worldOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              5 months ago

              I remove the feature “Climate HVAC mode” and added it again and now I can use it.

          • peregus@lemmy.worldOP
            link
            fedilink
            English
            arrow-up
            1
            ·
            7 months ago

            I completely missed your reply, sorry. My system cools and heats, and I really would like to avoid addons to avoid possible brakes in future updates. Do you think that it would be possible to do it with automation? (They can finally be divided into categories!)

              • peregus@lemmy.worldOP
                link
                fedilink
                English
                arrow-up
                1
                ·
                6 months ago

                Mmm…ok. Do you think that there is a way to hide one of them based on the season?

                • paf@jlai.lu
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  6 months ago

                  You can use an helper to toggle from one to another and use an automation to trigger it (or a simple switch on your dashboard).

                  But if I were you, I would use a community add-on as dual AC isn’t a niche, I guess it will keep being updated in future. I’ve been using some community add-on for a couple of years and none have been dropped til now.