guter Tip, gerade ausprobiert. Interessant dabei: Als Geräte werden mir nur mein Balkonkraftwerk und meine Heizungsanlage angeboten. Wobei letztere darin eher nichts zu suchen hat. Balkonkraftwerk und Stromzähler haben in NodeRed beide das Profil „Energiemesser“. Hast Du eine Idee, warum eines nicht aufgeführt wird?
Das Widget zeit dann aber bei mir tatsächlich etwas an: Aktuell 776W, Summiert 0 kWh
Hier der Stromzähler:
[
{
"id": "52d1cc0344996e8d",
"type": "mqtt in",
"z": "e67a5411c5471f4e",
"name": "mqtt - Stromzaehler",
"topic": "tele/CTS_tasmota_SML_2F02EC/SENSOR",
"qos": "2",
"datatype": "auto-detect",
"broker": "d970159d1ef132d0",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 270,
"y": 440,
"wires": [
[
"6030582e009717b2"
]
]
},
{
"id": "d257942728347b23",
"type": "homeeApi",
"z": "e67a5411c5471f4e",
"homee": "",
"name": "homeeApi",
"messageTypeFilter": [],
"nodeFilter": "",
"attributeFilter": "",
"x": 260,
"y": 140,
"wires": [
[]
]
},
{
"id": "103dedfa4a167135",
"type": "homeeDevice",
"z": "e67a5411c5471f4e",
"virtual-homee": "",
"name": "Stromzaehler",
"nodeId": "1",
"showNodeId": true,
"profile": "32",
"icon": "nodeicon_energymeter",
"attributes": [
{
"type": 264,
"state": 1,
"instance": 0,
"minimum": -3000,
"maximum": 20000,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"name": "aktueller Verbrauch",
"unit": "W",
"step_value": 1,
"editable": 0,
"last_changed": 1778358544,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": "1",
"node_id": "1"
},
{
"type": 276,
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 9999999,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"name": "",
"unit": "kWh",
"step_value": 1,
"editable": 0,
"last_changed": 1778358414,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": "2",
"node_id": "1"
},
{
"type": 277,
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 9999999,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"name": "",
"unit": "kWh",
"step_value": 1,
"editable": 0,
"last_changed": 1778358529,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": "3",
"node_id": "1"
}
],
"statusTemplate": "",
"x": 810,
"y": 440,
"wires": [
[]
]
},
{
"id": "6030582e009717b2",
"type": "function",
"z": "e67a5411c5471f4e",
"name": "data mapping",
"func": "var smi = msg.payload.SMI;\n\nnode.send({payload: {attribute: {id: 1, value: smi.Power_cur}}});\nnode.send({payload: {attribute: {id: 2, value: smi.Total_in}}});\nnode.send({payload: {attribute: {id: 3, value: smi.Total_out}}});\nreturn null;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 480,
"y": 440,
"wires": [
[
"103dedfa4a167135",
"2afe1f1d57f7b440"
]
]
},
{
"id": "2afe1f1d57f7b440",
"type": "debug",
"z": "e67a5411c5471f4e",
"name": "debug 2",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 820,
"y": 320,
"wires": []
},
{
"id": "d970159d1ef132d0",
"type": "mqtt-broker",
"name": "",
"broker": "192.165.0.123",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": 4,
"keepalive": 60,
"cleansession": true,
"autoUnsubscribe": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "false",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closeRetain": "false",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
},
{
"id": "299f268ae66295be",
"type": "global-config",
"env": [],
"modules": {
"node-red-contrib-homee": "0.13.1"
}
}
]