Using device attributes on a water sensor with 2 probes


#1

I have Aeotec’s new Water Sensor 6 and Dock. The dock has 2 probes and I would like 1 probe to alert when water is detected and 1 to alert when it changes to dry.

Just as soon as I think I’m getting to understand webCore, I now realize I don’t know much about how to accomplish this task. I believe this task is an easy one if all I wanted to do was respond to the presence of water on either probe, but I choose to make this difficult. :slight_smile:

The device handler I’m using can be found here.

Here are the events when probe 1 and probe 2 sense water.

I don’t know how to translate what I’m seeing in the Device Handler and Event Log into something I can use in my piston. I also don’t understand why my Aeotec nano switch (which controls 2 switches) shows 2 separate child device switches but the water sensor does not show separate child devices for the probes. I assume that is a function of the device handler, but perhaps it’s more so the nature of the device itself?

I believe I have to dive into device attributes to solve my problem. I’m a little concerned however that Probe 1 and Probe 2 did not individually report “dry”. In the configuration I would like to make work, Probe 1 would normally be “wet” and Probe 2 “dry” and any change would be reported. Any insight is appreciated.


#2

Any thoughts on this? Is there any way to use what I see in the log?

Looking at the device handler I’m just not making the connection as to what can be used in the piston.

@Robin @ipaterson ?