-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
Added support for AP mode in asuswrt #2263
Conversation
telnet.write('exit\n'.encode('ascii')) | ||
return (neighbors, leases_result) | ||
return (neighbors, leases_result, arp_result) | ||
except EOFError: | ||
_LOGGER.exception("Unexpected response from router") | ||
return ('', '') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should return three values, just as the exception below it.
Hey @balloob , Sorry about that--corrected. Thank you for your work on home-assistant; I'm only just getting started figuring out my setup, and it's been really great. |
Thanks 👍 Glad you like it. PR looks good, merging it 🐬 . I'll be getting my ASUSWRT router next week so I'll make sure to test it in router mode. |
Great work @linjef ! I tried this and the 'ap' mode does not seem to work when the router is configured as "router". You might want to remove the line |
@persandstrom : hm... two questions, if you have the time: 1) what router model do you have, 2) if you can ssh/telnet into your router, can you run these commands and let me know what happens (if anything)? Please do anonymize the output; I just want to know if anything works.
I kept that in there partly because I didn't know what the convention for |
We should remove the info. More stuff should move to debug reporting On Fri, Jun 10, 2016, 13:39 Jeffrey Lin [email protected] wrote:
|
Removed the log entry |
router: RT-N66U assoclist autho_sta_list devices It might actually be possible to get information from the router which mode it is in, and thus get rid of the configuration parameter in the yaml. The command |
Yeah would be great if we can be smart about it. On boot determine if we need to use telnet or ssh, if we are dealing with a router or an ap and go from there. |
Is the |
http://192.168.88.2/update_clients.asp and I'm in router mode
|
Maybe someone can do a diff between the output in router and in ap mode? I don't have any other router so I don't know if it's possible for me to run it in ap mode. |
BTW. Maybe this discussion should move to a new issue instead. This PR is finished 😀 |
If you come here from a search engine, check #4305 |
Description: Uses wl command to get associated clients (instead of relying on DHCP leases). This allows AP operating mode users to also be able to use presence tracking. Default is set to
router
mode, the original method of detecting connected users. However, it is likely (but untested by me) thatwl assoclist
should work forrouter
mode as well.Related issue (if applicable): fixes #607
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#545
Checklist:
If user exposed functionality or configuration variables are added/changed:
If code communicates with devices:
tox
run successfully. Your PR cannot be merged unless tests passREQUIREMENTS
variable (example).requirements_all.txt
by runningscript/gen_requirements_all.py
..coveragerc
.If the code does not interact with devices:
tox
run successfully. Your PR cannot be merged unless tests pass