kellerza / hassio-sma-em

Home Assistant SMA Add-On
MIT License
31 stars 19 forks source link

consume and consumecounter have wrong device_class #20

Closed gabrio79 closed 8 months ago

gabrio79 commented 2 years ago

sensor.s1consume has unit VA which is unsupported for device_class energy ---> must have device_class: apparent_power sensor.s3consume has unit VA which is unsupported for device_class energy sensor.s2consume has unit VA which is unsupported for device_class energy sensor.s2consumecounter has unit kVAh which is unsupported for device_class energy sensor.s3consumecounter has unit kVAh which is unsupported for device_class energy

kellerza commented 2 years ago

Thanks @gabrio79! Any idea if there is a device_class that could match kVah, or simply no device class / None?

gabrio79 commented 2 years ago

I searched but i dis't applicabile class foundee, i can suggest you to open an issue on ha-core? in the midtime, no class or remain energy

Il Gio 25 Ago 2022, 21:05 Johann Kellerman @.***> ha scritto:

Thanks @gabrio79 https://github.com/gabrio79! Any idea if there is a device_class that could match kVah, or simply no device class / None?

— Reply to this email directly, view it on GitHub https://github.com/kellerza/hassio-sma-em/issues/20#issuecomment-1227652667, or unsubscribe https://github.com/notifications/unsubscribe-auth/APW3TYCORECUSRUV4UY5ILDV267X5ANCNFSM57O3KVAA . You are receiving this because you were mentioned.Message ID: @.***>

gabrio79 commented 2 years ago

Is you device accurate? I notated big differces betwen shm2 and fiscale Meter measure... I opened a ticket on sma support... But for them no issue... Have you ever checked?

Il Gio 25 Ago 2022, 21:23 Gabrio @.***> ha scritto:

I searched but i dis't applicabile class foundee, i can suggest you to open an issue on ha-core? in the midtime, no class or remain energy

Il Gio 25 Ago 2022, 21:05 Johann Kellerman @.***> ha scritto:

Thanks @gabrio79 https://github.com/gabrio79! Any idea if there is a device_class that could match kVah, or simply no device class / None?

— Reply to this email directly, view it on GitHub https://github.com/kellerza/hassio-sma-em/issues/20#issuecomment-1227652667, or unsubscribe https://github.com/notifications/unsubscribe-auth/APW3TYCORECUSRUV4UY5ILDV267X5ANCNFSM57O3KVAA . You are receiving this because you were mentioned.Message ID: @.***>

alexfiftyfour commented 11 months ago

This is the device class list. https://www.home-assistant.io/integrations/sensor/

I have a similar problem with the current.

kellerza commented 11 months ago

Please try the -dev add onhttps://github.com/kellerza/hassio-sma-em/blob/main/sma-em-dev/Dockerfile#L4