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

Suggestion for device_class #2

Open
nsleigh opened this issue Nov 4, 2024 · 0 comments
Open

Suggestion for device_class #2

nsleigh opened this issue Nov 4, 2024 · 0 comments

Comments

@nsleigh
Copy link

nsleigh commented Nov 4, 2024

First off, thanks for this code, helped me get my "ESP32-C6: ePulse Feather" battery monitor working.

For the battery voltage I suggest using this conifg to stop it showing up as a battery:

    battery_voltage:
      name: Battery voltage
      id: batt_v
      device_class: voltage
      state_class: measurement

For the rate setting I couldn't really find a suitable class so did this:

    rate:
      name: Battery discharge rate
      id: batt_discharge_rate
      device_class: ""
      state_class: measurement

(I needed this to stop my low battery template finding these two entities and reporting them as low batteries.)

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

1 participant