I just learned (thru this forum) about how to create a toggle state for a lamp (dimmer mod) that allows one button push for one, same button push for off (using Minimote). Handy not to have to create two scenes!!!
Question is… could you do this with multiple lights in a scene (from the advanced tab)? Not at home… so can’t test.
Be nice to cut down on the number of scenes I have just for on/off of lighting.
You could certainly toggle multiple lights using Lua in a scene. The fun part is when they get out of step so you can never turn them all on or off. ;D I would be inclined to use one light as the reference and switch them all to the same state.
RexBeckett, would you mind briefly describing how to use one light as a reference and switch others to the same state?[/quote]
With Lua, you could use something like this:
local dID = 120 -- Device ID of your master Switch
local slaves = {121,122,123} -- Device IDs of slave switches
local status = luup.variable_get("urn:upnp-org:serviceId:SwitchPower1","Status",dID)
for i=1,#slaves do
luup.call_action("urn:upnp-org:serviceId:SwitchPower1","SetTarget",{ newTargetValue=status},slaves[i])
end
You could put this into a scene’s LUUP tab and then add triggers for the master switch on and off.
Best Home Automation shopping experience. Shop at Ezlo!