korrekt so ist es …hier mal ein BWM … mit Batteriestatus…
[
{
"id": "57ba86a4.bd7f58",
"type": "change",
"z": "59733c22.166c0c",
"name": "true",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "true",
"fromt": "str",
"to": "{\"id\":742,\"value\":1}",
"tot": "json"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "false",
"fromt": "str",
"to": "{\"id\":742,\"value\":0}",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 330,
"y": 420,
"wires": [
[
"a1648343.d36d3"
]
]
},
{
"id": "ca6debff.ab33c",
"type": "function",
"z": "59733c22.166c0c",
"name": "",
"func": "\nreturn {payload: {\"id\":740,\"value\": parseFloat(msg.payload)}}",
"outputs": 1,
"noerr": 0,
"x": 330,
"y": 460,
"wires": [
[
"a1648343.d36d3"
]
]
},
{
"id": "a1648343.d36d3",
"type": "homeeDevice",
"z": "59733c22.166c0c",
"virtual-homee": "",
"name": "Bewegungsmelder",
"nodeId": "740",
"profile": "4029",
"icon": "default",
"attributes": "[{\"id\":740,\"node_id\":740,\"instance\":0,\"minimum\":0,\"maximum\":1001,\"current_value\":298,\"target_value\":298,\"last_value\":298,\"unit\":\"lx\",\"step_value\":1,\"editable\":0,\"type\":11,\"state\":1,\"last_changed\":1572977478,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":741,\"node_id\":740,\"instance\":0,\"minimum\":0,\"maximum\":100,\"current_value\":89,\"target_value\":89,\"last_value\":89,\"unit\":\"%25\",\"step_value\":1,\"editable\":0,\"type\":8,\"state\":1,\"last_changed\":1572970769,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":742,\"node_id\":740,\"instance\":0,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":1,\"last_value\":0,\"unit\":\"n%2Fa\",\"step_value\":1,\"editable\":0,\"type\":25,\"state\":1,\"last_changed\":1572977478,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]",
"x": 530,
"y": 460,
"wires": [
[]
]
},
{
"id": "bb42b2b6.2ec5b8",
"type": "function",
"z": "59733c22.166c0c",
"name": "",
"func": "\nreturn {payload: {\"id\":741,\"value\": parseFloat(msg.payload)}}",
"outputs": 1,
"noerr": 0,
"x": 330,
"y": 500,
"wires": [
[
"a1648343.d36d3"
]
]
},
{
"id": "863015e7.b27ba",
"type": "ioBroker in",
"z": "59733c22.166c0c",
"name": "Occupancy",
"topic": "zigbee.0.00158d000413fd09.occupancy",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 90,
"y": 420,
"wires": [
[
"57ba86a4.bd7f58"
]
]
},
{
"id": "6c030a89.ec6444",
"type": "ioBroker in",
"z": "59733c22.166c0c",
"name": "Illuminance",
"topic": "zigbee.0.00158d000413fd09.illuminance",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 90,
"y": 460,
"wires": [
[
"ca6debff.ab33c"
]
]
},
{
"id": "31d52e5d.19fe6a",
"type": "ioBroker in",
"z": "59733c22.166c0c",
"name": "Battery percent",
"topic": "zigbee.0.00158d000413fd09.battery",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 100,
"y": 500,
"wires": [
[
"bb42b2b6.2ec5b8"
]
]
}
]