Giter VIP home page Giter VIP logo

Comments (4)

ollo69 avatar ollo69 commented on July 18, 2024

I can see in your configuration that you are using same switch for heater and cooler. This is not correct and can create the issue reported by you. Try using 2 different switch.

from ha-dual-smart-thermostat.

paulius2k avatar paulius2k commented on July 18, 2024

You were totally right @ollo69 - this was the reason. I modified the config with two different switches and both problems were gone. Thank you.

I do have a question, though.
My heating system is a geothermal heating pump, which produces warm liquid during the heating season and cold liquid during the cooling season. That liquid is pumped to the pipes under the floor. This flow is controlled by one valve irrespective if it is the heating season or the cooling season. Therefore I had the same switch for heating and cooling initially.

I worked around this by creating a duplicate switch on the same GPIO of my ESP32, which controls the actuator of the valve. But now I have a problem that when the GPIO is ON, I have one switch showing it is on, and the other switch showing it is off. I am thinking maybe I could fix with the on_turn_on / on_turn_off actions in the ESPHome.

However - isn't my situation common and maybe the ha-dual-smart-thermostat could support the usage of one switch for heating and cooling?

from ha-dual-smart-thermostat.

ollo69 avatar ollo69 commented on July 18, 2024

This is a special case that cannot be managed with current integration behavior. It requires changes in the logic so that the meaning of the switch is related to current temperature. I think you should create a feature request detailing yours need.
For now I will create a PR to avoid wrong configuration having same entity for heater and cooler.

from ha-dual-smart-thermostat.

ollo69 avatar ollo69 commented on July 18, 2024

Thinking better about this, I think that the better (and simplest) solution is to define 2 template switch and a third switch helper (or any other kind of sensor) that just define summer / winter

  • switch 1 (heater) will use as value_template the status of GPIO and helper=winter
  • switch 2 (cooler) will use as value_template the status of GPIO and helper=summer

Then you can change the helper status based on 1 integration that change value based on the date, or just change it manually when needed.

from ha-dual-smart-thermostat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.