hyperion.ng icon indicating copy to clipboard operation
hyperion.ng copied to clipboard

Add instance in websocket response to a subscription

Open pierrebuet opened this issue 3 years ago • 0 comments

Feature request

What problem does this feature solve?

The subscription via websocket to component changes on a system with more than one instance

What does the proposed API look like?

Include the instance name/number in the JSON response to a subscription to component changes. Now the API is responding with a command, with a component and with a state, but LEDDEVICE as an example can come from different instances with the same parameter name. A “LEDDEVICE true” as an answer to a websocket submission is then not enough, since I can’t know which instance was active at the time of the response to the subscription

How should this be implemented in your opinion?

Include the parameter instance and the instance concerned in the JSON response to a websocket submission for component changes

Are you willing to work on this yourself?

I’m not fit enough in the JSON API to help on this one.

pierrebuet avatar Aug 07 '22 17:08 pierrebuet