…you whaaaaat? I’m interested in having a light on a Leviton 4-scene controller indicate lock status… I’d like to learn how you did this.
…you whaaaaat? I’m interested in having a light on a Leviton 4-scene controller indicate lock status… I’d like to learn how you did this.[/quote]Sure thing. In my case, Green=Unlocked, Red=Locked. (You can use amber, off, etc.)
I have the following devices:
Deadbolts AA & BB
Zone Controllers XX, YY, & ZZ locks.
Then I have 2 scenes define, one called “DB Unlocked” and another called “DB Locked”
In the “DB Unlocked” scene, I have the following LUUP code:
-- Set Zone Controllers LED4 to green
luup.call_action("urn:micasaverde-com:serviceId:SceneControllerLED1","SetLight",{newValue="1",Indicator="4"}, XX)
luup.call_action("urn:micasaverde-com:serviceId:SceneControllerLED1","SetLight",{newValue="1",Indicator="4"}, YY)
luup.call_action("urn:micasaverde-com:serviceId:SceneControllerLED1","SetLight",{newValue="1",Indicator="4"}, ZZ)
In the “DB Locked” scene, I have the following LUUP code:[code]
local lockStateFront = luup.variable_get (“urn:micasaverde-com:serviceId:DoorLock1”, “Status”, AA)
local lockStateKitchen = luup.variable_get (“urn:micasaverde-com:serviceId:DoorLock1”, “Status”, BB)
if (lockStateFront == “1”) then
if (lockStateKitchen == “1”) then
– Set Zone Controllers LED4 to Red
luup.call_action(“urn:micasaverde-com:serviceId:SceneControllerLED1”,“SetLight”,{newValue=“2”,Indicator=“4”}, XX)
luup.call_action(“urn:micasaverde-com:serviceId:SceneControllerLED1”,“SetLight”,{newValue=“2”,Indicator=“4”}, YY)
luup.call_action(“urn:micasaverde-com:serviceId:SceneControllerLED1”,“SetLight”,{newValue=“2”,Indicator=“4”}, ZZ)
return true
end
end
– Set Zone Controllers LED4 to Green
luup.call_action(“urn:micasaverde-com:serviceId:SceneControllerLED1”,“SetLight”,{newValue=“1”,Indicator=“4”}, XX)
luup.call_action(“urn:micasaverde-com:serviceId:SceneControllerLED1”,“SetLight”,{newValue=“1”,Indicator=“4”}, YY)
luup.call_action(“urn:micasaverde-com:serviceId:SceneControllerLED1”,“SetLight”,{newValue=“1”,Indicator=“4”}, ZZ)[/code]
That is awesome information. I never knew you could do that!
- Garrett
Edit:
I am getting invalid service when trying to set the led status of my Monster (leviton) 4 scene controller. Is this limited to only zone controllers?
[quote=“garrettwp, post:3, topic:170918”]That is awesome information. I never knew you could do that!
- Garrett
Edit:
I am getting invalid service when trying to set the led status of my Monster (leviton) 4 scene controller. Is this limited to only zone controllers?[/quote]I think only the newer Leviton (Vizia RF+) are capable of external LED control. Monster controllers are the older generation (Vizia RF).
More info here: http://wiki.micasaverde.com/index.php/Leviton_LED_Debugging
Correct. Only the current stuff; I think the following:
- VRCS4-M0/MR
- VRCZ4-M0/MR
- VRCS2-MR
So not the older VRCS4-1L and VRCZ4-1L, or before that (as mentioned).
(See also here.)
Blast! I too have the Monster 4-button scene controllers… oh well. Thanks for the info!
did anybody tried to use the value = 3(Amber). I tried setting mine to Amber and on first look it looks like RED, but if you look closely, value=3 is like a lighter RED, and not really an AMBER. Can somebody confirm. Thanks.
I’m glad you bumped this really old thread. Now I want to play with this again.