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 not created for pure event emitter #14

Closed
mbaran5 opened this issue Feb 20, 2020 · 4 comments
Closed

Device not created for pure event emitter #14

mbaran5 opened this issue Feb 20, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@mbaran5
Copy link

mbaran5 commented Feb 20, 2020

I have two different button controllers in my setup, Xiaomi and Aeon. The Xiaomi works great in HA and shows all buttons plus battery state. I also have an Aeon Minimote that is not seen or added to HA

I’ve added it’s capabilities below Incase that helps. I notice it isn’t a “sensor” but it also doesn’t report battery life so not sure I expect to see that.

I’m running your latest build and don’t see any error logs.

[{"capabilities":["Configuration","Actuator","HoldableButton",{"attributes":[{"name":"held","currentValue":"1","dataType":"NUMBER","values":null}]},"PushableButton",{"attributes":[{"name":"numberOfButtons","currentValue":"4","dataType":"NUMBER","values":null},{"name":"pushed","currentValue":"2","dataType":"NUMBER","values":null}]}]}]

@jason0x43 jason0x43 added the bug Something isn't working label Feb 20, 2020
@jason0x43 jason0x43 changed the title Button Support - Aeon Minimote Device not created for pure event emitter Feb 20, 2020
@jason0x43
Copy link
Owner

Hmmm...I think I know what's happening there. Since the minimote has no sensors, no device is being created for it in Home Assistant. Even though events are probably being emitted in HA for button presses, it's hard to do much in HA without a device as a basis.

I need to update the code to create devices for pure event emitters (like the minimote).

@jason0x43 jason0x43 self-assigned this Feb 21, 2020
@jason0x43
Copy link
Owner

This appears to be broken in 0.5.2. Reopening.

@jason0x43 jason0x43 reopened this May 24, 2020
jason0x43 added a commit that referenced this issue May 25, 2020
This seems to have been broken when the code to create event emitters
was moved to entitys.py. The new function is async, but switch wasn't
awaiting it.

references #14
@jason0x43
Copy link
Owner

This is fixed in v0.5.3.

@mbaran5
Copy link
Author

mbaran5 commented May 26, 2020

ignore. a 2nd reboot of Home Assistant and there it is!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants