Plugin: DelayLight

All good, I’d forgotten about it too. :slight_smile:

Awesome, I’ll switch to per room DelayLight devices as that seems to make more sense. :slight_smile:

Thanks for the update, if you need some code testing, when you’ve had chance, let me know.

Thanks again!

Hi Patrick,

As a workaround for now, I’m using scenes to enable and disable the delay light devices. So far, so good…

Would love to see this future!!

Hi Patrick,

I’ve installed your Plugin which looks great and have set up a light to switch on when the motion sensor is tripped.

Works as designed however there is a 4 - 6 second lag between the sensor tripping and the light switching on. The “on delay” option is set to zero so wouldn’t expect a delay?

Are you able to assist.
Thanks

That’s probably a combination of the responsiveness of your motion sensor and your ZWave mesh. Motion sensors, particularly the pet immune models, have built-in delays for hysteresis (to avoid nuisance trips caused by shadows or heat sources). Some of these are tunable, although rarely, and sometimes it’s a bit obtuse–I have one, for example, where the “sensitivity” setting very clearly affects timing.

But beyond that, we’re working with the responsiveness of your Vera and the ZWave mesh. I would check the load on your system first, to make sure something hasn’t gone rogue and is making your system very busy. Also, you may want to look into using the new DisableWakeupARR_NNU variable on your battery-operated sensors, as @rafale77 recommends, and reduce polling traffic on your mesh to the minimum necessary. More about those points here: Zwave Network On Vera Explained

2 Likes

To pile on, I use DelayLight on over a dozen switches in my house. The response in most cases is as fast as a dedicated in-wall PIR switch. As @rigpapa points out, however, the motion sensor itself has a several attributes that affect the speed.

  1. Sensitivity - as mentioned.
  2. Basic design - some PIRs will respond faster than others. You may need to find a different sensor if yours is intrinsically slow.
  3. Field of view - all PIR sensors have a “lens” that sets the field of view. Check the device instruction manual—there will usually be diagrams of the sensor field of view. Try to aim the sensor for maximum effectiveness. The Z-Wave PIRs are usually designed for false trigger immunity, not absolute response speed.
  4. Your network and Vera’s load - a good way to see if this is the issue is to trigger the PIR and watch for its LED flash (assuming it has one) which will tell you when the PIR saw the event. If there is a substantial delay after the flash, network/Vera delay may be the problem. Something else to consider – the PIR may flash the LED when the detector fires, but that may not be when the device sends the Z-Wave out, perhaps due to sensitivity/debounce delays.
1 Like

Thanks for the reply. I can rule out that it’s not a congestion problem as I was replacing an existing scene which works instantly the moment the PIR LED lights up.

The current set up:

  1. Virtual Switch, HALL LED, sends a HTTP request to a wifi switch to switch on an LED light
  2. PIR triggers a scene to switch on the HALL LED, wait 5 minutes and switch off.

The performance based on the above is lightning fast.

Worth mentioning is that scene is running on my Vera Edge controller which I have bridged to a VeraPlus controller.

I have various scenes of which your plugin would replace and significantly simply.

Any further recommendations would be greatly appreciated.

Thanks

Look at your LuaUPnP.log file on the system running DelayLight. You should easily find the string “Timer (name and device number of DLT) AUTO triggering…”. After that, you should find the string “Timer (name and device number of DLT) turning loads on”. The difference in the timestamps of those two is the bulk of DelayLight’s response time from seeing the PIR signal to turning on the controlled load(s).

If you want to watch that process in more detail, first turn set DebugMode in the DelayLight master device to 1, the reload Luup. Then run the test and check the logs. You’ll be able to see when the DLT actually sends the signal to the virtual switch. The DLT first sees the PIR change with the message beginning with “timerWatch(device number of your PIR, otherstuff…)”. That will typically lead the “AUTO triggering” message by just a few milliseconds.

Have you tried just flicking the virtual switch yourself and seeing how long it takes the light to come on? Seems you’ve got quite a bit of plumbing on that side, and bridged.

Thanks for the info Patrick. The virtual switch works instantaneously with no performance issues.

I’m keen on looking at the back ground logs, excuse the ignorance where do I find the log. Do I need to ssh on?

Thanks

You can request http://vera-local-IP/cgi-bin/cmh/log.sh?Device=LuaUPnP from a browser (local access–put your Vera’s IP in where indicated).

Thanks, I’ll install it on the bridged controller which is running the HTTPS switches and check the logs

Trying to have two DelayLight devices for the different ActivePeriods.
One for daytime (BänkbelysningDag) and one for evening (BänkbelysningKväll).
Both of them have the same motion sensor as trigger and controls the same device.
But as soon as the motion sensor resets, both of them starts to count down as you can see in the print screen.
I gues ActivePeriod is only on the “trigger on” and not on the off?

DelayLight

Active Period only affects auto timing. You cannot use two DelayLightTimers to control the same set of devices. One timer will see the other’s control of the device(s) as manual operation.

Edit: Use Reactor or another external scheduling mechanism, and enable whichever DLT you want active, disable the other, for a particular period of the day.

1 Like

Just what i was thinking. Love Reactor so i think i will set up something there instead. Thanks for the quick answer :smiley:

@rigpapa, the “Active Period” is it smart enough to determine overnight conditions (i.e.from 22:00 to 05:00) or do i need to break them up into sequential time periods (i.e. 22:00 to 23:59 AND 00:00 to 05:00).

Yes, 22:00 to 05:00 should work for active between 10pm and 5am (crossing midnight).

hmmm, ok, followup question… if a light in the group is on and the active period starts, does the countdown start then or is it only if it was triggered during the active period?

Reason for all these questions is that i have a DelayLight that turns on the kitchen lights between 2200 and 0500 if it senses motion. The delay light turns it off after the motion stops or if manually triggered after 4 hours. problem i’ve been having is that the light seems to turn off after 4 hours even outside of the active period. for example, right now i see it has 48 minutes before the delay off. which means the light was turned on 3 hours ago or roughly 6 a.m. which is outside of the active hours… so i would not expect it to be counting down now.

i know this is coming, so… here is the plugin status…

Blockquote
PLEASE COPY THIS ENTIRE OUTPUT WITHOUT CHANGES

{ "configversion": 19233, "type": "urn:schemas-toggledbits-com:device:DelayLight:1", "author": "Patrick H. Rigney (rigpapa)", "system": { "isOpenLuup": false, "isALTUI": false, "version": "1.7.4970", "units": "F" }, "plugin": 9036, "name": "DelayLight", "devices": [ { "type": "urn:schemas-toggledbits-com:device:DelayLight:1", "description": "DelayLight Controlle", "id": "", "devNum": 240, "device_json": "D_DelayLight_UI7.json", "udn": "uuid:4d494342-5342-5645-00f0-000002faf6cf", "plugin": "9036", "room": 3, "impl_file": "I_DelayLight.xml", "model": "", "device_file": "D_DelayLight.xml", "manufacturer": "", "parent": 0, "states": [ { "id": 6598, "service": "urn:toggledbits-com:serviceId:DelayLight", "value": "Started 3/3 at 03/20/20 05:58:01", "variable": "Message" }, { "id": 6599, "service": "urn:toggledbits-com:serviceId:DelayLight", "value": "true", "variable": "UI7Check" }, { "id": 6600, "service": "urn:toggledbits-com:serviceId:DelayLight", "value": "0", "variable": "NumChildren" }, { "id": 6601, "service": "urn:toggledbits-com:serviceId:DelayLight", "value": "0", "variable": "NumRunning" }, { "id": 6602, "service": "urn:toggledbits-com:serviceId:DelayLight", "value": "0", "variable": "DebugMode" }, { "id": 6603, "service": "urn:toggledbits-com:serviceId:DelayLight", "value": "19233", "variable": "Version" }, { "id": 6604, "service": "urn:toggledbits-com:serviceId:DelayLight", "value": "{ \"118\": { \"timers\": [  ], \"lua\": \"\", \"id\": 118, \"triggers_operator\": \"OR\", \"modeStatus\": \"0\", \"room\": \"6\", \"groups\": [ { \"delay\": 0, \"actions\": [ { \"device\": \"217\", \"service\": \"urn:upnp-org:serviceId:SwitchPower1\", \"action\": \"SetTarget\", \"arguments\": [ { \"name\": \"newTargetValue\", \"value\": \"0\" } ] }, { \"device\": \"28\", \"service\": \"urn:upnp-org:serviceId:Dimming1\", \"action\": \"SetLoadLevelTarget\", \"arguments\": [ { \"name\": \"newLoadlevelTarget\", \"value\": \"0\" } ] }, { \"device\": \"29\", \"service\": \"urn:upnp-org:serviceId:Dimming1\", \"action\": \"SetLoadLevelTarget\", \"arguments\": [ { \"name\": \"newLoadlevelTarget\", \"value\": \"0\" } ] } ] } ], \"name\": \"OUTSIDE LIGHTS - OFF\", \"encoded_lua\": 0, \"Timestamp\": 1540172845, \"users\": \"\", \"triggers\": [  ] }, \"117\": { \"timers\": [  ], \"lua\": \"\", \"id\": 117, \"triggers_operator\": \"OR\", \"modeStatus\": \"0\", \"room\": \"6\", \"groups\": [ { \"delay\": 0, \"actions\": [ { \"device\": \"217\", \"service\": \"urn:upnp-org:serviceId:SwitchPower1\", \"action\": \"SetTarget\", \"arguments\": [ { \"name\": \"newTargetValue\", \"value\": \"1\" } ] }, { \"device\": \"28\", \"service\": \"urn:upnp-org:serviceId:SwitchPower1\", \"action\": \"SetTarget\", \"arguments\": [ { \"name\": \"newTargetValue\", \"value\": \"1\" } ] }, { \"device\": \"29\", \"service\": \"urn:upnp-org:serviceId:SwitchPower1\", \"action\": \"SetTarget\", \"arguments\": [ { \"name\": \"newTargetValue\", \"value\": \"1\" } ] } ] } ], \"triggers\": [  ], \"users\": \"\", \"Timestamp\": 1540172765, \"name\": \"OUTSIDE LIGHTS - ON\", \"encoded_lua\": 0 } }", "variable": "SceneData" }, { "id": 6605, "service": "urn:toggledbits-com:serviceId:DelayLight", "value": "50", "variable": "MaxEvents" }, { "id": 6606, "service": "urn:micasaverde-com:serviceId:HaDevice1", "value": "0", "variable": "Configured" } ] }, { "type": "urn:schemas-toggledbits-com:device:DelayLightTimer:1", "description": "Kitchen Lights Timer", "timerState": { "off": { "163": { "valueOn": "1", "watched": true, "variable": "Tripped", "list": "off", "device": 163, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "invert": false, "devicename": "Kitchen Lights" } }, "eventList": [ { "dev": 241, "offTime": 0, "time": "20200320T055801", "status": "idle", "when": 1584698281, "event": "startup", "enabled": true }, { "state": "man", "time": "20200320T055801", "when": 1584698281, "event": "trigger", "dev": 241 }, { "offDelay": 14400, "time": "20200320T055801", "when": 1584698281, "mode": "man", "event": "trigger", "dev": 241 }, { "dev": 241, "time": "20200320T055801", "when": 1584698281, "mode": "man", "event": "loadson" } ], "trigger": { "nil": { "list": "trigger" } }, "on": { "163": { "valueOn": "1", "watched": true, "variable": "Tripped", "list": "on", "device": 163, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "invert": false, "devicename": "Kitchen Lights" } }, "inhibit": [  ] }, "id": "d240t1", "devNum": 241, "device_json": "D_DelayLightTimer_UI7.json", "udn": "uuid:4d494342-5342-5645-00f1-000002faf6cf", "plugin": "", "room": 15, "impl_file": "", "model": "", "device_file": "D_DelayLightTimer.xml", "manufacturer": "", "parent": 240, "states": [ { "id": 20737, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "1", "variable": "Enabled" }, { "id": 20738, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "man", "variable": "Status" }, { "id": 20739, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "1", "variable": "Timing" }, { "id": 20740, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "Delay Off 43m", "variable": "Message" }, { "id": 20741, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "222", "variable": "Triggers" }, { "id": 20742, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "163", "variable": "OnList" }, { "id": 20743, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "163", "variable": "OffList" }, { "id": 20744, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "300", "variable": "AutoDelay" }, { "id": 20745, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "14400", "variable": "ManualDelay" }, { "id": 20746, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "OnDelay" }, { "id": 20747, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "2", "variable": "HoldOn" }, { "id": 20748, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "1584712681", "variable": "OffTime" }, { "id": 20749, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "OnTime" }, { "id": 20750, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "ForcePoll" }, { "id": 20751, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "222,1577070009,1,urn:micasaverde-com:serviceId:SecuritySensor1,Tripped", "variable": "LastTrigger" }, { "id": 20752, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "3", "variable": "HouseModes" }, { "id": 20753, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "", "variable": "InhibitDevices" }, { "id": 20754, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "2200-0500", "variable": "ActivePeriods" }, { "id": 20755, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "1", "variable": "ManualOnScene" }, { "id": 20756, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "1", "variable": "ResettableOnDelay" }, { "id": 20757, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "19233", "variable": "Version" }, { "id": 20758, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "LastPoll" }, { "id": 20759, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "", "variable": "SceneData" }, { "id": 20760, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "TriggerQuieting" }, { "id": 20761, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "IgnoreTriggersUntil" }, { "id": 20762, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "ApplyInhibitorsManual" }, { "id": 20763, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "ApplyScheduleManual" }, { "id": 20764, "service": "urn:micasaverde-com:serviceId:HaDevice1", "value": "0", "variable": "Configured" } ] }, { "type": "urn:schemas-toggledbits-com:device:DelayLightTimer:1", "description": "Hallway Lights Timer", "timerState": { "off": { "277": { "valueOn": "1", "watched": true, "variable": "Status", "list": "off", "device": 277, "service": "urn:upnp-org:serviceId:SwitchPower1", "invert": false, "devicename": "Hallway Lights" } }, "eventList": [ { "dev": 242, "offTime": 0, "time": "20200320T055801", "status": "idle", "when": 1584698281, "event": "startup", "enabled": false }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "0", "time": "20200320T070206", "triggered": true, "variable": "Tripped", "when": 1584702126, "new": "1" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "1", "time": "20200320T070517", "triggered": false, "variable": "Tripped", "when": 1584702317, "new": "0" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "0", "time": "20200320T071322", "triggered": true, "variable": "Tripped", "when": 1584702802, "new": "1" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "1", "time": "20200320T071745", "triggered": false, "variable": "Tripped", "when": 1584703065, "new": "0" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "0", "time": "20200320T072154", "triggered": true, "variable": "Tripped", "when": 1584703314, "new": "1" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "1", "time": "20200320T072506", "triggered": false, "variable": "Tripped", "when": 1584703506, "new": "0" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "0", "time": "20200320T074803", "triggered": true, "variable": "Tripped", "when": 1584704883, "new": "1" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "1", "time": "20200320T075113", "triggered": false, "variable": "Tripped", "when": 1584705073, "new": "0" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "0", "time": "20200320T080339", "triggered": true, "variable": "Tripped", "when": 1584705819, "new": "1" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "1", "time": "20200320T080658", "triggered": false, "variable": "Tripped", "when": 1584706018, "new": "0" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "0", "time": "20200320T081017", "triggered": true, "variable": "Tripped", "when": 1584706217, "new": "1" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "1", "time": "20200320T081328", "triggered": false, "variable": "Tripped", "when": 1584706408, "new": "0" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "0", "time": "20200320T081504", "triggered": true, "variable": "Tripped", "when": 1584706504, "new": "1" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "1", "time": "20200320T082121", "triggered": false, "variable": "Tripped", "when": 1584706881, "new": "0" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "0", "time": "20200320T082829", "triggered": true, "variable": "Tripped", "when": 1584707309, "new": "1" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "1", "time": "20200320T083229", "triggered": false, "variable": "Tripped", "when": 1584707549, "new": "0" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "0", "time": "20200320T084802", "triggered": true, "variable": "Tripped", "when": 1584708482, "new": "1" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "1", "time": "20200320T085133", "triggered": false, "variable": "Tripped", "when": 1584708693, "new": "0" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "0", "time": "20200320T085830", "triggered": true, "variable": "Tripped", "when": 1584709110, "new": "1" }, { "dev": 242, "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "event": "watch", "old": "1", "time": "20200320T090141", "triggered": false, "variable": "Tripped", "when": 1584709301, "new": "0" } ], "trigger": { "236": { "valueOn": "1", "watched": true, "variable": "Tripped", "list": "trigger", "device": 236, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "invert": false, "devicename": "SENSOR Hallway" } }, "on": { "277": { "valueOn": "1", "watched": true, "variable": "Status", "list": "on", "device": 277, "service": "urn:upnp-org:serviceId:SwitchPower1", "invert": false, "devicename": "Hallway Lights" } }, "inhibit": [  ] }, "id": "d240t2", "devNum": 242, "device_json": "D_DelayLightTimer_UI7.json", "udn": "uuid:4d494342-5342-5645-00f2-000002faf6cf", "plugin": "", "room": 2, "impl_file": "", "model": "", "device_file": "D_DelayLightTimer.xml", "manufacturer": "", "parent": 240, "states": [ { "id": 20535, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "Enabled" }, { "id": 20536, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "idle", "variable": "Status" }, { "id": 20537, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "Timing" }, { "id": 20538, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "Disabled", "variable": "Message" }, { "id": 20539, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "236", "variable": "Triggers" }, { "id": 20540, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "277=25", "variable": "OnList" }, { "id": 20541, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "277=0", "variable": "OffList" }, { "id": 20542, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "300", "variable": "AutoDelay" }, { "id": 20543, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "3600", "variable": "ManualDelay" }, { "id": 20544, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "OnDelay" }, { "id": 20545, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "2", "variable": "HoldOn" }, { "id": 20546, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "OffTime" }, { "id": 20547, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "OnTime" }, { "id": 20548, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "ForcePoll" }, { "id": 20549, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "236,1584709110,1,urn:micasaverde-com:serviceId:SecuritySensor1,Tripped", "variable": "LastTrigger" }, { "id": 20550, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "1,2,3", "variable": "HouseModes" }, { "id": 20551, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "", "variable": "InhibitDevices" }, { "id": 20552, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "2300-0500", "variable": "ActivePeriods" }, { "id": 20553, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "1", "variable": "ManualOnScene" }, { "id": 20554, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "1", "variable": "ResettableOnDelay" }, { "id": 20555, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "19233", "variable": "Version" }, { "id": 20556, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "LastPoll" }, { "id": 20557, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "", "variable": "SceneData" }, { "id": 20558, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "TriggerQuieting" }, { "id": 20559, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "IgnoreTriggersUntil" }, { "id": 20560, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "ApplyInhibitorsManual" }, { "id": 20561, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "ApplyScheduleManual" }, { "id": 20562, "service": "urn:micasaverde-com:serviceId:HaDevice1", "value": "0", "variable": "Configured" } ] }, { "type": "urn:schemas-toggledbits-com:device:DelayLightTimer:1", "description": "Outdoor Lights Sync", "timerState": { "off": { "291": { "valueOn": "1", "watched": true, "variable": "Status", "list": "off", "device": 291, "service": "urn:upnp-org:serviceId:SwitchPower1", "invert": false, "devicename": "Carport lights" }, "283": { "valueOn": "1", "watched": true, "variable": "Status", "list": "off", "device": 283, "service": "urn:upnp-org:serviceId:SwitchPower1", "invert": false, "devicename": "Under house lights" }, "28": { "valueOn": "1", "watched": true, "variable": "Status", "list": "off", "device": 28, "service": "urn:upnp-org:serviceId:SwitchPower1", "invert": false, "devicename": "Top Deck Lights" }, "29": { "valueOn": "1", "watched": true, "variable": "Status", "list": "off", "device": 29, "service": "urn:upnp-org:serviceId:SwitchPower1", "invert": false, "devicename": "Middle Deck Lights" } }, "eventList": [ { "dev": 250, "offTime": 0, "time": "20200320T055801", "status": "idle", "when": 1584698281, "event": "startup", "enabled": true } ], "trigger": { "292": { "valueOn": "1", "watched": true, "variable": "Tripped", "list": "trigger", "device": 292, "service": "urn:micasaverde-com:serviceId:SecuritySensor1", "invert": false, "devicename": "Motion - Outside" } }, "on": { "291": { "valueOn": "1", "watched": true, "variable": "Status", "list": "on", "device": 291, "service": "urn:upnp-org:serviceId:SwitchPower1", "invert": false, "devicename": "Carport lights" }, "283": { "valueOn": "1", "watched": true, "variable": "Status", "list": "on", "device": 283, "service": "urn:upnp-org:serviceId:SwitchPower1", "invert": false, "devicename": "Under house lights" }, "28": { "valueOn": "1", "watched": true, "variable": "Status", "list": "on", "device": 28, "service": "urn:upnp-org:serviceId:SwitchPower1", "invert": false, "devicename": "Top Deck Lights" }, "29": { "valueOn": "1", "watched": true, "variable": "Status", "list": "on", "device": 29, "service": "urn:upnp-org:serviceId:SwitchPower1", "invert": false, "devicename": "Middle Deck Lights" } }, "inhibit": [  ] }, "id": "d240t3", "devNum": 250, "device_json": "D_DelayLightTimer_UI7.json", "udn": "uuid:4d494342-5342-5645-00fa-000002faf6cf", "plugin": "", "room": 6, "impl_file": "", "model": "", "device_file": "D_DelayLightTimer.xml", "manufacturer": "", "parent": 240, "states": [ { "id": 20522, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "1", "variable": "Enabled" }, { "id": 20523, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "idle", "variable": "Status" }, { "id": 20524, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "Timing" }, { "id": 20525, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "Idle", "variable": "Message" }, { "id": 20526, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "292", "variable": "Triggers" }, { "id": 20527, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "28=100,29=100,283=100,291", "variable": "OnList" }, { "id": 20528, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "28,29,283,291", "variable": "OffList" }, { "id": 20529, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "300", "variable": "AutoDelay" }, { "id": 20530, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "3600", "variable": "ManualDelay" }, { "id": 20531, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "OnDelay" }, { "id": 20532, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "HoldOn" }, { "id": 20533, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "OffTime" }, { "id": 20534, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "OnTime" }, { "id": 20535, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "ForcePoll" }, { "id": 20536, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "292,1584672877,1,urn:micasaverde-com:serviceId:SecuritySensor1,Tripped", "variable": "LastTrigger" }, { "id": 20537, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "1,3", "variable": "HouseModes" }, { "id": 20538, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "", "variable": "InhibitDevices" }, { "id": 20539, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "", "variable": "ActivePeriods" }, { "id": 20540, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "1", "variable": "ManualOnScene" }, { "id": 20541, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "1", "variable": "ResettableOnDelay" }, { "id": 20542, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "19233", "variable": "Version" }, { "id": 20543, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "LastPoll" }, { "id": 20544, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "", "variable": "SceneData" }, { "id": 20545, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "TriggerQuieting" }, { "id": 20546, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "IgnoreTriggersUntil" }, { "id": 20547, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "ApplyInhibitorsManual" }, { "id": 20548, "service": "urn:toggledbits-com:serviceId:DelayLightTimer", "value": "0", "variable": "ApplyScheduleManual" }, { "id": 20549, "service": "urn:micasaverde-com:serviceId:HaDevice1", "value": "0", "variable": "Configured" } ] } ], "timestamp": 1584710128, "url": "https://www.toggledbits.com/delaylight", "responder": 240, "version": "1.12" }

The active period does not affect manual timing. The intent is that manual timing (unless disabled) always ensures that the light cannot be left on.

Roger that. Thank you sir

1 Like

Best Home Automation shopping experience. Shop at getvera!

© 2021 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules