{"action":"closed","issue":{"url":"https://api.github.com/repos/fxbox/foxbox/issues/166","repository_url":"https://api.github.com/repos/fxbox/foxbox","labels_url":"https://api.github.com/repos/fxbox/foxbox/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/fxbox/foxbox/issues/166/comments","events_url":"https://api.github.com/repos/fxbox/foxbox/issues/166/events","html_url":"https://github.com/fxbox/foxbox/issues/166","id":139366045,"number":166,"title":"Using dimmable light (LWB006) will cause JSON parse error","user":{"login":"npark-mozilla","id":6930774,"avatar_url":"https://avatars.githubusercontent.com/u/6930774?v=3","gravatar_id":"","url":"https://api.github.com/users/npark-mozilla","html_url":"https://github.com/npark-mozilla","followers_url":"https://api.github.com/users/npark-mozilla/followers","following_url":"https://api.github.com/users/npark-mozilla/following{/other_user}","gists_url":"https://api.github.com/users/npark-mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/npark-mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npark-mozilla/subscriptions","organizations_url":"https://api.github.com/users/npark-mozilla/orgs","repos_url":"https://api.github.com/users/npark-mozilla/repos","events_url":"https://api.github.com/users/npark-mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/npark-mozilla/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fxbox/foxbox/labels/Adapters:%20Philips%20Hue","name":"Adapters: Philips Hue","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-08T19:11:24Z","updated_at":"2016-03-09T19:58:25Z","closed_at":"2016-03-09T19:58:25Z","body":"Following is the JSON info of the dimmable light sent from the philips hub:\r\n\"1\":{\r\n\t\t\t\"state\": {\r\n\t\t\t\t\"on\":false,\r\n\t\t\t\t\"bri\":0,\r\n\t\t\t\t\"alert\":\"none\",\r\n\t\t\t\t\"reachable\":false\r\n\t\t\t\t}, \r\n\t\t\t\t\"type\": \"Dimmable light\", \r\n\t\t\t\t\"name\": \"Hue white lamp 1\", \r\n\t\t\t\t\"modelid\": \"LWB006\", \r\n\t\t\t\t\"manufacturername\": \"Philips\",\r\n\t\t\t\t\"uniqueid\":\"00:17:88:01:10:34:95:dd-0b\", \r\n\t\t\t\t\"swversion\": \"\", \r\n\t\t\t\t\"pointsymbol\": { \r\n\t\t\t\t\t\"1\":\"none\", \"2\":\"none\", \"3\":\"none\", \"4\":\"none\", \"5\":\"none\", \"6\":\"none\", \"7\":\"none\", \"8\":\"none\" \r\n\t\t\t\t}\r\n\r\nAnd this is the JSON info of a color light:\r\n\"1\": {\r\n      \"state\": {\r\n        \"on\": true,\r\n        \"bri\": 254,\r\n        \"hue\": 14910,\r\n        \"sat\": 144,\r\n        \"effect\": \"none\",\r\n        \"xy\": [\r\n        0.4596,\r\n        0.4105\r\n        ],\r\n        \"ct\": 370,\r\n        \"alert\": \"none\",\r\n        \"colormode\": \"ct\",\r\n        \"reachable\": false\r\n      },\r\n      \"type\": \"Extended color light\",\r\n      \"name\": \"Hue color lamp 1\",\r\n      \"modelid\": \"LCT007\",\r\n      \"manufacturername\": \"Philips\",\r\n      \"uniqueid\": \"00:17:88:01:10:41:87:79-0b\",\r\n      \"swversion\": \"66014919\"\r\n    }\r\n\r\nbecause the dimmable light is missing some fields compared to the color light, it will cause foxbox to have a JSON parse error since it appears that there is only one SettingsLightState in src/adapters/philips_hue/hub_api/structs.rs"}}