eslavnov / pylips

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

MQTT volume command #64

Closed ytrufchev closed 4 years ago

ytrufchev commented 4 years ago

I can't get the volume command to work over mqtt by using {{"command":"volume","body":{"value":10}} Am I doing something wrong.

eslavnov commented 4 years ago

Hi @ytrufchev,

The volume command does not support setting the volume to a specific level: it just returns the current volume (but you won't see any response if you use it with MQTT).

To change the volume with MQTT, you could use the following command: {"command": "volume_up"}. It will increase (or decrease if using volume_down) the volume by 1 step from the current level.

ytrufchev commented 4 years ago

Thank you