Add Homepluscontrol integration#46783
Conversation
Start platforms before refreshing the coordinator. Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
|
Please don't pin requirements exact in the library. And don't require any packages that are not imported directly. The library only needs these requirements: Please change here: Please set as loose version specifiers as possible. Eg a minimum version but no maximum version. If a maximum version is needed, please be as forgiving as possible to avoid conflicts with other libraries installed in Home Assistant. |
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
OK, I will also work on cleaning up the library dependencies 👍 |
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
MartinHjelmare
left a comment
There was a problem hiding this comment.
Looks good!
Are we ready to merge?
Thanks @MartinHjelmare! All good on my side 😄 . Let me know if there is anything else I should do in this process (sorry, this is my first PR). |
|
Good work! Maybe check if we can make the integration configurable via Home Assistant Cloud Account Linking service to make the set up super easy? |
Proposed change
This adds the Legrand Home+ Control integration to the Home Assistant core. This integration connects Home Assistant to the Legrand API that can manage "Legrand/Bticino with Netatmo" products. This API is one of several that Legrand exposes through their "Works with Legrand" platform: https://developer.legrand.com/
In this initial PR, the integration adds a simple switch entity to represent the in-wall switches and power outlets that are part of this Legrand smart home product range.
Type of change
Example entry for
configuration.yaml:Additional information
The integration uses cloud-polling with a single API poll to fetch the data of all entities.
Authentication follows an oauth2 exchange.
The Legrand API only allows 500 API calls per day, so this is catered for in the configuration of the integration - refresh intervals have default values that are larger than ideal, but are currently the best possible to prevent reaching daily quota limitations. In any case, these intervals are configurable in the integration.
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: