This works -
[
{
"id": "4b9083e5.db1c44",
"type": "mqtt in",
"z": "44ed0376.b98684",
"name": "",
"topic": "zigbee2mqtt/pirsensor",
"qos": "0",
"datatype": "json",
"broker": "af63855f.695e08",
"x": 140,
"y": 200,
"wires": [
[
"e7bc37c1.7f8e18"
]
]
},
{
"id": "eb9f6878.f02b28",
"type": "mqtt out",
"z": "44ed0376.b98684",
"name": "",
"topic": "sonofftest/cmnd/POWER",
"qos": "",
"retain": "",
"broker": "a18c05f4.86c9d",
"x": 1270,
"y": 160,
"wires":
},
{
"id": "87e24825.fb009",
"type": "trigger",
"z": "44ed0376.b98684",
"op1": "",
"op2": "OFF",
"op1type": "nul",
"op2type": "str",
"duration": "10",
"extend": false,
"units": "s",
"reset": "ON",
"bytopic": "all",
"name": "",
"x": 1030,
"y": 260,
"wires": [
[
"eb9f6878.f02b28"
]
]
},
{
"id": "e7bc37c1.7f8e18",
"type": "change",
"z": "44ed0376.b98684",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.occupancy",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 430,
"y": 200,
"wires": [
[
"838fdc96.c1b3d8"
]
]
},
{
"id": "e5c02581.c68a98",
"type": "change",
"z": "44ed0376.b98684",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "ON",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 820,
"y": 160,
"wires": [
[
"eb9f6878.f02b28",
"d9aac502.1d4988"
]
]
},
{
"id": "838fdc96.c1b3d8",
"type": "switch",
"z": "44ed0376.b98684",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 650,
"y": 200,
"wires": [
[
"e5c02581.c68a98",
"4304d57f.842d04"
],
[
"f1bf5b71.0a5dd",
"4304d57f.842d04"
]
]
},
{
"id": "d9aac502.1d4988",
"type": "debug",
"z": "44ed0376.b98684",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 1010,
"y": 200,
"wires":
},
{
"id": "4304d57f.842d04",
"type": "debug",
"z": "44ed0376.b98684",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 810,
"y": 200,
"wires":
},
{
"id": "f1bf5b71.0a5dd",
"type": "change",
"z": "44ed0376.b98684",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "OFF",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 820,
"y": 240,
"wires": [
[
"87e24825.fb009",
"d9aac502.1d4988"
]
]
},
{
"id": "af63855f.695e08",
"type": "mqtt-broker",
"z": "",
"name": "MQTT",
"broker": "192.168.5.81",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "true",
"birthPayload": "",
"closeTopic": "",
"closeQos": "0",
"closeRetain": "false",
"closePayload": "",
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": ""
},
{
"id": "a18c05f4.86c9d",
"type": "mqtt-broker",
"z": "",
"name": "MQTT",
"broker": "192.168.5.81",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "true",
"birthPayload": "",
"closeTopic": "",
"closeQos": "0",
"closeRetain": "false",
"closePayload": "",
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": ""
}
]