evok icon indicating copy to clipboard operation
evok copied to clipboard

[Feature]: more comprehensive filter possibility with web_socket

Open rudyvan opened this issue 8 months ago • 2 comments

Describe the feature

from the documentation, it is possible with web_socket to filter certain devices, but not certain circuits.

(extract)

def on_open(ws):
    print("WebSocket connection opened")
    msg = {"cmd": "filter", "devices": ["do", "ao"]}
    ws.send(json.dumps(msg))

Would it be possible to filter certain devices/circuits?

say:

    msg = {"cmd": "filter", "devices": {"do": ["1_01", "1_02"], "ao": ["1_01"]}}

Why?

It seems that i am getting a lot of 1_12 input changes, even when the input is made high. On some cases i have 4 web_sockets on one unipi and i would like to limit trafic to the inputs/outputs that are in use and nothing from the others.

Use case

less network traffic for non used circuits

Alternatives Considered

No response

Additional context

No response

rudyvan avatar Jun 08 '24 15:06 rudyvan