Hi guys,
I’m running openLuup v17.3.9 and I’ve more than one scene using timer trigger (fixed time, sunrise ecc). They work but these scenes trigger twice: I’ve an http call to imperihome and I listen the sound twice.
I’ve checked this topic [url=http://forum.micasaverde.com/index.php/topic,48929.0.html]http://forum.micasaverde.com/index.php/topic,48929.0.html[/url] but I can’t find the solution.
Taking for example the scene #36, in my scheduled jobs I have:
Scheduled Jobs, Tue Jan 9 09:15:12 2018
# date time device status info
1 2018-01-09 09:15:13 system Run job#30 :HTTP request from 192.168.1.4
2 2018-01-09 09:15:13 system Wait job#29 :HTTP request from 192.168.1.4
3 2018-01-09 09:15:15 system Wait job#14 :HTTP new connection tcp{client}: 0x11dc980
4 2018-01-09 09:15:17 system Wait job#26 :HTTP new connection tcp{client}: 0x14c6f50
5 2018-01-09 09:44:13 0 Wait job#8 :timer 'new timer' for scene [2] Sincronizzazione e fix failures
6 2018-01-09 16:54:42 0 Wait job#10 :timer 'new timer' for scene [14] Chiusura parz tapp tramonto
7 2018-01-09 17:04:42 0 Wait job#9 :timer 'new timer' for scene [6] Faretti pavimento a tramonto
8 2018-01-09 17:24:42 0 Wait job#11 :timer 'new timer' for scene [16] Chiusura tapparelle notte
9 2018-01-10 06:58:03 0 Wait job#12 :timer 'new timer' for scene [36] Faretti pavimento alba
10 2018-01-10 07:00:00 0 Wait job#7 :timer 'new timer' for scene [1] Tapparelle mattino se casa
and my log is:
018-01-09 06:58:11.587 luup.call_action:3: 0.urn:micasaverde-com:serviceId:HomeAutomationGateway1.RunScene
2018-01-09 06:58:11.589 luup_log:3: ALTUI: error: invalid parameters for thingspeak
2018-01-09 06:58:16.148 luup.variable_set:5: 10013.urn:micasaverde-com:serviceId:EnergyMetering1.Log was: 0,0,0,1515477487,1688 now: 0,0,0,1515477493,1694 #hooks:0
2018-01-09 06:58:16.149 luup.variable_set:5: 10126.urn:micasaverde-com:serviceId:EnergyMetering1.KWH was: 4549.6190 now: 4549.6410 #hooks:0
2018-01-09 06:58:16.149 luup.variable_set:5: 10126.urn:micasaverde-com:serviceId:EnergyMetering1.KWHReading was: 1515477251 now: 1515477491 #hooks:0
2018-01-09 06:58:16.149 luup.variable_set:5: 10184.urn:micasaverde-com:serviceId:EnergyMetering1.Watts was: 1.1 now: 1.4 #hooks:0
2018-01-09 06:58:16.150 luup.variable_set:5: 10184.urn:micasaverde-com:serviceId:EnergyMetering1.Log was: 1,1,1,1515477193,1394 now: 1,1,1,1515477494,1695 #hooks:0
2018-01-09 06:58:16.150 luup.variable_set:5: 10185.urn:micasaverde-com:serviceId:EnergyMetering1.Watts was: 1.2 now: 1.1 #hooks:0
2018-01-09 06:58:16.150 luup.variable_set:5: 10185.urn:micasaverde-com:serviceId:EnergyMetering1.Log was: 1,1,1,1515477193,1394 now: 1,1,1,1515477494,1695 #hooks:0
2018-01-09 06:58:21.185 luup.variable_set:5: 10013.urn:micasaverde-com:serviceId:EnergyMetering1.Log was: 0,0,0,1515477493,1694 now: 0,0,0,1515477499,1700 #hooks:0
2018-01-09 06:58:23.689 luup.scenes:: scene 36, Faretti pavimento alba, initiated by new timer
2018-01-09 06:58:24.600 luup_log:0: (IFTTTMaker)::(triggerEvent) : Request successful
2018-01-09 06:58:24.601 luup.call_action:0: 10185.urn:upnp-org:serviceId:SwitchPower1.SetTarget
2018-01-09 06:58:24.601 luup.call_action:0: action will be handled by parent: 10184
2018-01-09 06:58:24.601 luup.call_action:0: action will be handled by parent: 1
2018-01-09 06:58:24.601 luup.call_action:0: action will be handled by parent: 5
2018-01-09 06:58:24.601 luup_log:5: http://192.168.1.31:3480/data_request?id=action&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&DeviceNum=185&newTargetValue=0
2018-01-09 06:58:25.142 luup.scenes:: scene 36, Faretti pavimento alba, initiated by new timer
2018-01-09 06:58:26.003 luup_log:0: (IFTTTMaker)::(triggerEvent) : Request successful
2018-01-09 06:58:26.076 luup.call_action:0: 10185.urn:upnp-org:serviceId:SwitchPower1.SetTarget
2018-01-09 06:58:26.076 luup.call_action:0: action will be handled by parent: 10184
2018-01-09 06:58:26.076 luup.call_action:0: action will be handled by parent: 1
2018-01-09 06:58:26.076 luup.call_action:0: action will be handled by parent: 5
2018-01-09 06:58:26.076 luup_log:5: http://192.168.1.31:3480/data_request?id=action&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&DeviceNum=185&newTargetValue=0
As you can see the scene is run twice.
I’ve tried to use luup.call_delay(func, 1) in order to make the scene fast and make http call after, but with no luck. Retried also to recreate the scene.
Any idea?
Thanks