Is it possible to have one device turn on/off depending on the on/off status of another device. Basically I have a table lamp that I want to come on/off anytime the light tied to the wall switch is turned on/off. The problem is that if I use scenes that have the wall switch on/off as the trigger, it only works if the wall switch is turned on/off via Vera, not if the wall switch is turned on/off manually.
In essence I want the on/off status of the lamp module to mirror the wall switch. I’m sure this could probably be achieved via a LUA script, but my scripting is pretty rusty…
I have several of these setups. Each has a separate on and an off scene. For the trigger I use the ‘master’ device ‘switched on or off’ as the trigger and based on that the ‘slave’ devices get switched on or off. This works via the scenes (run from Vera, a GE remote or Intermatic remote) as well as from the Intermatic (1 setup) and GE (1 setup) switch. Using UI5
I did an example for this some time ago in PLEG.
It did not need a master device.
The key was to use sequence expressions to see which changed last.
(i.e. if the two have different states … change the older one to the same state as the newer one).
If you changed one device the other followed. It did not mater which device you changed.
Associations work if the devices support them.
Also my solution only works with devices that support instant status (i should say only work reliably, without instant status Vera/PLEG will not see the change until the next time the device is polled).
BOFH, I have scenes configured as you describe now. But for me, this doesn’t work if someone manually turns on the master switch. Vera has to turn on/off the master switch. Otherwise it won’t see the state change of the master switch.
I’m not sure about associations. Either my devices don’t support them, or I misunderstand how they work.
RichardTSchaefer, do you have an example of sequence expressions?
Device : select your master device
Type of event: A Device is turned on or off
Which mode : Device is turned on
Advanced tab - enter your slaves here.
In the Pick A device, select your slave device
assuming switch
For ‘Please select’ for that device, pick SetTarget and set value to 1 (on)
assuming dimmer (If above SetTarget does not work)
For ‘Please select’ for that device, pick SetLoadLevelTarget and set value to 100 ( full brightness)
The Off scene is the exact opposite
Which Mode : Device turn Off
Please select : SetTarget 0 or SetLoadLevelTarget 0
BOFH, your solution only works is the master is turned on/off via Vera. Not if it is manually turned on/off.
What I have is a GE Z-Wave wall switch (45609) as the master, and a GE appliance module (45603) that the table lamp is plugged into. I created 2 scenes that use the wall switch as the trigger to turn the appliance module on/off when the wall switch is turned on/off. However, it will not work if the wall switch is turned on/off manually.
I need something that polls the status of the switch continuously to determine it’s state (on/off) and sets the appliance module to match.
Are you running UI5 or UI7? One of my setups has GE wall switch as a master and a GE outdoor outlet as a slave. The other has an Intermatic switch as a master and 2 GE appliance modules as slaves. I have no problems with using either master switch to have the slaves follow within seconds. Unfortunately, I do not know why it works for me but not for you.
If you do not have Instant status z-wave devices … this may not appear to work … until a poll happens later.
I believe a view vendors plays a trick to look like instant status … but it ONLY works if Vera sees the message directly … i.e. it does not route through the z-wave mesh network.
OK, check the Advanced tab of your devices. Does the AutoRoute one starts with 0 or 0-5 or similar? That’s an indication they are talking directly to Vera. Which mine do. Richard may have a point with his observations about the ‘status’ message.
would it be possible to do the same with shutters, but not only to close or open them, but also set a % of opening ?
It would be interesting to have a kind of plugin that groups 2 (or more) of same kind of devices (dimmers, switch, shutters, whatever…) that would look like a module (with scroll bar for shutters/dimmers) that would be controlable from only one virtual device, letting the user free to change only one of them if he wants to…
It is maybe already possibble…?
Yes the same strategy can be used to link shutters together.
You would need a Virtual Switch (or MultiSwitch) to disable the auto-linking if you want to run them independently.
Conditions:
Link1Change VirtualSwitchEnable and (VirtualSwitchEnable; Shade1Status)
Link2Change VirtualSwitchEnable and (VirtualSwitchEnable; Shade2Status)
LinkNChange VirtualSwitchEnable and (VirtualSwitchEnable; ShadeNStatus)
Actions:
Link1Change Set Target for all Shades at 0, then in Advanced tab change values to {(Shade1Status)}
Link2Change Set Target for all Shades at 0, then in Advanced tab change values to {(Shade2Status)}
LinkNChange Set Target for all Shades at 0, then in Advanced tab change values to {(ShadeNStatus)}