Page 1 of 1

Problems with triggers

PostPosted: Wed Nov 30, 2016 8:11 pm
by captcurrent
I am not sure how to properly express thissto activate the associated action group
I am using X10 Door sensors and am trying to confirm that all door are closed

Using Switchboard and building a dive group I find sort of last in first out situation .. last door status change seems to govern the group
(see monitor attachment)
monitor.jpeg
monitor.jpeg (91.79 KiB) Viewed 4677 times


So I tried to build a trigger to check the doors (see trigger attachment)
trigger.jpeg
trigger.jpeg (71.34 KiB) Viewed 4677 times


trouble is it doesnt seem to see the correct value of the varable (FrontDoorWest-A)

From the image (variable) can see the variable front_door_west_open is true yet the trigger treats li like it is false..
variable.jpeg
variable.jpeg (88.39 KiB) Viewed 4677 times


I am just treading water on this so any help or suggestions would be appreciated

Re: Problems with triggers

PostPosted: Wed Nov 30, 2016 8:31 pm
by matt (support)
How are you testing the conditional? Note pressing the Execute Actions button in the Main Window UI bypasses (ignores) the conditional and always executes the action.

Re: Problems with triggers

PostPosted: Thu Dec 01, 2016 8:00 am
by captcurrent
OOps didn't know that

If the conditional, such as mine, is not met does the trigger action still appear in the log??

Re: Problems with triggers

PostPosted: Thu Dec 01, 2016 8:51 am
by matt (support)
If the conditional isn't matched nothing will be logged (and trigger will not fire).

Re: Problems with triggers

PostPosted: Thu Dec 01, 2016 11:32 am
by captcurrent
Guess I will have to build separate triggers and debug

Am I right on the last status in driving a device group. Essentially if I have five doors closed and one opens the action group will go even though 4 remain closed

Re: Problems with triggers

PostPosted: Thu Dec 01, 2016 1:55 pm
by jay (support)
captcurrent wrote:
Am I right on the last status in driving a device group. Essentially if I have five doors closed and one opens the action group will go even though 4 remain closed


I believe that's more of a question for Benjamin (the developer of the Switchboard plugin).

Re: Problems with triggers

PostPosted: Thu Dec 01, 2016 2:45 pm
by captcurrent
I see no signs that it is being maintained... last Version of Indigo referenced is 5

Re: Problems with triggers

PostPosted: Thu Dec 01, 2016 3:20 pm
by jay (support)
I'd still post the question on that forum - perhaps someone else who uses the plugin can answer.

If your sensors are standard X10 sensors then you might be able to use a Device Group instead. It has an option to set the group's state to ON either when one device in the group is on or when ALL of the devices in the group are on. You'd use the former in your scenario to know when they're all off.

Re: Problems with triggers

PostPosted: Thu Dec 01, 2016 3:59 pm
by captcurrent
I have a problem trying to so In following the steps shown in http://wiki.indigodomo.com/doku.php?id= ... ice_groups

when i create a new device, there is no Device Collection to select fromhe Type menu, and therefore no Device Group from the model menu,

Running version 7.02 in both server and client on Sierra

Re: Problems with triggers

PostPosted: Thu Dec 01, 2016 5:37 pm
by jay (support)
That should read Virtual Devices (not Device Collection) - I've updated the docs.

Re: Problems with triggers

PostPosted: Thu Dec 01, 2016 6:12 pm
by captcurrent
OK I sort of beat the issue.... I appears that switchboard and I are fighting over the same Variable that I use to trigger a door check/... I built triggers for each door and verified its status

The issue was the variable the switchboard action groups was suppose to change... DoorClosed

I added a new variable DoorClosed_Copy and let the trigger from the door actionsupdate it apart form the switch board action groups and all works... after 4 days of debugging


Ok I was thinking of changing over the devices from X10 Switch board Monitored to straight device but the device type (DS10A) is no loner apparently supported.. I have enough issues between the boolean logic with out trying to apply on/off to an open/closed

any suggestions on this one??


I think there is a light a the end of the tunnel just concerned how big the locomotive is

Re: Problems with triggers

PostPosted: Thu Dec 01, 2016 6:21 pm
by captcurrent
ahh VIRTUAL like reality Ok figured out how to activate that but it doesn't see my sensors as I they are switchboard monitiored Please see my post above about DS10S

Thanks for all the help it sort of works with bailing wire and duct tape see if I can clena it the rest the way up by rebuilding devices

Re: Problems with triggers

PostPosted: Mon Dec 12, 2016 3:27 pm
by bschollnick2
jay (support) wrote:
captcurrent wrote:
Am I right on the last status in driving a device group. Essentially if I have five doors closed and one opens the action group will go even though 4 remain closed


I believe that's more of a question for Benjamin (the developer of the Switchboard plugin).


It is being maintained, but I rarely am stressing the system anymore. I keep thinking about cleaning the code up, but I haven't found any bugs that might help encourage me to do so.

We're reached a place where the Home Automation at the house is "good enough", and I rarely get any feedback, comments, suggestions in the forums, so really the best way to reach me is via email (benjamin at schollnick dot net).

First, from the picture, you have "Only on Open", and "Only on Close" turned on. Those two chooses are exclusive. I'll have to look into adding that into the configuration file so that Indigo will prevent that. (See a bug report! That's the first one in two years!)

Only on Open, means that the trigger is only going to be seen by indigo on an "Open". Same with Close.

If you want both Open & closes to trigger, then turn both of those off.

But it sounds like you want to trigger on the Monitored group with the "Devices Trigger" trigger. When you have a monitored group, if you have *ANY* devices shown as Open, then "Devices Triggered" will be True.

It's a simple way to ensure that all the Doors / Windows, etc, are closed.

And now that I've posted to this forum, I'll be email notified. So feel free to let me know if this did or didn't help.

- Benjamin

Re: Problems with triggers

PostPosted: Thu Dec 22, 2016 5:03 pm
by captcurrent
I was over thinking it i followed your simple guidance and it appear fine

i was trying to be too fancy and trying o not only fine open or close but notify who the changer was example security come on and a door is still open , who is that door


Thanks!!

Re: Problems with triggers

PostPosted: Sat Dec 31, 2016 8:05 am
by bschollnick2
captcurrent wrote:
I was over thinking it i followed your simple guidance and it appear fine

i was trying to be too fancy and trying o not only fine open or close but notify who the changer was example security come on and a door is still open , who is that door


Thanks!!


Glad I could help....