I can’t think of one time my internet was down that it wasn’t caused by either a power outage or my router getting a push firmware update. So I really don’t see that use for it either Might be useful in places where you pay for your usage otherwise not sure.
But lets say your router gets the firmware update and home assistant doesn’t reconnect. You can build an automation to detect that and restart home assistant after x minutes.
But I don’t need this to detect my router not connecting. I can just use a script with ping or one of many other ways to see the network is down. Actually I am not sure if this would even work using these sensors. I find sensors tend to keep their last known value when they don’t get updates. So I don’t think you would suddenly see the sent/received data go to zero. I think it would stick at last known value. I may be wrong on that but would have to test a lot more. It would help a lot if this feature had some documentation. I am sure the author had a use for it. They could share that use in the documentation. That would be nice
It looks like it was just added to discovery recently, which is why you are seeing it now. Component has existed for quite some time, v0.18.0 to be exact. Here’s the documentations:
This has started to be discovered again in 0.85.0 the same exclude value also works again in the discovery section of config yaml. I also noticed it can be configured to disable statistics in its own config section. I chose to ignore it from being discovered.
Is there a way to only pull certain sensors from the router? Like I only want kbytes send and kbytes received as a graph to track my internet usage. HA randomly pulls sensors so that depending on restart, some of the sensors are available and some are not. Next reboot they change. Not sure why but Id prefer to do away with the ones I dont need and just make sure it pulls the ones I do.
Anyone know of a way to explicitly set these sensors?