{"action":"created","issue":{"url":"https://api.github.com/repos/automategreen/home-controller/issues/44","repository_url":"https://api.github.com/repos/automategreen/home-controller","labels_url":"https://api.github.com/repos/automategreen/home-controller/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/automategreen/home-controller/issues/44/comments","events_url":"https://api.github.com/repos/automategreen/home-controller/issues/44/events","html_url":"https://github.com/automategreen/home-controller/issues/44","id":159850104,"number":44,"title":"Toggle?","user":{"login":"jlippold","id":1939514,"avatar_url":"https://avatars.githubusercontent.com/u/1939514?v=3","gravatar_id":"","url":"https://api.github.com/users/jlippold","html_url":"https://github.com/jlippold","followers_url":"https://api.github.com/users/jlippold/followers","following_url":"https://api.github.com/users/jlippold/following{/other_user}","gists_url":"https://api.github.com/users/jlippold/gists{/gist_id}","starred_url":"https://api.github.com/users/jlippold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlippold/subscriptions","organizations_url":"https://api.github.com/users/jlippold/orgs","repos_url":"https://api.github.com/users/jlippold/repos","events_url":"https://api.github.com/users/jlippold/events{/privacy}","received_events_url":"https://api.github.com/users/jlippold/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-12T21:57:23Z","updated_at":"2016-06-12T22:05:18Z","closed_at":null,"body":"Firstly, thanks for this awesome API.\r\n\r\nIs there anyway to toggle a light, without first querying it's state?\r\n\r\nCurrently I have to check if device level === 0 to tell if its off, then I can turn it on. \r\n\r\nIs there a better way to simply toggle from off to on or on to off?"},"comment":{"url":"https://api.github.com/repos/automategreen/home-controller/issues/comments/225463329","html_url":"https://github.com/automategreen/home-controller/issues/44#issuecomment-225463329","issue_url":"https://api.github.com/repos/automategreen/home-controller/issues/44","id":225463329,"user":{"login":"brandongoode","id":5034905,"avatar_url":"https://avatars.githubusercontent.com/u/5034905?v=3","gravatar_id":"","url":"https://api.github.com/users/brandongoode","html_url":"https://github.com/brandongoode","followers_url":"https://api.github.com/users/brandongoode/followers","following_url":"https://api.github.com/users/brandongoode/following{/other_user}","gists_url":"https://api.github.com/users/brandongoode/gists{/gist_id}","starred_url":"https://api.github.com/users/brandongoode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandongoode/subscriptions","organizations_url":"https://api.github.com/users/brandongoode/orgs","repos_url":"https://api.github.com/users/brandongoode/repos","events_url":"https://api.github.com/users/brandongoode/events{/privacy}","received_events_url":"https://api.github.com/users/brandongoode/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T22:05:18Z","updated_at":"2016-06-12T22:05:18Z","body":"Glad you like it.\r\n\r\nUnfortunately there is not the concept of toggle within the Insteon network.  You'll have to continue checking the state first. "}}
{"actor":{"display_login":"brandongoode"}}