question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Ambilight+Hue commands not work (Philips 55PUS7304)

See original GitHub issue

Hello! 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:closed
  • Created 4 years ago
  • Comments:21 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
eslavnovcommented, Mar 25, 2020

Hi @PostSven,

Thanks for sharing the info! Indeed, the node_ids are different, here are the ones that work for this model:

  1. Should turn ambilight off: python3 pylips.py --command post --path menuitems/settings/update --body ‘{ “values”: [{ “value”: { “Nodeid”: 2131230766, “Controllable”: true, “Available”: true, “data”: { “activenode_id”: 2131230767 } } }] }’
  2. Should turn ambilight on: python3 pylips.py --command post --path menuitems/settings/update --body ‘{ “values”: [{ “value”: { “Nodeid”: 2131230766, “Controllable”: true, “Available”: true, “data”: { “activenode_id”: 2131230768 } } }] }’
  3. Should turn ambilight+hue on: python3 pylips.py --command post --path menuitems/settings/update --body ‘{ “values”: [{ “value”: { “Nodeid”: 2131230778, “Controllable”: false, “Available”: true, “data”: { “value”: true } } }] }’
  4. Should turn ambilight+hue off: python3 pylips.py --command post --path menuitems/settings/update --body ‘{ “values”: [{ “value”: { “Nodeid”: 2131230778, “Controllable”: false, “Available”: true, “data”: { “value”: false } } }] }’
  5. Should return ambilight+hue status: python3 pylips.py --command post --path menuitems/settings/current --body ‘{ “nodes”: [{ “nodeid”: 2131230778 }] }’

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!

1reaction
Mr-Grochcommented, Nov 23, 2020

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:

  1. POST {"nodes":[{"nodeid":420}]} to http://tv_ip:1925/6/menuitems/settings/current. But nodeid may be different on each TV model - you have to GET http://tv_ip:1925/6/menuitems/settings/structure and find node with "context": "ambilight_hue_off"
  2. GET on http://tv_ip:1925/6/HueLamp/power, you will get response:
{
	"power": "Off"
}

Power can by On or Off

To set Ambilight+Hue on or off:

POST {"power":"Off"} to turn off or {"power":"On"} to turn on to http://tv_ip:1925/6/HueLamp/power

That’s all! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Philips Android TV Ambilights (Light) component
[BUG] Ambilight+Hue commands not work (Philips 55PUS7304) ... Custom Home Assistant (Light) Component for Ambilight LED's on Philips Android ...
Read more >
5 Problems With Philips Hue Bulbs and How to Fix Them
Here's how to fix all the most common Philips Hue problems, from new bulbs not connecting to existing Hue lights being totally unreachable....
Read more >
User Manual - p4c.philips.com
The TV can receive commands from a remote control ... may not work properly with some operators of digital ... Ambilight > Ambilight+hue...
Read more >
Ambilight TV now unable to find Bridge : r/Hue - Reddit
Hi all, I have a Philips Ambilight 75pus6754, and we have 4 Hue ... Stopped working this evening, now TV won't find Bridge,...
Read more >
What to do when the TV does not respond to the infrared ...
The TV is not responding to the Philips remote control commands. ... up: the remote control (or its batteries) is not working correctly....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found