weltmeyer / ha_sonnenbatterie

Homeassistant integration to show many stats of Sonnenbatterie
GNU General Public License v3.0
51 stars 24 forks source link

Type of entity classes does not match the value #12

Closed marcorizzi closed 2 years ago

marcorizzi commented 2 years ago

The unit of your entity is not a supported unit for the device class of the entity, power. Statistics can not be generated until this entity has a supported unit.

If this unit was provided by an integration, this is a bug. Please report an issue.

If you have set this unit yourself, and want to have statistics generated, make sure the unit matches the device class. The supported units are documented in the developer documentation.

Some example are Charge Percentage User/Real that has 'power' class with unit % and need to changed to 'battery'

weltmeyer commented 2 years ago

this should be fixed with the latest version, can you confirm?

marcorizzi commented 2 years ago

well done! Updated. Do you think that also Battery Charging Power (in and out) needs to be updated to battery device class ?

weltmeyer commented 2 years ago

as per the developer doc, battery only allows % as a unit of measure. i dont see how i could put in/out power in percentage here... image

marcorizzi commented 2 years ago

You are right. Good!