{"action":"created","issue":{"url":"https://api.github.com/repos/damienklinnert/elm-hue/issues/13","repository_url":"https://api.github.com/repos/damienklinnert/elm-hue","labels_url":"https://api.github.com/repos/damienklinnert/elm-hue/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/damienklinnert/elm-hue/issues/13/comments","events_url":"https://api.github.com/repos/damienklinnert/elm-hue/issues/13/events","html_url":"https://github.com/damienklinnert/elm-hue/issues/13","id":181838712,"number":13,"title":"Using LightState data returned from listLights","user":{"login":"torresmi","id":1934592,"avatar_url":"https://avatars.githubusercontent.com/u/1934592?v=3","gravatar_id":"","url":"https://api.github.com/users/torresmi","html_url":"https://github.com/torresmi","followers_url":"https://api.github.com/users/torresmi/followers","following_url":"https://api.github.com/users/torresmi/following{/other_user}","gists_url":"https://api.github.com/users/torresmi/gists{/gist_id}","starred_url":"https://api.github.com/users/torresmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torresmi/subscriptions","organizations_url":"https://api.github.com/users/torresmi/orgs","repos_url":"https://api.github.com/users/torresmi/repos","events_url":"https://api.github.com/users/torresmi/events{/privacy}","received_events_url":"https://api.github.com/users/torresmi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/damienklinnert/elm-hue/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-08T17:36:43Z","updated_at":"2016-10-09T00:55:31Z","closed_at":null,"body":"A common case I ran into is wanting to get all lights, and show them with their current state. \r\n\r\n`LightDetails` is returned from `listLights`, but ignores the `LightState` data also returned from the JSON response. https://github.com/damienklinnert/elmhue/blob/master/tests/src/Resource/Lights.elm#L12\r\nThis requires separate `getLightState` calls for every light to get the same data returned from the previous response.\r\n\r\nIt might be worth eventually making the change to return the `LightState` data when calling `listLights`. Maybe by adding it as a property to `LightDetails`?\r\n\r\n```elm\r\ntype alias LightDetails =\r\n    { \r\n    ...\r\n    , state : LightState\r\n    ...\r\n    }\r\n```\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/damienklinnert/elm-hue/issues/comments/252457025","html_url":"https://github.com/damienklinnert/elm-hue/issues/13#issuecomment-252457025","issue_url":"https://api.github.com/repos/damienklinnert/elm-hue/issues/13","id":252457025,"user":{"login":"damienklinnert","id":1471561,"avatar_url":"https://avatars.githubusercontent.com/u/1471561?v=3","gravatar_id":"","url":"https://api.github.com/users/damienklinnert","html_url":"https://github.com/damienklinnert","followers_url":"https://api.github.com/users/damienklinnert/followers","following_url":"https://api.github.com/users/damienklinnert/following{/other_user}","gists_url":"https://api.github.com/users/damienklinnert/gists{/gist_id}","starred_url":"https://api.github.com/users/damienklinnert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damienklinnert/subscriptions","organizations_url":"https://api.github.com/users/damienklinnert/orgs","repos_url":"https://api.github.com/users/damienklinnert/repos","events_url":"https://api.github.com/users/damienklinnert/events{/privacy}","received_events_url":"https://api.github.com/users/damienklinnert/received_events","type":"User","site_admin":false},"created_at":"2016-10-09T00:55:31Z","updated_at":"2016-10-09T00:55:31Z","body":"Love the suggestion, do you want to tackle it?"}}
{"actor":{"display_login":"damienklinnert"}}