Ce type de payload ?
{"src":"shellyplusi4-XXXXXXXXXXXX","dst":"shellies/plusI4/cmdVR/events","method":"NotifyEvent","params":{"ts":1694253551.68,"events":[{"component":"input:0", "id":0, "event":"btn_up", "ts":1694253551.68}]}}
{"src":"shellyplusi4-XXXXXXXXXXXX","dst":"shellies/plusI4/cmdVR/events","method":"NotifyEvent","params":{"ts":1694253559.24,"events":[{"component":"input:2", "id":2, "event":"btn_up", "ts":1694253559.24}]}}
{"src":"shellyplusi4-XXXXXXXXXXXX","dst":"shellies/plusI4/cmdVR/events","method":"NotifyEvent","params":{"ts":1694254433.17,"events":[{"component":"input:0", "id":0, "event":"btn_down", "ts":1694254433.17}]}}
{"src":"shellyplusi4-XXXXXXXXXXXX","dst":"shellies/plusI4/cmdVR/events","method":"NotifyEvent","params":{"ts":1694254434.17,"events":[{"component":"input:0", "id":0, "event":"long_push", "ts":1694254434.17}]}}
{"src":"shellyplusi4-XXXXXXXXXXXX","dst":"shellies/plusI4/cmdVR/events","method":"NotifyEvent","params":{"ts":1694254438.21,"events":[{"component":"input:2", "id":2, "event":"btn_down", "ts":1694254438.21}]}}
{"src":"shellyplusi4-XXXXXXXXXXXX","dst":"shellies/plusI4/cmdVR/events","method":"NotifyEvent","params":{"ts":1694254439.21,"events":[{"component":"input:2", "id":2, "event":"long_push", "ts":1694254439.21}]}}
J’applique le chemin JSON.
$..events[?(@.id==0)].event
$..events[?(@.id==2)].event