So ich habe mal meinen Beitrag gelöscht, damit er nicht zu Verwirrung führt. Sieht gut aus. Aufräumen hat es gebracht.
Einen Flaw hat er leider noch, der Battery-State wird im Homee leider mit 0% angegeben. Meine Vermutung ist, dass sich das erst ändern wird, wenn der Wert unter 100% sinkt und eine neue Meldung gesendet wird.
Hier für alle interessierten der Flow:
[
{
"id": "7c776129.65356",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "b6abdf26.bbcff",
"type": "homeeDevice",
"z": "7c776129.65356",
"virtual-homee": "",
"name": "Sensor_Humidity",
"nodeId": "10",
"profile": "3001",
"icon": "nodeicon_temperature",
"attributes": "[{\"id\":100,\"node_id\":10,\"instance\":0,\"minimum\":0,\"maximum\":50,\"current_value\":1.5,\"target_value\":23.6,\"last_value\":23.799,\"unit\":\"%C2%B0C\",\"step_value\":0.5,\"editable\":0,\"type\":5,\"state\":1,\"last_changed\":1572966224,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":101,\"node_id\":10,\"instance\":0,\"minimum\":0,\"maximum\":100,\"current_value\":0,\"target_value\":49,\"last_value\":48,\"unit\":\"%25\",\"step_value\":0.5,\"editable\":0,\"type\":7,\"state\":1,\"last_changed\":1572966224,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":102,\"node_id\":10,\"instance\":0,\"minimum\":0,\"maximum\":100,\"current_value\":100,\"target_value\":0,\"last_value\":0,\"unit\":\"%25\",\"step_value\":1,\"editable\":0,\"type\":8,\"state\":1,\"last_changed\":1572966224,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"}]",
"x": 790,
"y": 200,
"wires": [
[
"8a96d19a.89d3a"
]
]
},
{
"id": "8a96d19a.89d3a",
"type": "debug",
"z": "7c776129.65356",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 750,
"y": 320,
"wires": []
},
{
"id": "153eb601.c026fa",
"type": "ioBroker in",
"z": "7c776129.65356",
"name": "lumi.sens Temperature",
"topic": "zigbee.0.00158d000408fa33.temperature",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 120,
"y": 160,
"wires": [
[
"bad697fc.1b97c8"
]
]
},
{
"id": "5e5b0fa9.efeb2",
"type": "function",
"z": "7c776129.65356",
"name": "Sender Temp",
"func": "var val = msg.payload.temperature\n\nnode.send({payload:{\"id\":100,\"value\":msg.payload}})\n",
"outputs": 1,
"noerr": 0,
"x": 510,
"y": 160,
"wires": [
[
"b6abdf26.bbcff"
]
]
},
{
"id": "bad697fc.1b97c8",
"type": "json",
"z": "7c776129.65356",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 330,
"y": 160,
"wires": [
[
"5e5b0fa9.efeb2"
]
]
},
{
"id": "54f9e996.ab78c8",
"type": "ioBroker in",
"z": "7c776129.65356",
"name": "lumi.sens Battery",
"topic": "zigbee.0.00158d000408fa33.battery",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 100,
"y": 280,
"wires": [
[
"3c0d0672.09b25a"
]
]
},
{
"id": "50563217.154a5c",
"type": "ioBroker in",
"z": "7c776129.65356",
"name": "lumi.sens Humidity",
"topic": "zigbee.0.00158d000408fa33.humidity",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 110,
"y": 220,
"wires": [
[
"6138fc1b.66c3b4"
]
]
},
{
"id": "3c0d0672.09b25a",
"type": "json",
"z": "7c776129.65356",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 330,
"y": 280,
"wires": [
[
"b7c394f.4c0ff68"
]
]
},
{
"id": "6138fc1b.66c3b4",
"type": "json",
"z": "7c776129.65356",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 330,
"y": 220,
"wires": [
[
"74be2b65.6e3224"
]
]
},
{
"id": "74be2b65.6e3224",
"type": "function",
"z": "7c776129.65356",
"name": "Sender Humidity",
"func": "var hum = msg.payload.humidity\n\nnode.send({payload:{\"id\":101,\"value\":msg.payload}})\n",
"outputs": 1,
"noerr": 0,
"x": 520,
"y": 220,
"wires": [
[
"b6abdf26.bbcff"
]
]
},
{
"id": "b7c394f.4c0ff68",
"type": "function",
"z": "7c776129.65356",
"name": "Sender Battery",
"func": "var bat = msg.payload.battery\n\nnode.send({payload:{\"id\":102,\"value\":msg.payload}})\n",
"outputs": 1,
"noerr": 0,
"x": 520,
"y": 280,
"wires": [
[
"b6abdf26.bbcff"
]
]
}
]
Danke für die Mühe