Closed PeteRager closed 1 year ago
Good idea, I will add to next release.
This sensors are now available in new release.
That was fast!! I’ll load it up tomorrow.
Installed it today. Setup worked and I was able to enable those WAN entities and get data.
When I disconnect the coax from the modem, then sensors still reported as connected. I then ran home_assistant.update_entity on the connected status and that did not change it. I logged into the router and it showed its state as disconnected. I then restarted home assistant and the WAN entities did not change. They all showed the data from when it was last connected. So it kind of seem like we are getting the old data from the router.
Is there some debugging or data I should try to grab from the Asus, so we can see what is going on?
I ran a different test. In this test I pulled the power from the modem. Once I did this on the next scan cycle the integration reported ip as 0.0.0.0, gw as 0.0.0.0 and connected as connected.
It looks like as long as the media isn’t disconnected and it’s DNS lease is still valid it holds onto those values. Which I suppose is reasonable behavior. So it seems like the issue is the connected state not working in either scenario.
I think this is my fault. I released this version without really testing value returned by the router when disconnected. Just because I would leave test to you😁. I will check this better and will return with a new version.
Sounds good, I think this line is a bit optimistic
Released new version (and tested), now WAN sensor should work properly. Please give me your feedback.
Thanks. Will try tomorrow AM
Ran though the tests and it work. Thank you for the fast turn-around.
Add sensors to track WAN status via async_get_wan_info
While all the info could be good to have
The main ones needed are:
use case, assessing health of wan connection when internet ping sensors go down, to determine if cable modem or router may need to be restarted.