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

Remove Aqara MAEU01 plugs from group 0 #1706

Merged
merged 2 commits into from
Aug 30, 2022

Conversation

TheJulianJES
Copy link
Collaborator

@TheJulianJES TheJulianJES commented Aug 26, 2022

Whilst working on #1656, I noticed that all IKEA 4-button remotes control the device and that it doesn't seem possible to remove the MAEU01 plug from group 0 (in which it's in by default) using the HA UI.

Related:

(Note: The first commit is just a slight cleanup. Only the second commit includes the actual changes)

Also, it doesn't look like something similar is implemented anywhere else, so I'm not sure if the proposed changes are actually "good" but they do seem to work.

Note

This apparently doesn't fully solve the issue in all cases but already greatly reduces it. If you're seeing "random toggles" on your MAEU01/SP-EUC01 plug, see #1656 (comment) for more information.

@coveralls
Copy link

coveralls commented Aug 26, 2022

Pull Request Test Coverage Report for Build 2936364081

  • 6 of 13 (46.15%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.05%) to 71.69%

Changes Missing Coverage Covered Lines Changed/Added Lines %
zhaquirks/xiaomi/aqara/plug_mmeu01.py 6 13 46.15%
Totals Coverage Status
Change from base Build 2933899945: -0.05%
Covered Lines: 5166
Relevant Lines: 7206

💛 - Coveralls

@codecov-commenter
Copy link

codecov-commenter commented Aug 26, 2022

Codecov Report

Merging #1706 (7cd14d7) into dev (1274644) will decrease coverage by 0.05%.
The diff coverage is 46.15%.

@@            Coverage Diff             @@
##              dev    #1706      +/-   ##
==========================================
- Coverage   71.74%   71.69%   -0.06%     
==========================================
  Files         237      237              
  Lines        7195     7206      +11     
==========================================
+ Hits         5162     5166       +4     
- Misses       2033     2040       +7     
Impacted Files Coverage Δ
zhaquirks/xiaomi/aqara/plug_mmeu01.py 67.44% <46.15%> (-10.69%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@TheJulianJES TheJulianJES force-pushed the tjj/xiaomi_maeu01_remove_group_0 branch from 7cd14d7 to f24053e Compare August 26, 2022 20:21
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.

4 participants