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

fix(home assistant discovery): Set correct device class for 'rate_per_time_unit' #182

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

Slider0007
Copy link
Owner

@Slider0007 Slider0007 commented Oct 20, 2024

Home Assistant Discovery:

  1. Set correct device class for rate_per_time_unit to allow unit conversion change in HA
    --> issue described here: Cannot select unit conversion in HomeAssistant jomjol/AI-on-the-edge-device#3333

Device class is dependend on meter type:

  • Energy meter: device class = power
  • Gas / water meter: device class = volume_flow_rate

Cherry-picked from jomjol#3332. Thanks to caco3 for the fix.


  1. Move rate_per_interval to diagnostic category

…_time_unit'

Device class is dependend on meter type:
- Energy / electricity meter: device class = "power"
- Gas / water meter: device class = "volume_flow_rate"
@Slider0007 Slider0007 merged commit 1f68acb into develop Oct 20, 2024
10 checks passed
@Slider0007 Slider0007 deleted the fix-ha-discovery-deviceclass branch October 20, 2024 21:14
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

Successfully merging this pull request may close these issues.

1 participant