WebCoRe: IF Sensor X is open, ignore Sensor Y?

Is it possible to tell ST to turn off or ignore nodes from a specific sensor if another sensor is already opened?

Here’s what I’m trying to do.

I will add a chime (ding dong) with integrated relay, when someone crosses my gate it will send a signal to that chime, make a sound and the relay will turn a light on for a few seconds.

That light will be powered through the relay, as well as through a smart switch.

The smart switch turns on the light if the home alarm or the smoke alarm is triggered.

What I want to avoid, in the unlikely event that the home or smoke alarm is on (sensor would show open), is to turn power on again through the gate sensor, which would fry the light.

So, IF Home Alarm or Smoke Alarm or IF Home Alarm and Smoke Alarm are Opened, turn off Gate sensor or ignore Gate sensor nodes.

Thanks

This is an overly simplified version of it - but the premise is the same.

If Contact sensor 1 opens then:
Do Something… In this case - check the state of contact sensor 2
If that sensor is in the state you want - do something else
Else Do nothing

It looks like this:

1 Like

Now that said, to make your scenario work, you can’t have your ‘stuff’ (contact sensor, smoke, etc.) trigger the smart switch directly, you would instead have to create a virtual switch that gets triggered by your stuff and then when THAT gets triggered, run code such as the example above, and turn on the REAL device if it’s all true. That’s kind of how the SHM delay SmartApp works…

NOW here’s the real problem. Don’t setup devices that can fry each other, it’s bad juju. If someone comes up and manually throws the switch, automation be damned - fry city. You probably want to rethink how this whole thing is setup.

Thanks for the tips.
The alarm and smoke already trigger the smart switch using SMH custom rules, I want to add hooking up the light to the gate as well. CoRe was one idea, the other I’m leaning towards as it would be more reliable is using a second relay that would cut power from one source if the other is on but I did not figure out how to wire it yet. Maybe I’ll do both so it should be fail safe.

1 Like

Yes, do both. :wink:

“Fry some more!” is a catch line to be used by Alton Brown in Good Eats, not for electronics and humans…

If and when you do that, then create your virtual switch and have your stuff trigger that. Insert your custom code to act on the virtual switch.

Good luck!

1 Like

I figured out the wiring, I’m posting it here in case someone is interested.

I’m using the Guardline Wireless driveway Alarm (500 ft version) with 2 receivers.

1 receiver inside the house will sound when someone comes in. On the NO & COM connections of the receiver I attached a ZW097 z-wave dry sensor which triggers a push notification through ST as well when someone enters.

1 receiver outside (I have a shed with power alongside my driveway) will also sound simultaneously. The integrated relay will turn a strobe light on (attached to the shed) for a few seconds (integrated timer on the receiver for 1, 5, 10 and 60 sec). This is telling someone entering “we know you are here” - deterrent for uninvited folks.

The second relay is in normally closed position when not powered so current passes from the gate receiver to power the strobe light. In case the other alarms are on, it tells the smart plug to turn the power on. The attached 12 volts trans will power both the light and the relay, which will turn open the gate receiver circuit to prevent both working at the same time. Because the strobe light is wired to both power sources, the second switch of the relay must be used in NO position (switches to closed when the transformer is turned on). If not used it will create the relay to oscillate on/off as long as the gate receiver powers it and the light won’t work.

Capture

Parts below:

https://www.amazon.com/gp/product/B00HFZUKGM/ref=ask_ql_qh_dp_hza

https://www.amazon.com/Guardline-Extra-Receiver-Original-Driveway/dp/B00I0BVP9Q/ref=pd_bxgy_60_img_3?_encoding=UTF8&pd_rd_i=B00I0BVP9Q&pd_rd_r=3GGT2VA2KH9W7N5Q6KYC&pd_rd_w=8z7HZ&pd_rd_wg=S7wTF&psc=1&refRID=3GGT2VA2KH9W7N5Q6KYC

https://www.amazon.com/Aeotec-Aeon-Labs-ZW097-Contact/dp/B0155HSUUY/ref=sr_1_1?s=electronics&ie=UTF8&qid=1515288743&sr=1-1&keywords=zw097

https://www.amazon.com/ELK-PRODUCTS-ELK924-SENSITIVE-RELAY/dp/B000HCVPXW/ref=sr_1_1?ie=UTF8&qid=1515959968&sr=8-1&keywords=elk+924

https://www.amazon.com/gp/product/B073QTNF9F/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1

https://www.amazon.com/gp/product/B01DNCU2AO/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1

https://www.amazon.com/gp/product/B0714N28YT/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1

Plus whatever smart plug.