@mike.maxwell Could we get a virtual moisture sensor added? I would like a device that triggers a virtual switch in Hubitat to be able to alert me via the HE Safety monitor that a leak has occurred.
In the meantime. You can try virtual omni sensor. It's a multi virtual sensor.
I'm confused, a virtual moisture sensor would not have a switch capability, the event attribute values would be wet or dry, it would have custom commands allowing you to change these states, but it would not be a switch, nor would it respond to on off commands.
Is that what you're looking for something you can command on off, but reports wet dry?
The latter. Hubitat is still not compatible with Insteon, but I can now "see" my Insteon moisture sensors in Homebridge. This allows me create an automation in HomeKit to toggle a virtual switch. With that I would be able to make a RM rule that would toggle the state of a virtual moisture sensor to wet (or dry if it was needed) to alert me via HE Safety monitor.
And unfortunatly HSM doesn't have switch as a capability in the custom monitoring section.
Creating such a virtual device is very straight forward.
It would have two capabilities, switch and moisture.
It would have two commands, on and off. In the on method it would sendEvent(name:"moisture",value:"wet"), and dry for the off method, that's all it would need to do.
Or you can use STs simulated water sensor code:
https://raw.githubusercontent.com/SmartThingsCommunity/SmartThingsPublic/master/devicetypes/smartthings/testing/simulated-water-sensor.src/simulated-water-sensor.groovy
Thank you both. That works perfectly.
What does HE Safety monitor send the text "Intrusion Alert" ? I thought that when I selected "All leak and water detectors" it would send a message relating to a leak or some kind of water event?
Not 100% sure what you are asking but here is an example of what I receive:
This is configured here:
Thanks. I should have seen that. I'm sure when I first looked at Safety Monitor I saw that, but didn't click into the field where I had entered my mobile number long ago. You'd think that after having Hubitat since February I'd know something like that. Haven't fully configured Safety Monitor for leak detection and prevention until now. Enjoying the realization that I can now integrate my Insteon detectors and my leakSmart shutoff valve, together with my mix of Xiaomi, leakSmart and Iris leak detectors.
When I go back to find how to do things, I feel the frustration that new users feel when they can't simply search and find the relevant section from a user guide.
Where is mobile device defined, for "Send notification to device(s)"?
[Edit] Never mind the last question. I forgot about the pushover driver, which I'm not utilizing. Did a test and figured it out.