jomwells / ambihue

ON/OFF Abilight+Hue (Switch) component for Philips Ambilight TV's
9 stars 9 forks source link

Not working switching on/off on non Android TV's #9

Open Mr-Groch opened 3 years ago

Mr-Groch commented 3 years ago

On non Android Philips TVs, menuitems/settings/update method doesn't work... It can be polled this way (menuitems/settings/current - nodeid is different - for me 420) but set does not work...

I've discovered myself by sniffing traffic from Philips Remote android app, that ambilight+hue can be setted and polled differently:

To check status of Ambilight+Hue:

GET on http://tv_ip:1925/6/HueLamp/power, you will get response:

{
    "power": "Off"
}

Power can by Onor 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

It may also work for Android Philips Tv's - please someone check it :wink:

Discussion about this issue can be found also on pylip github: https://github.com/eslavnov/pylips/issues/60