-
Notifications
You must be signed in to change notification settings - Fork 1
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
Unclear how to install this! #1
Comments
Yes, this integration isn't configured through the UI and can only be configured via It should be installable via a HACS custom repository, although I have never tried it. If it installs correctly, then within your
Are you nesting the I'm fairly sure that HA loads all custom integrations in |
Thank you so much for your quick response! I removed the install from HACCs and manually copied it across using a SAMBA share. This now appears to be loading as I get the telltale warning at the start of the log files. Excellent! I'm using the stock example for configuration.yaml provided in the wiki, however i'm getting the following error: Invalid config for [internet_status]: [isp_primary] is an invalid option for [internet_status]. Check: internet_status->internet_status->links->0->isp_primary. (See /config/configuration.yaml, line 9). Formatting seems to be correct with double-space indentation etc. The entry sits just below the homeassistant: key and the block sits at the top level as requested. I'll keep fiddling here to see what I'm doing wrong, but wanted to simply thank you at this stage for coming back to me so quickly. Richard |
I just reviewed the example and realised that I didn't update README.md after release 0.6 (from 2020!) which changed the configuration format (back) to a list to allow specifying an arbitrary number of links. Humble apologies for that - I hope you haven't spent too much time trying to get the old example to work :( I'll push a change with an updated example now, but will also need to review/rewrite the rest of the page. |
Wonderful. We're up and running. I had even gone back to older builds in case there was a breaking change, but I don't think I went back far enough! Thanks again for the neat tool. |
Glad to hear that it's working now. Can I ask how you are using this integration? My own use case (as documented in the README) seems quite niche and uncommon. |
Feels similar to be fair. I have cable broadband as my main connection with a router offering an alt. WAN route. I have a 4G router as my failover network. This tool allows me to quickly see what WAN link is live and whether there is an issue within HA. |
Just to confirm, when you say the NAT IP address, is that the public IP address that you'd see when you use something like https://whatismyipaddress.com/ If my mobile provider uses different public addresses at each connection, how could I account for that in the config? R |
Yes, the NAT IP is typically your public IP on an internet facing link. You can configure the integration in one of two ways to cater for links that use dynamic IPs:
There's currently no way to reset the detected configured IP when the IP changes without restarting HA. I have been thinking about creating a service for that, though this happens infrequently in my setup. |
I just wanted to thank @crowbarz for this awesome sensor! Why I needed this sensor - and what it does for me:We recently had network connection issues (NBN in Australia) that forced us to get a 4G Modem as backup. I was looking for a way to let my family know when we're on the expensive 4G connection and when we're back on our regular NBN connection. This sensor here made this possible! The configuration steps:So, here is some guidance for those interested in or struggling with the configuration: In your configuration.yaml, add the sensor:
(I didn't need the rtt sensors. Just left them in there as comments for future reference - in case I want to enable them later.) The For the 4G connection, the reverse_hostname feature failed, as the IP of my 4G provider doesn't allow for a reverse hostname lookup in this context. I thus had to rely on a "configured_ip" which I set to the external IP of my 4G connection. Again, I was able to figure out that configured_IP value thanks to the debug feature. So, now, let's quickly touch on the debugging.. Finding your IP address and/or hostname:First I needed to add the following to my configuration.yaml to enable the logger and focus the logger on this sensor:
Next, I needed to set the With these settings, I was able to reboot my HA instance and monitor the console output. In the output, I then found my reverse hostname, while I was connected to my NBN provider/my primary ISP. I copied that value into the configuration.yaml (in place of your_connections_hostname) - but instead of copying the entire hostname, I only copied the domain name part of the hostname. So, with a hostname like Testing and wrapping up:Finally, after another restart, I tested the sensor in my Home Assistant set up by unplugging my main network cable to force a fail-over to 4G, and plugging it back again. With the sensors reacting as I had hoped, I disabled the logging and the debugging (via the configuration.yamls) and started using the sensors in my automation. For example.:
I hope this helps some folks. Again: |
@boukamp thanks for the detailed write-up of your use case and your debugging steps, hopefully that will help others tailor a configuration to suit their particular multiple internet link setup. (And hopefully I'll find some time to overhaul the documentation at some stage too.) |
I'm a reasonably seasoned HA user and have installed several other 3rd party components using HACCs.
I have added the repository and found ha-internet_status and installed it, however after the reboot it's not clear what needs to be done next. I have attempted to use the "Add integration" list selector, however the component doesn't show here.
I've tried generating the configuration.yaml entries as described in the readme file, however HA borks with a configuration error (it doesn't recognise the internet_status parent key, and thus refuses to reboot etc.
Any suggestions as to what I'm doing wrong?! Your component looks awesome BTW!
The text was updated successfully, but these errors were encountered: