{"action":"created","issue":{"url":"https://api.github.com/repos/dresden-elektronik/deconz-rest-plugin/issues/144","repository_url":"https://api.github.com/repos/dresden-elektronik/deconz-rest-plugin","labels_url":"https://api.github.com/repos/dresden-elektronik/deconz-rest-plugin/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/dresden-elektronik/deconz-rest-plugin/issues/144/comments","events_url":"https://api.github.com/repos/dresden-elektronik/deconz-rest-plugin/issues/144/events","html_url":"https://github.com/dresden-elektronik/deconz-rest-plugin/issues/144","id":253076400,"number":144,"title":"problem with schedules","user":{"login":"dghh","id":24934678,"avatar_url":"https://avatars3.githubusercontent.com/u/24934678?v=4","gravatar_id":"","url":"https://api.github.com/users/dghh","html_url":"https://github.com/dghh","followers_url":"https://api.github.com/users/dghh/followers","following_url":"https://api.github.com/users/dghh/following{/other_user}","gists_url":"https://api.github.com/users/dghh/gists{/gist_id}","starred_url":"https://api.github.com/users/dghh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dghh/subscriptions","organizations_url":"https://api.github.com/users/dghh/orgs","repos_url":"https://api.github.com/users/dghh/repos","events_url":"https://api.github.com/users/dghh/events{/privacy}","received_events_url":"https://api.github.com/users/dghh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-08-26T08:51:14Z","updated_at":"2017-08-27T18:19:48Z","closed_at":null,"body":"I´ve tried to work with sensors, schedules & lights.\r\nI´ve created, based upon motion, a schedule to switch on the light for 60 sec. It works as expected. \r\nCreated schedule:\r\n\"163\":{\"autodelete\":true,\"command\":{\"address\":\"/api/1BCB984DEE/groups/8/action\",\"body\":{\"on\":false},\"method\":\"PUT\"},\"description\":\"group_8_scene_4\",\"etag\":\"aa4ef5300e91ad22e8d8708956d05dbc\",\"name\":\"group_8_scene_4 163\",\"starttime\":\"2017-08-26T08:34:37\",\"status\":\"enabled\",\"time\":\"PT00:00:60\"}\r\n\r\nWithin this 60 sec, a new motion is detected, triggering the same schedule again.\r\nCreated schedule:\r\n\"164\":{\"autodelete\":true,\"command\":{\"address\":\"/api/1BCB984DEE/groups/8/action\",\"body\":{\"on\":false},\"method\":\"PUT\"},\"description\":\"group_8_scene_4\",\"etag\":\"0bf8b03706b3fb883d84b61159afb308\",\"name\":\"group_8_scene_4 164\",\"starttime\":\"2017-08-26T08:34:55\",\"status\":\"enabled\",\"time\":\"PT00:00:60\"}\r\n\r\n1. I expected that the second triggering of the motion sensor only should extend (or renew the 60 sec) the time of the first schedule, but a new schedule (with the number of the schedule added to the name) is triggered.\r\n2. When the first schedule expires the light goes to off and the second schedule has no effect anymore.\r\n3. How can i handle this \"extend\" for another 60 sec when again motion within the first 60 sec is detected?\r\n\r\nI´ve thought to delete the first schedule and setup a new one ? But without switching the light off ? Would that work ?\r\n\r\nDeleting / Identifying a specific schedule is another problem. They are not numbered sequentially. They didn´t start with \"1\" and then the next is \"2\". and so on. As you can see they start somewhere....\r\nWith this it is difficult to search for a specific schedule with a specific name. (no \"for-next loop\" possible which starts at 0/1 and ends with the max number of current schedules)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dresden-elektronik/deconz-rest-plugin/issues/comments/325215229","html_url":"https://github.com/dresden-elektronik/deconz-rest-plugin/issues/144#issuecomment-325215229","issue_url":"https://api.github.com/repos/dresden-elektronik/deconz-rest-plugin/issues/144","id":325215229,"user":{"login":"Krocko","id":29394115,"avatar_url":"https://avatars1.githubusercontent.com/u/29394115?v=4","gravatar_id":"","url":"https://api.github.com/users/Krocko","html_url":"https://github.com/Krocko","followers_url":"https://api.github.com/users/Krocko/followers","following_url":"https://api.github.com/users/Krocko/following{/other_user}","gists_url":"https://api.github.com/users/Krocko/gists{/gist_id}","starred_url":"https://api.github.com/users/Krocko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krocko/subscriptions","organizations_url":"https://api.github.com/users/Krocko/orgs","repos_url":"https://api.github.com/users/Krocko/repos","events_url":"https://api.github.com/users/Krocko/events{/privacy}","received_events_url":"https://api.github.com/users/Krocko/received_events","type":"User","site_admin":false},"created_at":"2017-08-27T18:19:48Z","updated_at":"2017-08-27T18:19:48Z","body":"Thank you very much. With this i can work. \r\nCan i add a Time based condition as well? E.g 7:00 - 20:00? "}}
{"actor":{"display_login":"Krocko"}}