danke für den hinweis. Anfängerfehler. ich hoff nun geht es:
[
{
"id": "7860fa74c036a094",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "bcaf99f8475b034c",
"type": "homeeApi",
"z": "7860fa74c036a094",
"homee": "",
"name": "homeeApi",
"messageTypeFilter": [],
"nodeFilter": "",
"attributeFilter": "",
"x": 100,
"y": 80,
"wires": [
[]
]
},
{
"id": "a7dded3eda2b221d",
"type": "homeeDevice",
"z": "7860fa74c036a094",
"virtual-homee": "",
"name": "Garagentor",
"nodeId": "0001",
"showNodeId": true,
"profile": "2000",
"icon": "nodeicon_sectionaldoor",
"attributes": [
{
"instance": 0,
"minimum": 0,
"maximum": 1,
"current_value": 1,
"target_value": 1,
"last_value": 0,
"unit": "n%2Fa",
"step_value": 1,
"editable": 0,
"type": 14,
"state": 1,
"last_changed": 1572873723,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"id": "90",
"node_id": "0001"
},
{
"instance": 0,
"minimum": 0,
"maximum": 100,
"current_value": 100,
"target_value": 100,
"last_value": 100,
"unit": "%25",
"step_value": 1,
"editable": 0,
"type": 8,
"state": 1,
"last_changed": 1589205961,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"name": "Batterie Status",
"id": "91",
"node_id": "0001"
}
],
"statusTemplate": "",
"x": 845,
"y": 240,
"wires": [
[]
],
"l": false
},
{
"id": "ae8e1f4734f8e02d",
"type": "debug",
"z": "7860fa74c036a094",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 500,
"y": 180,
"wires": []
},
{
"id": "c676d7bec2af28b7",
"type": "function",
"z": "7860fa74c036a094",
"name": "Garagentor_Status",
"func": "if (msg.payload === true ){msg.payload=1}else msg.payload=0;\nnode.send({payload:{\"attribute\":{\"id\":90,\"value\":msg.payload}}})",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 590,
"y": 240,
"wires": [
[
"a7dded3eda2b221d"
]
]
},
{
"id": "61230e99b726524b",
"type": "ioBroker in",
"z": "7860fa74c036a094",
"name": "Garagentor Zu.OpenClose",
"topic": "homee.0.OpenCloseAndTemperatureSensor-98.OpenClose-682",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "true",
"outFormat": "MQTT",
"x": 170,
"y": 220,
"wires": [
[
"ae8e1f4734f8e02d",
"c676d7bec2af28b7"
]
]
},
{
"id": "67bf80608fc6acfc",
"type": "ioBroker in",
"z": "7860fa74c036a094",
"name": "Garagentor Offen.OpenClose",
"topic": "homee.0.OpenCloseAndTemperatureSensor-99.OpenClose-694",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "true",
"outFormat": "MQTT",
"x": 180,
"y": 280,
"wires": [
[
"c676d7bec2af28b7"
]
]
},
{
"id": "51330654972afb50",
"type": "ioBroker in",
"z": "7860fa74c036a094",
"name": "Garagentor Zu.BatteryLevel",
"topic": "homee.0.OpenCloseAndTemperatureSensor-98.BatteryLevel-678",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "true",
"outFormat": "MQTT",
"x": 180,
"y": 440,
"wires": [
[
"a32bfc092aac4254"
]
]
},
{
"id": "641c5ac45dd23af0",
"type": "ioBroker in",
"z": "7860fa74c036a094",
"name": "Garagentor Offen.BatteryLevel",
"topic": "homee.0.OpenCloseAndTemperatureSensor-99.BatteryLevel-690",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "true",
"outFormat": "MQTT",
"x": 190,
"y": 500,
"wires": [
[
"a32bfc092aac4254"
]
]
},
{
"id": "a32bfc092aac4254",
"type": "function",
"z": "7860fa74c036a094",
"name": "Bat_Status",
"func": "node.send({ payload: { \"attribute\": { \"id\": 91, \"value\": msg.payload } } })",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 550,
"y": 420,
"wires": [
[
"a7dded3eda2b221d",
"d7271415fc601aba"
]
]
},
{
"id": "d7271415fc601aba",
"type": "debug",
"z": "7860fa74c036a094",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 850,
"y": 480,
"wires": []
},
{
"id": "1ed4b884f2fcd8d1",
"type": "ioBroker in",
"z": "7860fa74c036a094",
"name": "Ladung Batterie",
"topic": "modbus.1.inputRegisters._Batterie",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "true",
"outFormat": "MQTT",
"x": 120,
"y": 800,
"wires": [
[
"66248965ecfc7e23"
]
]
},
{
"id": "d9c6dd61ee7744b8",
"type": "homeeDevice",
"z": "7860fa74c036a094",
"virtual-homee": "",
"name": "Batteriestatus Solar",
"nodeId": "0002",
"showNodeId": true,
"profile": "38",
"icon": "default",
"attributes": [
{
"instance": 0,
"minimum": 0,
"maximum": 100,
"current_value": 100,
"target_value": 100,
"last_value": 100,
"unit": "%25",
"step_value": 1,
"editable": 0,
"type": 273,
"state": 1,
"last_changed": 1589205961,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"name": "Batterie Status",
"id": "93",
"node_id": "0002"
}
],
"statusTemplate": "",
"x": 605,
"y": 800,
"wires": [
[]
],
"l": false
},
{
"id": "3f197b54b1b05aed",
"type": "debug",
"z": "7860fa74c036a094",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 530,
"y": 900,
"wires": []
},
{
"id": "66248965ecfc7e23",
"type": "function",
"z": "7860fa74c036a094",
"name": "Bat_Status",
"func": "node.send({ payload: { \"attribute\": { \"id\": 93, \"value\": msg.payload } } })",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 370,
"y": 800,
"wires": [
[
"3f197b54b1b05aed",
"d9c6dd61ee7744b8"
]
]
},
{
"id": "a41fdde30f733489",
"type": "ioBroker in",
"z": "7860fa74c036a094",
"name": "Tagesertrag",
"topic": "modbus.0.inputRegisters.3._Tagesertrag",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 130,
"y": 1040,
"wires": [
[
"bd2d1d20f7162715"
]
]
},
{
"id": "bd2d1d20f7162715",
"type": "function",
"z": "7860fa74c036a094",
"name": "Bat_Status",
"func": "node.send({ payload: { \"attribute\": { \"id\": 94, \"value\": msg.payload } } })",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 350,
"y": 1040,
"wires": [
[
"25c29a8f11542915",
"3d7399f13d06c90d"
]
]
},
{
"id": "25c29a8f11542915",
"type": "debug",
"z": "7860fa74c036a094",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 510,
"y": 1120,
"wires": []
},
{
"id": "3d7399f13d06c90d",
"type": "homeeDevice",
"z": "7860fa74c036a094",
"virtual-homee": "",
"name": "Tagesertrag",
"nodeId": "0003",
"showNodeId": true,
"profile": "38",
"icon": "default",
"attributes": [
{
"instance": 0,
"minimum": 0,
"maximum": 9999999,
"current_value": 100,
"target_value": 100,
"last_value": 100,
"unit": "kWh",
"step_value": 1,
"editable": 0,
"type": 275,
"state": 1,
"last_changed": 1589205961,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"name": "Batterie Status",
"id": "94",
"node_id": "0003"
}
],
"statusTemplate": "",
"x": 675,
"y": 1040,
"wires": [
[]
],
"l": false
}
]