I have a couple of water sensors by my a/c. I set up water alerts in HSM. When I got an over flow they went off like they should and I got an announcement through Alexa (but not my iPhone, but that is another problem).
When I moved the sensors and dried they off the spoken announcements stop but I kept getting a “knock knock” sound through Alexa every 30 seconds (the repeat time I set in HSM).
Once I went into the app and touched Cancel Alerts they stopped, but I don’t see a setting like stop alerts when dry or a Do While loop to send the alert While wet = true, etc.
Did I miss something? If so, how do I add that? I tried to edit the app, but all I saw was a repeat until cancel toggle.
That has been my experience. Whenever I test a water sensor and get an alarm, I have to go into HSM and Cancel Alerts. This is probably by design so that you are required to acknowledge the alarm. Since a water leak can cause much damage, it makes sense that a leak detection alarm would be required to be acknowledged and manually reset. Hopefully you do not get a water sensor alarm that often.
Is there any command to stop the notifications? If so, I’m wondering if I could set a variable to true when while wet and then when wet becomes false (dry?) stop them.
I kill notifications using a Virtual Switch I call MUTE. (Understand that HSM is just a small subset of Rule Machine so you don't have to use HSM for actual safety). I simply use a variable for the device that is cancelled.
Use the following as a base for your rule. (I use similar for several notification rules that I want to cancel the repeat) Use turn dry as your close trigger... With this overall rule you should be able to mod it to your needs. Note: I have the mute button as a shortcut on the home screen of my phone as well as a button on a pico on the wall)
I'm starting to work on this. I want to vary it a bit from what you did. I started by saying if any of my 2 water sensors are wet. I also created a variable Num_Wet and set it as a number with a value of zero. I then want to add a couple of If statements that IF Upper Sensor is Wet THEN Num_Wet = Num_Wet + 1 and then another one to say IF Lower_Sensor is Wet THEN Num_Wet = Num_Wet + 1.
I went into RM and created a new rule. I set the triggers to any of my 2 water sensors being wet. I then created an Action to run as a Conditional Action of IF Then and the Expression is A/C Lower Water Sensor is Wet but I can figure out how to put in the part to have Num_Wet = Num_Wet + 1.
If I chose Insert before Expression Element and then pick the A/C Lower Water Sensor wet it wants to be set up what is going before that (as it said). I don't want to have something before that. What I want to do is to set the IF part.
This certainly isn't the most elegant rule, and I don't know if I need the "Repeat every 30 seconds" in the While statement, since I put a 30 second delay in after the Notification, but does it look like it will work?
Why not just use HSM and have if any water sensor (or selected sensors) wet send notification? Send %device% is wet. Please check. All you would have to do is hit cancel on a dashboard to cancel the alert.
The whole reason I'm creating this is that I don't want to have to hit the cancel button. I did set it up in HSM and when they are both dry I get this clicking sound every 30 seconds as %Device% becomes an empty string.
I realized I didn't need the Num_Wet variable and set the Wet_Devices directly.
But one thing that is puzzling me is why the While line of:
While (Variable Wet_Devices("Both Dry") <> 'Both Dry'(T) [TRUE]) ... thinks that is true because as you can see in the variable section Wet_Devices is set to Both Dry.
I did a test run, and sure enough, it thought Wet_Devices <> Both Dry and sent me a notification. It wasn't until it looped through and set Wet_Devices to Both Dry in the 4th IF statement that it stopped.
I'm not sure how or why it worked, but I clicked on the right Both Dry (the one after the <> sign) and then when I clicked I was done with the actions it is now showing up properly:
Any idea on why the Google Mini isn't announcing this?
I also have a few Alexa Echos (the little puck ones) but they don't show up as a choice. I tried to search the forums for that by searching for "send notification to alexa" but that didn't really turn up anything that told me how to get the Alex to appear as a device choice. I have the Amazon Echo Skill, but that only allows me to choose devices, not rules. Do I have to create a virtual device to send the notice to and then include that device in the Amazon skill?