{"action":"created","issue":{"url":"https://api.github.com/repos/rudders/homebridge-http/issues/23","repository_url":"https://api.github.com/repos/rudders/homebridge-http","labels_url":"https://api.github.com/repos/rudders/homebridge-http/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/rudders/homebridge-http/issues/23/comments","events_url":"https://api.github.com/repos/rudders/homebridge-http/issues/23/events","html_url":"https://github.com/rudders/homebridge-http/issues/23","id":135510974,"number":23,"title":"Status update sends command","user":{"login":"Giannie","id":5735925,"avatar_url":"https://avatars.githubusercontent.com/u/5735925?v=3","gravatar_id":"","url":"https://api.github.com/users/Giannie","html_url":"https://github.com/Giannie","followers_url":"https://api.github.com/users/Giannie/followers","following_url":"https://api.github.com/users/Giannie/following{/other_user}","gists_url":"https://api.github.com/users/Giannie/gists{/gist_id}","starred_url":"https://api.github.com/users/Giannie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Giannie/subscriptions","organizations_url":"https://api.github.com/users/Giannie/orgs","repos_url":"https://api.github.com/users/Giannie/repos","events_url":"https://api.github.com/users/Giannie/events{/privacy}","received_events_url":"https://api.github.com/users/Giannie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-02-22T19:07:57Z","updated_at":"2016-08-25T00:09:52Z","closed_at":null,"body":"Unless I'm mistaken, it seems that when the status of a device is updated using the status url a command is then sent off. This can cause an issue when the status url has slightly outdated data. Is it possible to prevent the status url from activating a command?"},"comment":{"url":"https://api.github.com/repos/rudders/homebridge-http/issues/comments/242246162","html_url":"https://github.com/rudders/homebridge-http/issues/23#issuecomment-242246162","issue_url":"https://api.github.com/repos/rudders/homebridge-http/issues/23","id":242246162,"user":{"login":"d0n13","id":5494992,"avatar_url":"https://avatars.githubusercontent.com/u/5494992?v=3","gravatar_id":"","url":"https://api.github.com/users/d0n13","html_url":"https://github.com/d0n13","followers_url":"https://api.github.com/users/d0n13/followers","following_url":"https://api.github.com/users/d0n13/following{/other_user}","gists_url":"https://api.github.com/users/d0n13/gists{/gist_id}","starred_url":"https://api.github.com/users/d0n13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d0n13/subscriptions","organizations_url":"https://api.github.com/users/d0n13/orgs","repos_url":"https://api.github.com/users/d0n13/repos","events_url":"https://api.github.com/users/d0n13/events{/privacy}","received_events_url":"https://api.github.com/users/d0n13/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T00:09:52Z","updated_at":"2016-08-25T00:09:52Z","body":"I'm having this issue as well. I have a gate that is triggered by as a switch. The status url returns the state of the switch which is always 0 when the gate is open and only goes to 1 when the gate is closed. \r\n\r\nI want the status to flick over to ON when the gate closes so show it's closed. I don't want it to issue a command which it currently does. So if it sees the gate closed it tries to set the state to ON which triggers the gate to open.\r\n\r\nIs there a way to set the switch handling to avoid setting the state to match the status?\r\n"}}
{"actor":{"display_login":"d0n13"}}