milobella / device

Client code in device (raspberry pi3B+ for now)
0 stars 0 forks source link

Send active instrument in context #45

Closed celian-garcia closed 1 year ago

celian-garcia commented 2 years ago

Purpose of this is mainly to know which instrument needs to be played/paused, but it can be useful in the future to send some state information about the device.

So the model could be :

device:
  instruments:
  - kind: "chromecast"
    actions: ["play", "pause", "play_media"]
    name: "salon"
    state:
      status: "active" # or something more accurate, to be thought
      last_action:  # eventually last action executed on this instrument
        identifier: "play_media"
        params: ....