Need your help with proper channel setup for extracting right value
i can receive many jsons on one mqtt topic ;( - the clue is to split based on “id:” field and capture some of the fields belonging to given id. i Created a think and its working with Incoming Value Transformations: JSONPATH:$.zoneUpdate.armed
but i don’t know how to catch ID:0 and ID:x to different channels in mqtt binding. Any help will be more than welcome
i tried with $.zoneUpdate[?(@.id==1)].armed but with now luck
{
“zoneUpdate”: {
“id”: 0,
“name”: “czujka ruchu pir”,
“status”: “online”,
“sensorStatus”: “normal”,
“tamperEvident”: true,
“shielded”: false,
“bypassed”: false,
“armed”: true,
“isArming”: false,
“alarm”: false,
“subSystemNo”: 2,
“linkageSubSystem”: [
2
],
“detectorType”: “passiveInfraredDetector”,
“stayAway”: false,
“zoneType”: “Instant”,
“accessModuleType”: “localTransmitter”,
“moduleChannel”: 1,
“zoneAttrib”: “wired”,
“deviceNo”: 2,
“abnormalOrNot”: false
}
}