Imperihome - Running a PLEG condition

Wondering if it is possible to run a specific PLEG condition from an Imperihome device / widget.

If not, I can just create a vera native scene, and run it from Imperihome that way, I hate to do this, as I have all non wall controller logic in PLEG, not a vera native scene, and hoped to keep native scenes to a minimum when possible.

Thanks for any advice out there!

Anyone have tips on this to trigger PLEG condition from Imperihome?

Thanks!

Pleg can only see devices. Usually the middle man between things is a virtual switch or “multiswitch” plugin.

Or if the User Interface has the ability to write a USER defined variable on a device … PLEG can trigger off of that.

Thanks - I was actually creating a Multiswitch for Imperihome, and wondered if there was a more streamlined way. I like some of the switches Imperihome has, green when on, an red when off, and will be using those to trigger the multiswitch which will then trigger the pleg condition.

Thanks all

Another quick question… Possible to avoid multiple triggers ?

Please take a look at my settings on the screen shot, attached.

Is it possible, without creating a new Separate trigger on the MultiSW_Imperihome, to use customized arguments that says if !tImperihome_4 turn OFF the backyard lights? (CBackYardLightsOff)

I was wondering about the CImperihome_4 condition being both tImperihome_4 or !tImnperihome_4, then evaluate in the custom argument that says if the outside lights are already on, run (CBackYardLightsOff) , else, run the (CBackYardLightsOn action

This did not work for me : {(cAllOutsideOn ? ‘0’ : ?1?)} , so I removed it and tested with the ON action, which works, but hope to avoid more triggers if possible.

Thanks!

You have not explained why you need to trigger conditions directly from imperihome so I’m not understanding why using a variable change, multiswitch, is undesirable?

Sent from my SM-G900V using Tapatalk

@ Aaron - Please tell me more!

I am using a multiswitch.

I have a trigger from the Imperihome ON switch (device, not composite) to trigger the PLEG condition.

Sure, I if I use a COMPOSITE device in Imperihome, I COULD associate all the device in question, but that is a negative for me because 1) I cannot use the left right toggle device type in Imperihome that lights red or green, AND I would then not be using a single source / version of the truth (PLEG) to trigger my devices.

My question is simply how to avoid creating another trigger for each of the 4 multiswitch OFF triggers. I am not familiar with Variable changes, can you explain how this can allow me to use a single trigger and condition using variables to accomplish my desired result?

You likely have a far deeper knowledge of the Pleg / Imperihome relationship to suggest a better way.

Thanks!

[quote=“MrAutomate, post:1, topic:186723”]Wondering if it is possible to run a specific PLEG condition from an Imperihome device / widget.

If not, I can just create a vera native scene, and run it from Imperihome that way, I hate to do this, as I have all non wall controller logic in PLEG, not a vera native scene, and hoped to keep native scenes to a minimum when possible.

Thanks for any advice out there![/quote]You can also trigger the PLEG condition using an HTTP request from imperihome.

@Vreo: Can you show me an example of how you have done this ?

Sure, sorry, try this:

http://your_vera_ip:3480/data_request?id=action&DeviceNum=pleg_id&serviceId=urn:rts-services-com:serviceId:ProgramLogicC&action=RunAction&conditionName=condition_name

@Vreo
Actually that’s NOT triggering the evaluation of PLEG conditions … it’s just RUNNING the actions associated with a PLEG condition.

That said … you can make a HTTP Request to set a user defined variable.
If that variable happened to be a PLEG input device property it would trigger the evaluation of the PLEG conditions.

@Vreo -

Very nice, so, I would create a device in Imperihome that calls that address, right ?

While very cool, I think that would use one tile in my Imperihome dashboard, and run one action, so wouldn’t I need to create another web device on a different tile to do the opposite action?

I am very close to my preferred trigger, the left right, red / green device, triggering a multiswitch.

Is it possible to create a condition in PLEG that fires on tImperihome_4 and !tImperihome_4 and the run action would be to call a PLEG_LIGHTING action, cAllOutsideOn if the CallOutsideOn condition is not currently true, or call the cAllutsideOff condition if not currently true when the cImperihome_4 condition evaluates to true, which would be on either the ON of OFF imperihome button push ?

Can customized arguments accept Nested logic, and how would that look ? {(cAllOutsideOn ? ‘0’ : ‘1’)}