eslavnov / pylips

Control Philips TVs (2015+) and Ambilight (+ Hue) through their reverse-engineered API (+ MQTT support!)
MIT License
342 stars 60 forks source link

[FEAT] Screen off but keep audio #23

Closed Flavien06 closed 5 years ago

Flavien06 commented 5 years ago

On my philips I have an option to turn off the screen but keep the sound. Used with audio applications like chromecast or spotify ... Can this command be added? I did not find it in the api joint sapce: '(

eslavnov commented 5 years ago

Hey, there is indeed such an option, it is controlled by Nodeid 2131230820:

python pylips.py --command post --path 'menuitems/settings/current' --body '{"nodes":[{"nodeid":2131230820}]}'

{"values":[{"value":{"Nodeid":2131230820,"Controllable":true,"Available":true,"string_id":"Screen Off"}}],"version":0}

The problem is that this node is missing the "data" key which is usually a True/False toggle that you can change. Since this key is missing and the mobile app also does not have this functionality, I haven't yet found a way to control it. So I would not count on it - at least I am out of ideas...

FezVrasta commented 1 year ago

@eslavnov this feature can only be turned on, to turn the screen back on you are only supposed to press any button on the remote.

Do you think that may be the reason why the node doesn't accept On/Off?