Boil water notice

I'm interested in protecting my water filtration system in the event of a boil water notice.
The most reliable way of a notification via website

volusia. /services/public-protection/emergency-management/pin/boil.stml

Is there a rule I can generate to trigger main water shutoff via html? Other thoughts are welcome ty

volusia.

org/services/public-protection/emergency-management/pin/boil.stml

Hard to tell if there is anything on the page that you could key on as they don't have an active notice to look at, but in theory you could do an httpGet on the page and then look for a phrase in the page response.

2 Likes

If a day is known where a boil water notice was issued, then perhaps the page could be retrieved on the Wayback machine of Internet Archive.

https://web.archive.org/

2 Likes

I would suggest you try to get in contact with the Webmaster for that page and see what is or can be done.

OR

I'm not into this type of coding but is it possible to do the reverse? i.e. if the webpage is like it is not the water is on. If the "At this time, this page is not activated" disappears, stop the water flow and alert you to check into it.?

As @thebearmay said you need to grab the webpage and search for specific phrases (eg the absence of "Not Activated") in order to control your valve. Unfortunately this can't be done from RM and you need to write a custom app.

Another possibility would be to use Tasker (if you have android) or node-red to do the grab & search and trigger a rule via a virtual switch.

@aaronzandman, In writing a different driver, I wrote one that may do what you’re trying to do. I tested it on the Volusia County Boil Water Storm Notices website and it works with the phrase “not activated”.

1 Like

Thank you very much, Iv been trying to get this to work, but having slight issues and I dont know how to proceed. I have it installed, and setup
but I having trouble setting it up in rule machine, how can I have it trigger , can I easily modify this to provide as a simple on/off switch?
thank you for your help

I thought (but did not test) that choosing “Custom Attribute” as a trigger would work in RM. The attribute “searchstringfound” is a Boolean and HE doesn’t like that. Let me look into it.

I assume the device itself can properly report found/not found?

Got it working, RM doesn't like the bool. Had to use RM legacy

Ty so much. Very much appreciated

Change it to string and you should be good without code changes.

I added the string variable “searchstringfoundstr” with strict values of “true” or “false”. Works in RM.

Reasons why Boolean doesn’t work in RM are explained in:

Download the Hubitat app