Need help with creating a rule to reboot C8 based on lost of internet povider

"pCloud" is the new status attribute to use.

1 Like

so I should always see pcloud "connected" if I have a active internet connection?

pCloud is just the new alternate option for checking HE's cloud connectivity with the Hub Info Device tool that JamesTX10 mentioned above.

I don't have any particular suggestions on how to use it, it's just another arrow in the quiver.

I am on V3.0.37 as well. Make sure you fill out "MakerApi or Dashboard URL string" in the preferences for the cloud state to work.

If you use the new pCloud attribute, you don't also need the MakerAPI/Dashboard link (but you can still use both avenues if you'd like).

I prefer the new pCloud option for the reason thebearmay gives in second sentence below, but folks may have other reasons for preferring the ol' MakerAPI/Dashboard link-check option instead.

1 Like

I ran a test, monitoring the "pcloud", when I disconnect the internet cable from my route causing a failure, the hub still shows pcloud connected

I went into the hub info, it is set to update every 2 minutes, i did a refresh, waited 5-10 mins, still pcloud shows connected?

Any thoughts?

That's a bummer -- in that case, I'd try the MakerAPI/Dashboard link option and see if that works as hoped.

Do you have more info about trying the "MakerAPI/Dashboard link option"?

I no nothing about it.

BTW, Thanks for your help

You could also have RM ping a external address. If it does not respond successfully a number of times, then initiate the reboot through the Hub Info Driver.

Dont forget to add logic to prevent it from rebooting continuously if the internet is down.

1 Like

Here's a post about it from the Hub Info Driver thread...

This is my approach... has worked well so far. I'll try to post my rule later this evening.




You would get rid of the dns active un your case.

My rule is actually for rebooting my router, but here is how I detect a LAN outage. Disregard the disabled actions shown in red.

The value variable is the packet loss percentage from the ping result. So if all packets are lost the variable equals 100.

The "child" rule cycles the power to a smart plug that my router is plugged into and then notifies me of the event. The notification is performed after a 10 minute delay to give the router time to fully come up.

I also have a situation like yours at a remote building on my property that is connected via Wi-Fi, On the hub I have a rule that pings a remote adresse every 10 minutes, if I can't reach it 3 consecutive times it will reboot the hub in case it's related with the Wi-Fi. So worst case I'm rebooting every 30-40 minutes if there is a catastrophique problem, this happened once when my router acted up and the Wi-Fi stopped working. After that incident I also have a rule on my main hub that pings the remote hub and warns me via message if it could not reach it.

Most of my critical WiFi devices also have pings from my main hub with messages sent to my phone in case it could not reach it, these rules also helped me diagnose a major problem after switching ISPs and having a bridged modem that messed up my routers IP each time we had a power outage, after talking to the ISP multiple times, we both came to the conclusion that even if the modem was in bridge mode, for a few seconds it would reserve the 192.168.0.1 adresse and make my router change it's IP because of a conflict, then all mi DHCP fix addresses would get disabled and all my WiFi stuff would get some random addresses assigned to them, then a bunch of stuff would stop working in Hubitat. I have since changed ISPs for one that has a regular cable MODEM instead of those stupid all in one units that need to be bridged to work with routers.

to all:

the members here at hubitat are always are very willing to help others.

I want to thank everyone for your always providing awesome support.

i went the ping route, however my logic could use some fine tuning. I need to add what you did, by waiting 3 consecutive times before rebooting. How did you do that? Did you use RM?

Here are screebshots of my RM rule...

And local variables you will have to create for it to work (Count and Value) ...

You will also have to install Hub Information Driver V3 for the reboot function.

1 Like

thanks I will try this later this week when I have time to work on my hub

thank you

I always struggle finding stuff in RM, like in your example, If then "Add 1 to Count", I cannot find that

We all struggled when we first started using RM. Been there, done that.

Step 1: create a variable, type Number, initial value 0.

Step 2: Create New Action (hit the + sign at bottom of Actions):

Step 3: Click "Done with action"

This results in:

Step 4: Click "Done with Actions"

1 Like

thanks anyone, I finally got it working,

Awesome support!

2 Likes