Code: Select all
local condition = {{"Email", 4}}
local condition_HALL_DOOR = GEA.add(id["HALL_DOOR"], -1, "HALL: Door opened (#date# #time#)", condition)
GEA.add({"Global", "Away", "false"}, -1 , "", {{"StopTask", condition_HALL_DOOR}, {"repeat"}})
GEA.add({"Global", "Away", "true"}, -1 , "", {{"RestartTask", condition_HALL_DOOR}, {"repeat"}})
local condition_KITCHEN_MOTION = GEA.add(id["KITCHEN_MOTION"], -1, "KITCHEN: Motion detected (#date# #time#)", condition)
GEA.add({"Global", "Away", "false"}, -1 , "", {{"StopTask", condition_KITCHEN_MOTION}, {"repeat"}})
GEA.add({"Global", "Away", "true"}, -1 , "", {{"RestartTask", condition_KITCHEN_MOTION}, {"repeat"}})
[DEBUG] 21:01:27: GEA Version 5.34 : Running...
[DEBUG] 21:01:27: [ Away=false ] sendActions : doing actions (ID:7) [StopTask,6] [repeat]
[DEBUG] 21:01:27: [ Away=false ] sendActions : !ACTION! : StopTask 6 (ID:7) [StopTask,6] [repeat]
[DEBUG] 21:01:27: [ Away=false ] sendActions : doing actions (ID:10) [StopTask,9] [repeat]
[DEBUG] 21:01:27: [ Away=false ] sendActions : !ACTION! : StopTask 9 (ID:10) [StopTask,9] [repeat]
[DEBUG] 21:01:42: [ 297 | motion_297 ] sendActions : doing actions (ID:35) [Inverse] [Time,Sunset-90,Sunrise+70] [turnOff,274]
[DEBUG] 21:01:42: [ 297 | motion_297 ] sendActions : !ACTION! : turnOff (ID:35) [Inverse] [Time,Sunset-90,Sunrise+70] [turnOff,274]
[DEBUG] 21:01:42: [ 297 | motion_297 ] Done : task done and suspended (ID:35) [Inverse] [Time,Sunset-90,Sunrise+70] [turnOff,274]
[DEBUG] 21:01:49: [ 297 | motion_297 ] Add Property : task added for instant run (ID:34) [Time,Sunset-90,Sunrise+60] [If..] [RGB,274,0,0,0,20]
[DEBUG] 21:01:49: GEA Version 5.34 : Running...
[DEBUG] 21:01:51: [ 21 | motion_21 ] Add Property : task added for instant run (ID:14) [Time,23:00,Sunrise] [RGB,281,0,0,0,20]
[DEBUG] 21:01:51: GEA Version 5.34 : Running...
[DEBUG] 21:01:53: [ 40 | sensor_Door_40 ] Add Property : task added for instant run (ID:6) [Email,4]
[DEBUG] 21:01:54: GEA Version 5.34 : Running...
[DEBUG] 21:01:54: [ 40 | sensor_Door_40 ] Check : Restart (ID:6) [Email,4]
[DEBUG] 21:01:54: [ 40 | sensor_Door_40 ] sendActions : doing actions (ID:6) [Email,4]
[DEBUG] 21:01:54: [ 40 | sensor_Door_40 ] sendActions : !ACTION! : email to 4 (ID:6) [Email,4]
[DEBUG] 21:01:54: [ 40 | sensor_Door_40 ] sendActions : !ACTION! : sendPush HALL: Door opened (07/11/15 21:01:54) (ID:6) [Email,4]
[DEBUG] 21:01:57: [ 40 | sensor_Door_40 ] Add Property : task added for instant run (ID:6) [Email,4]
[DEBUG] 21:01:58: GEA Version 5.34 : Running...
[DEBUG] 21:02:00: [ 236 | motion_236 ] Add Property : task added for instant run (ID:9) [Email,4]
[DEBUG] 21:02:01: [ 236 | motion_236 ] Add Property : task added for instant run (ID:20) [Time,23:00,Sunrise] [turnOn,12]
[DEBUG] 21:02:01: GEA Version 5.34 : Running...
[DEBUG] 21:02:01: [ 236 | motion_236 ] Check : Restart (ID:9) [Email,4]
[DEBUG] 21:02:01: [ 236 | motion_236 ] sendActions : doing actions (ID:9) [Email,4]
[DEBUG] 21:02:01: [ 236 | motion_236 ] sendActions : !ACTION! : email to 4 (ID:9) [Email,4]
[DEBUG] 21:02:01: [ 236 | motion_236 ] sendActions : !ACTION! : sendPush KITCHEN: Motion detected (07/11/15 21:02:01) (ID:9) [Email,4]
[DEBUG] 21:02:30: [ 21 | motion_21 ] Add Property : task added for instant run (ID:14) [Time,23:00,Sunrise] [RGB,281,0,0,0,20]
[DEBUG] 21:02:30: GEA Version 5.34 : Running...
[DEBUG] 21:02:31: [ 236 | motion_236 ] Add Property : task added for instant run (ID:9) [Email,4]
[DEBUG] 21:02:31: [ 236 | motion_236 ] Add Property : task added for instant run (ID:20) [Time,23:00,Sunrise] [turnOn,12]
[DEBUG] 21:02:32: GEA Version 5.34 : Running...
[DEBUG] 21:02:36: [ 297 | motion_297 ] Add Property : task added for instant run (ID:34) [Time,Sunset-90,Sunrise+60] [If..] [RGB,274,0,0,0,20]
[DEBUG] 21:02:37: GEA Version 5.34 : Running...
[DEBUG] 21:03:04: [ 224 | motion_224 ] Add Property : task added for instant run (ID:51) [Time,Sunset<23:00,Sunrise] [turnOn,221]
[DEBUG] 21:03:04: GEA Version 5.34 : Running...
[DEBUG] 21:03:12: [ 297 | motion_297 ] sendActions : doing actions (ID:35) [Inverse] [Time,Sunset-90,Sunrise+70] [turnOff,274]
[DEBUG] 21:03:12: [ 297 | motion_297 ] sendActions : !ACTION! : turnOff (ID:35) [Inverse] [Time,Sunset-90,Sunrise+70] [turnOff,274]
[DEBUG] 21:03:12: [ 297 | motion_297 ] Done : task done and suspended (ID:35) [Inverse] [Time,Sunset-90,Sunrise+70] [turnOff,274]
[DEBUG] 21:03:33: [ Away=false ] Add Global : task added for instant run (ID:7) [StopTask,6] [repeat]
[DEBUG] 21:03:33: [ Away=true ] Add Global : task added for instant run (ID:8) [RestartTask,6] [repeat]
[DEBUG] 21:03:33: [ Away=false ] Add Global : task added for instant run (ID:10) [StopTask,9] [repeat]
[DEBUG] 21:03:33: [ Away=true ] Add Global : task added for instant run (ID:11) [RestartTask,9] [repeat]
[DEBUG] 21:03:33: GEA Version 5.34 : Running...
[DEBUG] 21:03:33: [ Away=true ] sendActions : doing actions (ID:8) [RestartTask,6] [repeat]
[DEBUG] 21:03:33: [ Away=true ] sendActions : !ACTION! : Restart 6 (ID:8) [RestartTask,6] [repeat]
[DEBUG] 21:03:33: [ Away=true ] sendActions : doing actions (ID:11) [RestartTask,9] [repeat]
[DEBUG] 21:03:33: [ Away=true ] sendActions : !ACTION! : Restart 9 (ID:11) [RestartTask,9] [repeat]
[DEBUG] 21:04:18: [ Away=false ] Add Global : task added for instant run (ID:7) [StopTask,6] [repeat]
[DEBUG] 21:04:18: [ Away=true ] Add Global : task added for instant run (ID:8) [RestartTask,6] [repeat]
[DEBUG] 21:04:18: [ Away=false ] Add Global : task added for instant run (ID:10) [StopTask,9] [repeat]
[DEBUG] 21:04:18: [ Away=true ] Add Global : task added for instant run (ID:11) [RestartTask,9] [repeat]
[DEBUG] 21:04:19: GEA Version 5.34 : Running...
[DEBUG] 21:04:19: [ Away=false ] sendActions : doing actions (ID:7) [StopTask,6] [repeat]
[DEBUG] 21:04:19: [ Away=false ] sendActions : !ACTION! : StopTask 6 (ID:7) [StopTask,6] [repeat]
[DEBUG] 21:04:19: [ Away=false ] sendActions : doing actions (ID:10) [StopTask,9] [repeat]
[DEBUG] 21:04:19: [ Away=false ] sendActions : !ACTION! : StopTask 9 (ID:10) [StopTask,9] [repeat]
[DEBUG] 21:05:11: [ 297 | motion_297 ] Add Property : task added for instant run (ID:34) [Time,Sunset-90,Sunrise+60] [If..] [RGB,274,0,0,0,20]
[DEBUG] 21:05:12: GEA Version 5.34 : Running...
[DEBUG] 21:05:13: [ 21 | motion_21 ] Add Property : task added for instant run (ID:14) [Time,23:00,Sunrise] [RGB,281,0,0,0,20]
[DEBUG] 21:05:14: GEA Version 5.34 : Running...
[DEBUG] 21:05:16: [ 236 | motion_236 ] Add Property : task added for instant run (ID:9) [Email,4]
[DEBUG] 21:05:16: [ 236 | motion_236 ] Add Property : task added for instant run (ID:20) [Time,23:00,Sunrise] [turnOn,12]
[DEBUG] 21:05:16: GEA Version 5.34 : Running...
[DEBUG] 21:05:16: [ 236 | motion_236 ] Check : Restart (ID:9) [Email,4]
[DEBUG] 21:05:16: [ 236 | motion_236 ] sendActions : doing actions (ID:9) [Email,4]
[DEBUG] 21:05:16: [ 236 | motion_236 ] sendActions : !ACTION! : email to 4 (ID:9) [Email,4]
[DEBUG] 21:05:16: [ 236 | motion_236 ] sendActions : !ACTION! : sendPush KITCHEN: Motion detected (07/11/15 21:05:16) (ID:9) [Email,4]
[DEBUG] 21:05:43: Duration : 1s new delay : 29s / running since 5m
[DEBUG] 21:05:46: [ 236 | motion_236 ] Add Property : task added for instant run (ID:9) [Email,4]
[DEBUG] 21:05:46: [ 236 | motion_236 ] Add Property : task added for instant run (ID:20) [Time,23:00,Sunrise] [turnOn,12]
Aktuella ID:n är 40 & 236. Grönmarkering visar att 'Away' detekteras korrekt och även skickar 'stopTask', dock hjälper inte det då 'task:n' startas om igen (se rödmarkering). Får erkänna att jag inte ser varför detta sker