sfalkman / ngenic-hass-platform

Ngenic platform for Home Assistant
MIT License
33 stars 18 forks source link

Ability to detect and/or manipulate ngenic planning ("Away mode") #42

Open linust opened 2 years ago

linust commented 2 years ago

Hi is there a means to detect if the connected NGENIC system is in planning/away mode? Or if not possible can the way mode be managed from Home Assistant?

The rationale for the request is that I'm managing other heaters (dumb elements) for a few corners of the house based on electricity price and comfort temperatures. But I would like to keep them of if the rest of the system is set i away mode.

IE an electric element that is connected in a smart plug that is turned on if the temperature is low and cost is reasonable... AND ngenic is not set in away mode.

Any help appreciated.

sfalkman commented 2 years ago

Hey, actually yes, it seems that we can both retrieve and set this information: https://developer.ngenic.se/#tag-SetpointSchedule

However, this is not implemented in the python wrapper for the API so it will require some work over there as well.
I will look into this when I get time over.

Until then, what entities would be best for this? A sensor for each schedule? A service for adding a new schedule?
Just so you know, according to the app a schedule must be at least 24 hours.

linust commented 2 years ago

That’s excellent news. It seems to me that a service for adding/modifying and a sensor enumerated for each schedule would be a good solution for how to represent.

But for my particular use case a single sensor or attribute that indicate if a schedule is in effect or not would suffice. If schedule is in effect a vacation mode is enabled / heater routines are not started etc.

tedenda commented 2 years ago

🎉 Nice suggestion @LinusT !

labaland commented 7 months ago

any updates? :)