SonnenladenGmbH / APsystems-EZ1-API-HomeAssistant

The APsystems EZ1 Integration offers a streamlined interface for interacting with the local API of APsystems EZ1 Microinverters using Home Assistant.
MIT License
77 stars 11 forks source link

Enhancement: Move the P1 & P2 information from the attributes to independent sensors #2

Closed CM000n closed 7 months ago

CM000n commented 7 months ago

Hello, I tried the Apsystems Custom Component today and it works wonderfully. Thank you very much for that!

However, I had to realize that the information of the two phases P1 & P2 are in the extra_state_attributes of the sensors for the power as well as daily and total production. Firstly, this is cumbersome if you want to create any automations based on this and should also be avoided according to the Home Assistant developer documentation: https://developers.home-assistant.io/docs/core/entity/#generic-properties

My suggestion would therefore be to separate this information from the attributes and make it available as independent sensors.

CM000n commented 7 months ago

Closed with https://github.com/SonnenladenGmbH/APsystems-EZ1-API-HomeAssistant/pull/4