-
Notifications
You must be signed in to change notification settings - Fork 4
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
Hub not discovered #9
Comments
Hi, the way the discovery works is that it sends a udp broadcast packet and attempts a TCP connection to any hub that responds.
What do you get for the same commands? |
@atmurray , thanks for the reply, mine seems to be much less chatty than yours: (aiopulse_test) [adrian@localhost aiopulse_test]$ python -V
Python 3.8.0
(aiopulse_test) [adrian@localhost aiopulse_test]$ pip freeze
aiopulse==0.4.2
async-timeout==3.0.1
(aiopulse_test) [adrian@localhost aiopulse_test]$ python ./demo.py
> log debug
Log level set to debug
> discover
Starting hub discovery
> DEBUG:aiopulse.transport:Connection established
INFO:aiopulse.hub:Discovery complete
DEBUG:aiopulse.transport:UDP connection closed
DEBUG:aiopulse.transport:Socket closed A tcp dump at the same time shows nothing of tcp packets, only udp. Does the hub have to be in a particular mode or is it enough that it is connected to the wifi? |
@atmurray, thanks for the prompt in the right direction. It turns out it was a firewall issue i.e. inbound packets were being blocked. I'll need to investigate further but temporarily stopping the firewall and then re-testing resulted in a successful discovery. |
Hi and thanks for your good work. I'm trying to work out the issue I am having with adding an Acmeda hub to HomeAssistant as an integration, which has led me to here.
The integration in HA fails to find my hub and the demo.py in this project appears to mirror that behaviour. When doing a discover with demo.py, the packet I receive contains the data:
I am wondering if the above is enough to allow you to help me explain why the aiopulse module is not recognising my hub.
Thanks for any information you can supply.
The text was updated successfully, but these errors were encountered: