mww012 / hass-infinitive

Infinitive Climate Integration for Home Assistant
21 stars 5 forks source link

Option to overwrite the current temp value #11

Open themrwookiee opened 2 years ago

themrwookiee commented 2 years ago

Currently it's only possible to use the current temperature read from the HVAC. Would it be possible to add the option to overwrite that value ?

Here's my situation : My thermostat is located "technically" at the right place, in the middle of the house. The problem is that the temperature in each room isn't the same. For instance, in the afternoon my office temp can go as high as 26-27C when the living room will be near 21C and they are facing West.

My ultimate goal would be to use temperature sensor that I would place in each room, do an average temperature and use that value on the thermostat so it changes his behavior based on that temperature instead of his own temp.

mww012 commented 2 years ago

Hmm...that's an interesting one. My first thought is that this would be a perfect scenario for a climate template integration but it seems HA doesn't have a template for climate. I'm not exactly sure how we would go about that. The integration would need to have access to read values from other entities. The fact that the template integrations can do it means it's possible.

Maybe it's time for a full rewrite. If we wrote a Lovelace config flow (which kinda needs to happen anyway) we should be able to add an option to overwrite the temp sensor in the integration by referencing another entity. I'm pretty much envisioning a "override" checkbox that enables a dropdown list of possible options. I'll look into it.

themrwookiee commented 2 years ago

I'd be more than happy to test anything that you come up with !