[BUG] Ambilight+Hue commands not work (Philips 55PUS7304)
See original GitHub issueHello! First congratulate you for this great script. The second I apologize for my English, I must use Google Translate. I am trying to generate a switch by mqtt to be able to turn the Ambilight + Hue on and off on the 55PUS7304 and be able to integrate this feature into my home automation center. The Philips Remote application connects relatively well with the TV (it has disconnection failures and the ambilight bridge settings do not synchronize with the TV) but the turning on and off of both Ambilight and Ambilight-Hue, once configured on the TV, work well .
This is the value returned by mqtt: {“powerstate”: “On”, “volume”: 20, “muted”: false, “cur_app”: “uk.co.freeview.onnow”, “ambilight”: {“styleName”: “FOLLOW_VIDEO”, "isExpert “: false,” menuSetting “:” NATURAL “,” stringValue “:” Natural “},” ambihue ": 5}
I don’t understand that value 5 in Ambihue. If I turn off the ambihue with the app or from the TV, it does not change.
I deactivate the mqtt in settings.ini and now I do tests with the readme commands:
For status
pi@DiyHuePi:/pylips $ sudo python3 pylips.py --host 172.16.10.11 --user qqjKm8W9ub5RCrW3 --pass 73ad38878df23d1689b9fc0cfaec9c1f5067f30b0fbf56ce1e609b76c0e47884 --command ambihue_status
Sending POST request to https://172.16.10.11:1926/6/menuitems/settings/current
Request sent!
{"values":[{"value":{"Nodeid":2131230774,"Controllable":true,"Available":false,"string_id":"Brillo de la parte inferior","data":{"value":5}}}],"version":1581773617053}
For Ambi+Hue on
pi@DiyHuePi:/pylips $ sudo python3 pylips.py --host 172.16.10.11 --user qqjKm8W9ub5RCrW3 --pass 73ad38878df23d1689b9fc0cfaec9c1f5067f30b0fbf56ce1e609b76c0e47884 --command ambihue_on
Sending POST request to https://172.16.10.11:1926/6/menuitems/settings/update
Request sent!
{"response": "OK"}
For Ambi+Hue off
pi@DiyHuePi:/pylips $ sudo python3 pylips.py --host 172.16.10.11 --user qqjKm8W9ub5RCrW3 --pass 73ad38878df23d1689b9fc0cfaec9c1f5067f30b0fbf56ce1e609b76c0e47884 --command ambihue_off
Sending POST request to https://172.16.10.11:1926/6/menuitems/settings/update
Request sent!
{"response": "OK"}
Nothing happens. Only change in status, the value “version”: 1581773617053 that its number is increasing (54, 55, 56 …)
These are the values offered in the browser https://172.16.10.11:1926/6/system
{"notifyChange":"http","menulanguage":"Spanish","name":"55PUS7304\/12","country":"Spain","serialnumber_encrypted":"s53vNo\/gABVJXbfA4wAP0w3Rsy6YcS6g5dtYQLWw76E=\n","softwareversion_encrypted":"wuIstBMd8\/WsNDlcly9T4EeYPOI+GJrK08kDdVFC3b7a17YUuVYF7Er6ZBA2Unom\n","model_encrypted":"IHrF2HY3A1IcuZYPrd02ozA9ilATGZQR\/H6ictzWVcI=\n","deviceid_encrypted":"vxw2iJBhiCSM5Ig5H9\/jCwnAbzSbE\/Twt5cRWtEwasI=\n","nettvversion":"8.2.0","epgsource":"no_epg","api_version":{"Major":6,"Minor":1,"Patch":0},"featuring":{"jsonfeatures":{"editfavorites":["TVChannels","SatChannels"],"recordings":["List","Schedule","Manage"],"ambilight":["LoungeLight","Hue","Ambilight","HueStreaming"],"menuitems":["Setup_Menu"],"textentry":["not_available"],"applications":["TV_Apps","TV_Games","TV_Settings"],"pointer":["not_available"],"inputkey":["key"],"activities":["intent"],"channels":["preset_string"],"mappings":["server_mapping"]},"systemfeatures":{"tvtype":"consumer","content":["dmr","pvr"],"tvsearch":"intent","pairing_type":"digest_auth_pairing","secured_transport":"true","companion_screen":"true"}},"os_type":"MSAF_2019_P"}
Any ideas or help? Any test I can do, I offer my model to test Thx
Issue Analytics
- State:
- Created 4 years ago
- Comments:21 (7 by maintainers)
Hi @PostSven,
Thanks for sharing the info! Indeed, the node_ids are different, here are the ones that work for this model:
Unfortunately, I don’t have the time to make a proper fix for Pylips now (‘job searching + corona pandemic’ is not a good combo…), but I will fix it as soon as things become less hectic for me. For now, please use the manual commands above. Thanks again!
OK, I have found it myself. I’ve used httpCanary app to sniff traffic from my smarphone. Controlling Ambilight+Hue is pretty simple:
To check status of Ambilight+Hue you have 2 options:
{"nodes":[{"nodeid":420}]}
tohttp://tv_ip:1925/6/menuitems/settings/current
. Butnodeid
may be different on each TV model - you have to GEThttp://tv_ip:1925/6/menuitems/settings/structure
and find node with"context": "ambilight_hue_off"
http://tv_ip:1925/6/HueLamp/power
, you will get response:Power can by
On
orOff
To set Ambilight+Hue on or off:
POST
{"power":"Off"}
to turn off or{"power":"On"}
to turn on tohttp://tv_ip:1925/6/HueLamp/power
That’s all! 😃