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

[Device Support Request] consumer_connected binary_sensor for lumi.plug.mmeu01 #2181

Closed
myhomeiot opened this issue Feb 6, 2023 · 3 comments · Fixed by home-assistant/core#88194 or #2198
Assignees
Labels
enhancement Improve an existing quirk in progress Issue is being worked on, near fix

Comments

@myhomeiot
Copy link
Contributor

Please add consumer_connected binary_sensor for lumi.plug.mmeu01.
Thanks in advance.

I add it as attribute into OppleCluster class (plug_eu.py) and test it using Manage Zigbee Device from Home Assistant - it's report correctly if something physically connected into the socket (even without power consumption):

    attributes = {
        0x0009: ("mode", types.uint8_t, True),
        0x0201: ("power_outage_memory", types.Bool, True),
        0x0207: ("consumer_connected", types.Bool, True),
    }
@TheJulianJES TheJulianJES added the enhancement Improve an existing quirk label Feb 6, 2023
@javicalle
Copy link
Collaborator

You can do it yourself by editing the file from the browser:

Save the changes and follow the prompts to generate the PR.

That way other users can benefit from the change thanks to you.

@myhomeiot
Copy link
Contributor Author

Save the changes and follow the prompts to generate the PR.

Unfortunately it's requires also the changes in Home Assistant Core, so PRs must be coordinated.

@javicalle
Copy link
Collaborator

Well, it can be added in the quirk at any time.
In HA it would be needed that the zha-quirk version is released to be able to create the new entities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve an existing quirk in progress Issue is being worked on, near fix
Projects
None yet
3 participants