getPlayStatus to MQTT ?

Discussion in 'General Development' started by z1rconium, Dec 10, 2021.

  1. z1rconium

    z1rconium New Member

    The premise: I want to have my room light automatically dim when a movie starts playing (and brighter when paused, full when stopped for example).

    The API documentation shows GET requests, which means I have to poll the player status all the time to make this work flawlessly.

    It would be nice if there was an option to enable to push the play status to (for example) MQTT so that the status is realtime.

    Websocket could probably also work, but when you turn the box off, the websocket would disconnect and requires all kinds of error handling.

    Anyone came up with a solution ?
     

Share This Page