Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensor Battery Remaining Capacity no longer has a state class #410

Closed
mamo-nick opened this issue Feb 12, 2025 · 3 comments
Closed

Sensor Battery Remaining Capacity no longer has a state class #410

mamo-nick opened this issue Feb 12, 2025 · 3 comments

Comments

@mamo-nick
Copy link
Contributor

Description

inverter_definitions/pylontech_Force-H.yaml

Sensor
sensor.battery_battery_remaining_capacity no longer has a state class
1 hour ago by Sensor

Image

Reproduction Steps

Ver 25.02.10_04
inverter_definitions/pylontech_Force-H.yaml
after update from 24.12... to 25.02.

Sensor
sensor.battery_battery_remaining_capacity no longer has a state class
1 hour ago by Sensor

Log

AS-IS

      - name: "Battery Remaining capacity"
        class: "energy"
        uom: "kWh"
        scale: 0.001
        rule: 1
        registers: [5154]
        icon: "mdi:battery"

TO-BE (it was in pylontech_Force-H+.yaml)

      - name: "Battery Remaining capacity"
        class: "energy"
        state_class: "measurement"
        uom: "kWh"
        scale: 0.001
        rule: 1
        registers: [5154]
        icon: "mdi:battery"

Version

25.02.10_04

Home Assistant Core Version

2025.2.1

Home Assistant Operating System Version

14.2

@mamo-nick mamo-nick added the bug Something isn't working label Feb 12, 2025
@davidrapan davidrapan removed the bug Something isn't working label Feb 12, 2025
@davidrapan
Copy link
Owner

davidrapan commented Feb 12, 2025

Because mixing of class: "energy" and state_class: "measurement" is forbidden. And at the same time total nor total_increasing aren't suitable values either.

@davidrapan
Copy link
Owner

davidrapan commented Feb 12, 2025

Maybe we should replace class: "energy" w/ state_class: "measurement".

Edit: fix: Battery capacity class and state_class for multiple profiles

Edit2: v25.02.12

@mamo-nick
Copy link
Contributor Author

Věř 2025.02.12 installed. Retest OK.
Thnx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants