Page 1 of 1

Ultercocker needs some help

PostPosted: Tue Sep 06, 2022 3:35 pm
by dfiedler
Need to program z-wave device to be on or off if two other devices are on or off.

It either A or B is on then C is on.

If both A and B are off then C is off

Re: Ultercocker needs some help

PostPosted: Tue Sep 06, 2022 6:11 pm
by Different Computers
Is this about when A and B TURN on, or any time both ARE on? The former is easy to catch, the latter not so much.

Depending on what C is and whether or not it reports its status to Indigo, I’d do two triggers for the first part, assuming it DOES report:

Trigger 1: When A turns on, turn on C, IF C is not on.

Trigger : When B turns on, turn on C, IF C is not on.

Trigger 3: if A turns off, AND B is off, turn off C

Trigger 4: if B turns off, AND A is off, turn off C

The “AND” parts are conditions on the trigger

Re: Ultercocker needs some help

PostPosted: Wed Sep 07, 2022 6:55 am
by eme jota ce
I've had good luck creating Indigo Virtual Devices of the "Model" type "Device Group" which allows you to add multiple other devices to create a single, virtual device. It also has an option that the Virtual Device will be "On" when either all of the underlying devices are On or when just one of them is On.

So, it might work for you to create a Virtual Device using A and B, then set the On status of the Virtual device to "When Any Device is On". Then, just create a trigger based on the Virtual Device's status because it will be On if either A or B is On, but will be Off is both are Off.

Re: Ultercocker needs some help

PostPosted: Wed Sep 07, 2022 3:04 pm
by Different Computers
Ohh, yeah! Virtual devices is a much better idea!