45604 outdoor module...go back to previous setting?

In response to the OP. The device (45604 outdoor module) is not relevant to the issue, Vera is simply turning it On or Off.
Just an observation to your scene setup.
Assuming the light was already On when the door was closed, triggering the second part of your scene to turn the light On again, the “after one minute go back to previous setting” request would keep the light On.
Try this as a test: Open your door (event) the light should turn On. Manually turn that light off. Close the door (event) which should turn that light back On, and then it should turn Off after one minute.


In a previous thread I brought up a bug on the GE dimmers I am using…they would not return to there previous settings (setup in scene control) and that is with no Code added. The GE product line varies from model to model but they have compatibility issues with Leviton and I think even Vera has a hard time with some of them. I would try using a different brand on your outdoor switch IF this feature is a deal breaker.
Tim Alls

[quote=“Intrepid, post:11, topic:168224”][quote=“Michael_N_Blackwell, post:9, topic:168224”][quote=“Intrepid, post:1, topic:168224”]I have 4 outside doors with hrds1 sensors and a virtual ‘any/all door’ device. If it is night, and any door is opened, the flood lights, front porch light, deck lights (on 45604 outdoor module),
Should this work, or does ‘go back’ only work for light/dimmer modules?[/quote]
@Intrepid, can provide insight / Code for your “any/all” virtual device as to how your using this, thanxs in advance. Mike[/quote]

Sure! I’m ultra-new and not a programmer, but I did get this one going. I’ve had this working in homeseer for 10 years. HS allows conditionals in GUI events, but this is actually just as easy in Vera.

I have 4 exterior doors with HRDS1 sensors. If ANY door is opened (tripped), the ‘any door’ virtual device turns on. When ALL 4 doors are closed, the vrtual device turns off.

I mainly use this for night scenes where I want all exterior lighting (mainly floods) to come on when any exterior door is opened and stay on until all exterior doors are closed.

  1. Create a virtual device:

  2. Create 4 scenes (one for each door) called ‘door 1 open’, ‘door 2 open’, etc. Each of these are triggered by the event HRDS1 for being tripped, yes. And the command of turning ‘any door virtual’ on.

  3. Create 4 more scenes called ‘door 1 closed’, door 2 closed, etc. Each triggered by event HRDS1 tripped, no. And the luaa:

– Find the status of any doors

local Door1State= luup.variable_get(“urn:micasaverde-com:serviceId:SecuritySensor1”, “Tripped”, 8)
local Door2State= luup.variable_get(“urn:micasaverde-com:serviceId:SecuritySensor1”, “Tripped”, 27)
local Door3State= luup.variable_get(“urn:micasaverde-com:serviceId:SecuritySensor1”, “Tripped”, 28)
local Door4State= luup.variable_get(“urn:micasaverde-com:serviceId:SecuritySensor1”, “Tripped”, 29)

– Exit the scene if any door is open
if (Door1State == “1”) or (Door2State == “1”) or (Door3State == “1”) or (Door4State == “1”) then
return false

8, 27, 28, 29 are the devices for my HRDS1s.

I’m sure there is a more elegant way to handle this without having 8 scenes, but this was my first attempt, and it works.

Besides the lighting scene being discussed in this thread, It’s also handy to have one indicator device to see if any door is open on my iphone.

Hope that helps.[/quote]

@interpid, I used your recommendation LUA code and just created a single scene for my locks three locks (can be modified for sensors) and in the scene events tab added a open and closed event for each device and then used the following LUA:

– Find the status of multiple locks
local Lock1State=luup.variable_get(“urn:micasaverde-com:serviceId:DoorLock1”,“Status”,26)
local Lock2State=luup.variable_get(“urn:micasaverde-com:serviceId:DoorLock1”,“Status”,27)
local Lock3State=luup.variable_get(“urn:micasaverde-com:serviceId:DoorLock1”,“Status”,78)
if (Lock1State == “0”) or (Lock2State == “0”) or (Lock3State == “0”) then luup.call_action(“urn:upnp-
– Set Virtual Switch to “Off” because one switch is not locked and exit the scene
org:serviceId:SwitchPower1”,“SetTarget”,{ newTargetValue=“0” },85)
return false

In the command tab, I set the virtual device (85) to “ON”, (could have done same using LUA after return false command). Seems to work great thanxs for pointers. Mike