RobertD502/home-assistant-flair

Controlling vent open/closed based on temp

Closed this issue · 7 comments

Would you be interested in a feature where we could use other temperature sensors that are not supported by flair to open/close vents? I'm thinking about writing this and if you would be interested in a PR I would be willing to put in a PR to your project.

Main idea is flair only supports ecobee & flair pucks, but I'm sure all of us have tons of other temperature sensors that we would love to use to automate flairs open/closed state.

So, this idea has been floated around by many several times, but it isn't possible to code directly into the integration at this moment. Flair's vents have a limited amount of temperature sensors that they currently work with. There is simply no way to force Flair Vents to use temperature sensors that aren't supported - the API doesn't have this ability which this Flair integration uses.

At this moment, the only way to get Flair Vents to use unsupported sensors (but have been integrated into home assistant) is to set the vents into manual mode and then create automations in Home Assistant to use the temperature readings from said sensors to control the open/closed vent state.

I was not planning on forcing Flair Vents to use temperature data. I was planning on putting it into manual mode and skipping flairs structure.

Yes, so instead of trying to write the automation in HA using current structures it would be 1000x cleaner to put it into something like home-assiant-flair as an option to enable local manual control using local sensors.

If not I will likely just use AppDaemon and write some python code to handle it.

I'm sorry, but I'm failing to understand what you're trying to accomplish here. Putting the vents into manual mode can be done within the Flair App (one time process) and is already required by this integration for any vent changes to stick.

Regarding being able to control the vents locally: if you mean local in the truest sense, this integration will not do that as it relies on Flair's API.

  • Set vents to manual mode
  • In HA/Flair integration assign vents and temperature sensors to rooms
  • Via this flair integration manually open/close vents based on the temperature sensors

I'd recommend going the AppDaemon route as what you're trying to do goes beyond what integrations in Home Assistant are designed to do. The Flair integration exists for the sole purpose of pulling in Flair vent information from their servers and to control them via the Flair API. Interconnecting devices within Home Assistant is meant to be done using automations not on an integration to integration basis.

I'm not trying to discourage the idea, but as this is over complicating functions that already exist via Home Assistant automations or Node Red (besides switching between manual and auto mode), I believe a personal fork is the better way to go.

Thanks