{"action":"created","issue":{"url":"https://api.github.com/repos/GregoryDosh/Home-Assistant-DreamScreen-Service/issues/4","repository_url":"https://api.github.com/repos/GregoryDosh/Home-Assistant-DreamScreen-Service","labels_url":"https://api.github.com/repos/GregoryDosh/Home-Assistant-DreamScreen-Service/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/GregoryDosh/Home-Assistant-DreamScreen-Service/issues/4/comments","events_url":"https://api.github.com/repos/GregoryDosh/Home-Assistant-DreamScreen-Service/issues/4/events","html_url":"https://github.com/GregoryDosh/Home-Assistant-DreamScreen-Service/issues/4","id":293403826,"number":4,"title":"Reversing the protocol to get state","user":{"login":"jjensn","id":5910157,"avatar_url":"https://avatars3.githubusercontent.com/u/5910157?v=4","gravatar_id":"","url":"https://api.github.com/users/jjensn","html_url":"https://github.com/jjensn","followers_url":"https://api.github.com/users/jjensn/followers","following_url":"https://api.github.com/users/jjensn/following{/other_user}","gists_url":"https://api.github.com/users/jjensn/gists{/gist_id}","starred_url":"https://api.github.com/users/jjensn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjensn/subscriptions","organizations_url":"https://api.github.com/users/jjensn/orgs","repos_url":"https://api.github.com/users/jjensn/repos","events_url":"https://api.github.com/users/jjensn/events{/privacy}","received_events_url":"https://api.github.com/users/jjensn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-01T04:55:30Z","updated_at":"2018-02-07T21:45:41Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nAs promised, here is what I have so far. I will update it as I make progress. Hopefully someone can collaborate with me as there are a lot of information in the status payload.\r\n\r\n**To get status:**\r\nSend `FC 05 FF 30 01 0a 2a` to the broadcast address (for me its 10.0.1.255). Note that it is missing the checksum field that the PDF outlines for commands, so be sure not to include it.\r\n\r\nThe device will send back a status payload directly to the sender IP address (your machine) to port 8888 (UDP).\r\n\r\n**Example status payload:** \r\n\r\n```\r\n0000   a4 d1 8c dc 82 b6 5c cf 7f 67 ef 7e 08 00 45 00  ......\\..g.~..E.\r\n0010   00 af 02 e1 00 00 80 11 21 42 0a 00 01 0a 0a 00  ........!B......\r\n0020   01 12 22 b8 22 b8 00 9b 93 6a fc 91 ff 60 01 0a  ..\".\"....j...`..\r\n0030   44 72 65 61 6d 53 63 72 65 65 6e 20 48 44 00 00  DreamScreen HD..\r\n0040   75 6e 61 73 73 69 67 6e 65 64 00 00 00 00 00 00  unassigned......\r\n0050   00 01 64 0f ff ff ff ff RR GG BB bc c2 ab 0c 18  ..d.......;.....\r\n0060   48 48 07 07 00 00 02 01 32 32 32 00 00 00 07 08  HH......222.....\r\n0070   00 07 10 00 00 00 01 00 01 00 00 48 44 4d 49 20  ...........HDMI \r\n0080   31 20 20 20 20 20 20 20 20 20 20 48 44 4d 49 20  1          HDMI \r\n0090   32 20 20 20 20 20 20 20 20 20 20 48 44 4d 49 20  2          HDMI \r\n00a0   33 20 20 20 20 20 20 20 20 20 20 01 01 00 14 00  3          .....\r\n00b0   00 03 01 02 01 07 02 00 01 01 00 01 ee           .............\r\n```\r\n\r\n**BITS of importance**\r\n1: \"FC\" packet, row 0020: indicates start of all packets per the protocol\r\n2: \"01\" packet, row 0050, indicates Mode ID (see PDF for details)\r\n3: \"64\" packet, row 0050, indicates overall brightness\r\n4. I've replaced the bits in row 5 that correspond to the ambient color as RR GG BB\r\n\r\nThere is one rather large detail that i overlooked now that I've gotten the data I was after: they don't expose the average color between all the LEDs, which means I won't be able to turn my living room lights the same color as the TV backlight (which was the whole point of my efforts).\r\n"},"comment":{"url":"https://api.github.com/repos/GregoryDosh/Home-Assistant-DreamScreen-Service/issues/comments/363921362","html_url":"https://github.com/GregoryDosh/Home-Assistant-DreamScreen-Service/issues/4#issuecomment-363921362","issue_url":"https://api.github.com/repos/GregoryDosh/Home-Assistant-DreamScreen-Service/issues/4","id":363921362,"user":{"login":"DreamScreen","id":36245890,"avatar_url":"https://avatars1.githubusercontent.com/u/36245890?v=4","gravatar_id":"","url":"https://api.github.com/users/DreamScreen","html_url":"https://github.com/DreamScreen","followers_url":"https://api.github.com/users/DreamScreen/followers","following_url":"https://api.github.com/users/DreamScreen/following{/other_user}","gists_url":"https://api.github.com/users/DreamScreen/gists{/gist_id}","starred_url":"https://api.github.com/users/DreamScreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DreamScreen/subscriptions","organizations_url":"https://api.github.com/users/DreamScreen/orgs","repos_url":"https://api.github.com/users/DreamScreen/repos","events_url":"https://api.github.com/users/DreamScreen/events{/privacy}","received_events_url":"https://api.github.com/users/DreamScreen/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T21:45:41Z","updated_at":"2018-02-07T21:45:41Z","author_association":"NONE","body":"See Rev 2\r\nhttp://dreamscreen.boards.net/thread/293/dreamscreen-wifi-udp-protocol"}}
{"actor":{"display_login":"DreamScreen"}}