enriqg9 / dual-thermostat

Dual Thermostat Lovelace Card
MIT License
51 stars 20 forks source link

Support for dual climate entites. #5

Closed CRCinAU closed 5 years ago

CRCinAU commented 5 years ago

As per: https://community.home-assistant.io/t/dual-thermostat-card/85798/86?u=crcinau

I currently have 2 x separate climate entities. One controls an A/C via IR, the other is a heater via dry contacts.

My config is as follows:

entities:
  - entity: climate.aircon
    type: cool
  - entity: climate.heater
    type: heat
fan_control: false
max_slider: 30
min_slider: 15
name: Climate Control
type: 'custom:dual-thermostat'

You mentioned:

Not with the current card but that should be an easy fix, just loop on each entity and push each mode to an array. I’ll look at it whenever I get a chance.

Starting this github issues to try and track this.

enriqg9 commented 5 years ago

After thinking about it is not so simple, the card was developed to work from a single thermostat that creates 2 entities, the temperature change command is triggered on the entity which mode is active but the mode changes are only triggered on the first entity, that works fine for dual thermostats as both entities are the same thermostat but that wouldn't work with 2 separate thermostats, same thing applies to the status, it is only read from a single entity and not individual entities. The card was never designed to work with 2 separate entities, major changes would be required for that to work.