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

Add innr SP-242 plug quirk #3896

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

mgjbroadbent
Copy link

Proposed change

V2 Quirk for the inner SP-242 plug that updates the MeteringCluster to use the existing MeteringClusterInnr. This adds a divisor for the summed energy usage to report correct usage.

Additional information

Tested in HA as a custom quirk against an SP-242.

Checklist

  • The changes are tested and work correctly
  • pre-commit checks pass / the code has been formatted using Black
  • Tests have been added to verify that the new code works

Quirk for the inner SP-242 plug that updates the MeteringCluster to use the existing MeteringClusterInnr. This adds a divisor for the summed energy usage to report correct usage.

Tested in HA as a custom quirk against an SP-242.
Copy link

codecov bot commented Feb 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.95%. Comparing base (dd63a95) to head (b63b90f).
Report is 12 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #3896   +/-   ##
=======================================
  Coverage   90.95%   90.95%           
=======================================
  Files         326      327    +1     
  Lines       10588    10591    +3     
=======================================
+ Hits         9630     9633    +3     
  Misses        958      958           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TheJulianJES TheJulianJES added v2 quirk Quirks using v2 API. Might add custom entities that need translation keys in HA. needs review This PR should be reviewed soon, as it generally looks good. labels Feb 26, 2025
@TheJulianJES
Copy link
Collaborator

TheJulianJES commented Feb 26, 2025

Thanks for the PR! Apparently there were some changes in newer firmware versions that cause issues with our existing quirks, as newer firmware versions now use a different divisor. Reference: Koenkk/zigbee-herdsman-converters#8712

I'll have to come back to this to see how we can fix this for all firmware versions ideally, as not everyone upgrades.
If you upgrade your SP-242, it might just work without a quirk at all now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review This PR should be reviewed soon, as it generally looks good. v2 quirk Quirks using v2 API. Might add custom entities that need translation keys in HA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants