Git Product home page Git Product logo

Comments (4)

alvarocarrera avatar alvarocarrera commented on June 12, 2024 3

I have a similar setup: a heater/cooler AC, but I have solved this by defining a pair of switches like the followings for each AC in the HA configuration. Inside the general configuration.yaml, I added:
switch: !include switch.yaml
and then, I created the switch.yaml file with a heater switch and a cooler switch for every AC.

The following example is for a room/climate named "oficina" (Office in Spanish):

# Switches (heater/cooler) for oficina:
- platform: template
  switches:
    oficina_heater:
      value_template: "{{ is_state('climate.termostato_de_la_oficina', 'heat') }}"
      turn_on:
        service: climate.set_temperature
        data:
          hvac_mode: heat
          temperature: 30
        target:
          entity_id: climate.termostato_de_la_oficina
      turn_off:
        service: climate.turn_off
        target:
          entity_id: climate.termostato_de_la_oficina
- platform: template
  switches:
    oficina_cooler:
      value_template: "{{ is_state('climate.termostato_de_la_oficina', 'cool') }}"
      turn_on:
        service: climate.set_temperature
        data:
          hvac_mode: cool
          temperature: 18
        target:
          entity_id: climate.termostato_de_la_oficina
      turn_off:
        service: climate.turn_off
        target:
          entity_id: climate.termostato_de_la_oficina

Then, you set up your dual_thermostat as:

- platform: dual_smart_thermostat
  name: Termostato Dual Oficina
  unique_id: termostato_dual_oficina
  heater: switch.oficina_heater
  cooler: switch.oficina_cooler
  target_sensor: sensor.termostato_de_la_oficina_temperature
  # the reminder options of the dual_thermostat

Final note: Even, you could specify a target temperature for the heater/cooler switch using a template (retrieving the target_temp of the dual_thermostat). But, in my case, as I turn on the AC in the cheapest hours of electricity cost, I want to boost the heating/cooling in those hours instead of "keeping the temperature around the target temp" all time. After those cheap hours, the zone is more heat/cool than the target temp, but it keeps at a comfortable temp for more time, trying to not use the AC during the expensive hours of electricity cost.

I hope this would have helped you. If you have any question about this setup, I can help you a bit more. :)

from ha-dual-smart-thermostat.

skorpionwap avatar skorpionwap commented on June 12, 2024

This is exactly my case. I use dual thermostat to control an AC. This AC does not have a temperature sensor. Dual Thermostat helps me to combine a temperature sensor with a virtual switch, to control the AC. But this also involves automation.

from ha-dual-smart-thermostat.

swingerman avatar swingerman commented on June 12, 2024

I use a similar setup as @alvarocarrera does.

from ha-dual-smart-thermostat.

skorpionwap avatar skorpionwap commented on June 12, 2024

I succeeded. Thank you. Now I don't need additional automations. 👍

The only automation I use with this thermostat, checks if I'm nearby, in the desired time interval, and if the consumption of the AC outlet is at a certain level.

If these three are true, set the "home" preset. If not, the "away" preset

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.