Comments (3)
This is strange. I do use discovery on a laptop with two network interfaces as well and it works just fine.
Have you checked your firewall? Only after I filed #61 I have found that my laptop used firewalld with Public zone active. Which doesn't accept incoming packets to UDP/5555.
How about priorities in routing table (what's output of ip route
)?
Does it behave the same way if you disconnect from WiFi but keep your ethernet on? (I assume that you can access your twinkly through some WiFi access point).
Could you try to run this with DEBUG verbosity?
Especially recently I have found that application not only uses 255.255.255.255 but also network specific broadcasts, e.g. 192.168.0.255 and finally it tries even 192.168.4.1 directly. I think this approach might need external library to enumerate interfaces, its network addresses and finally send it over broadcasts.
from xled.
Thanks a lot for your suggestions!
Have you checked your firewall?
This is a raspberry PI, I don't have firewall enabled nor installed
How about priorities in routing table (what's output of ip route)?
This seems to be the catch, I have two default routes:
default via 172.16.17.1 dev eth0 proto dhcp src 172.16.17.175 metric 202
default via 172.16.18.1 dev wlan0 proto dhcp src 172.16.18.2 metric 303
172.16.17.0/24 dev eth0 proto kernel scope link src 172.16.17.175 metric 100
172.16.17.0/24 dev eth0 proto dhcp scope link src 172.16.17.175 metric 202
172.16.18.0/24 dev wlan0 proto dhcp scope link src 172.16.18.2 metric 303
172.16.18.1/24 is the automation WiFI, 172.16.17.1 is the regular network
Does it behave the same way if you disconnect from WiFi but keep your ethernet on? (I assume that you can access your twinkly through some WiFi access point).
Yes, it does: no device gets discovered (this is kinda expected). Discovery works like a charm if the only enabled interface is WiFi
Could you try to run this with DEBUG verbosity?
DEBUG:xled.discover:Starting Agent
DEBUG:xled.discover:Starting Loop
DEBUG:xled.discover:Sending ping
DEBUG:xled.discover:Waiting for a beacon.
DEBUG:xled.discover:Ignoring ping message received from network from 172.16.17.175.
The last three lines (Sending ping - Waiting for a beacon - Ignoring ping message) are repeated.
from xled.
I'd like to use xled with Home Assistant, and for that I consder using autodiscovery.
I believe you could use integration that is (for some time now) in official Home Assistant distribution - https://www.home-assistant.io/integrations/twinkly/ . I wasn't able to reproduce this nor I saw a traction from anybody else. I'm going to close this issue now.
from xled.
Related Issues (20)
- Trick to update app with new mapping? HOT 6
- Xled_plus - use xled to produce various effects HOT 3
- Documentation is rendered incorrectly (inconsistently) on read the docs HOT 2
- xled on not working HOT 4
- xled sometimes hangs, probably when network is flaky HOT 8
- cli --hostname argument does nothing (broadcast ping gets used regardless)
- music dongle support? HOT 1
- How to send messages in `rt` mode? HOT 32
- Turn device on doesn't work after factory reset HOT 3
- Add support for new WiFi configuration encryption HOT 1
- Error: Only one usage of each socket address HOT 4
- Validation error HOT 2
- What should I put in octet-stream in uploading movie? HOT 22
- `python setup.py install`/`develop` need manual intervention to install dependencies
- Move this repository to xled organization HOT 4
- "get" Commands Not Functioning As Expected HOT 12
- Example of movie file/stream? HOT 4
- What about adding a Discussion forum for xled in github? HOT 7
- AttributeError: module 'xled' has no attribute 'security' HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xled.