# Node Red ... Shelly Plus 1PM mit AddOn und Temperaturfühler schalten

**URL:** <https://community.victronenergy.com/t/node-red-shelly-plus-1pm-mit-addon-und-temperaturfuhler-schalten/9110>\
**Category:** Deutschsprachiger Bereich\
**Tags:** node-red, victron\_community, beginner, multiplus-ii\
**Created:** [26 October 2024 16:00 UTC](https://community.victronenergy.com/t/node-red-shelly-plus-1pm-mit-addon-und-temperaturfuhler-schalten/9110 "2024-10-26T16:00:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rolf11](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@rolf11](https://community.victronenergy.com/u/rolf11)\
**Post date:** [26 October 2024 16:00 UTC](https://community.victronenergy.com/t/node-red-shelly-plus-1pm-mit-addon-und-temperaturfuhler-schalten/9110/1 "2024-10-26T16:00:34Z")

</div>

Hallo, wer kann einem ANFÄNGER helfen….

Ich lese die Temperatur von meinem Temperaturfühler der an einem AddOn an dem Shelly Plus 1PM aus…. tc ist 50.8 Grad … Siehe Bild.

Ich möchte meinen Heizstab bei zB. größer50 Grad über einen shelly ausschalten

Und bei kleiner 40 Grad diesen wieder einschalten.

Wer kann mir da helfen ?

Grüße

Rolf

 ![temp](https://europe1.discourse-cdn.com/victron/original/2X/0/0c1580ceef4866dae8a555637513b384032fb63a.jpeg)

---

<div class="post-metadata">

**Author:** ![Madlight618](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Madlight618](https://community.victronenergy.com/u/Madlight618)\
**Post date:** [26 October 2024 17:29 UTC](https://community.victronenergy.com/t/node-red-shelly-plus-1pm-mit-addon-und-temperaturfuhler-schalten/9110/2 "2024-10-26T17:29:48Z")

</div>

[  
{  
“id”: “47e0f52ffb50505a”,  
“type”: “tab”,  
“label”: “SOC&Heizstab”,  
“disabled”: true,  
“info”: “”,  
“env”:   
},  
{  
“id”: “cff94c69c7bac742”,  
“type”: “debug”,  
“z”: “47e0f52ffb50505a”,  
“name”: “”,  
“active”: true,  
“tosidebar”: true,  
“console”: false,  
“tostatus”: false,  
“complete”: “payload”,  
“targetType”: “msg”,  
“statusVal”: “”,  
“statusType”: “auto”,  
“x”: 1250,  
“y”: 400,  
“wires”:   
},  
{  
“id”: “3d6b19b1c8d830eb”,  
“type”: “function”,  
“z”: “47e0f52ffb50505a”,  
“name”: “Heizstab on”,  
“func”: “msg.payload = {\n method: "Switch.Set",\n parameters : {\n id : 0,\n on : true,\n }\n};\nreturn msg;”,  
“outputs”: 1,  
“noerr”: 0,  
“initialize”: “”,  
“finalize”: “”,  
“libs”: ,  
“x”: 830,  
“y”: 380,  
“wires”: [  
[  
“9b542dba0e875503”  
]  
]  
},  
{  
“id”: “1a02fd82b833a65a”,  
“type”: “function”,  
“z”: “47e0f52ffb50505a”,  
“name”: “Heizstab off”,  
“func”: “msg.payload = {\n method: "Switch.Set",\n parameters : {\n id : 0,\n on : false,\n }\n};\nreturn msg;”,  
“outputs”: 1,  
“noerr”: 0,  
“initialize”: “”,  
“finalize”: “”,  
“libs”: ,  
“x”: 830,  
“y”: 420,  
“wires”: [  
[  
“9b542dba0e875503”  
]  
]  
},  
{  
“id”: “545e24f170f646c2”,  
“type”: “inject”,  
“z”: “47e0f52ffb50505a”,  
“name”: “Turn On”,  
“props”: [  
{  
“p”: “payload”  
},  
{  
“p”: “topic”,  
“vt”: “str”  
}  
],  
“repeat”: “”,  
“crontab”: “”,  
“once”: false,  
“onceDelay”: 0.1,  
“topic”: “”,  
“payload”: “”,  
“payloadType”: “date”,  
“x”: 560,  
“y”: 380,  
“wires”: [  
[  
“3d6b19b1c8d830eb”  
]  
]  
},  
{  
“id”: “aa1b3fb6c5e7dee1”,  
“type”: “inject”,  
“z”: “47e0f52ffb50505a”,  
“name”: “Turn Off”,  
“props”: [  
{  
“p”: “payload”  
},  
{  
“p”: “topic”,  
“vt”: “str”  
}  
],  
“repeat”: “”,  
“crontab”: “”,  
“once”: false,  
“onceDelay”: 0.1,  
“topic”: “”,  
“payload”: “”,  
“payloadType”: “date”,  
“x”: 560,  
“y”: 420,  
“wires”: [  
[  
“1a02fd82b833a65a”  
]  
]  
},  
{  
“id”: “6b0f15485bdbc33b”,  
“type”: “inject”,  
“z”: “47e0f52ffb50505a”,  
“name”: “Get Status”,  
“props”: [  
{  
“p”: “payload”  
},  
{  
“p”: “topic”,  
“vt”: “str”  
}  
],  
“repeat”: “”,  
“crontab”: “”,  
“once”: false,  
“onceDelay”: 0.1,  
“topic”: “”,  
“payload”: “”,  
“payloadType”: “date”,  
“x”: 820,  
“y”: 320,  
“wires”: [  
[  
“9b542dba0e875503”  
]  
]  
},  
{  
“id”: “6805ea47b25eec2d”,  
“type”: “function”,  
“z”: “47e0f52ffb50505a”,  
“name”: “0 toggle”,  
“func”: “msg.payload = {\n method: "Switch.Toggle",\n parameters : {\n id : 0,\n }\n};\nreturn msg;\n”,  
“outputs”: 1,  
“noerr”: 0,  
“initialize”: “”,  
“finalize”: “”,  
“libs”: ,  
“x”: 820,  
“y”: 460,  
“wires”: [  
[  
“9b542dba0e875503”  
]  
]  
},  
{  
“id”: “ba6cc705a48c3b5f”,  
“type”: “inject”,  
“z”: “47e0f52ffb50505a”,  
“name”: “Toggle”,  
“props”: [  
{  
“p”: “payload”  
},  
{  
“p”: “topic”,  
“vt”: “str”  
}  
],  
“repeat”: “”,  
“crontab”: “”,  
“once”: false,  
“onceDelay”: 0.1,  
“topic”: “”,  
“payload”: “”,  
“payloadType”: “date”,  
“x”: 550,  
“y”: 680,  
“wires”: [  
[  
“6805ea47b25eec2d”  
]  
]  
},  
{  
“id”: “9b542dba0e875503”,  
“type”: “shelly-gen2”,  
“z”: “47e0f52ffb50505a”,  
“hostname”: “192.168.178.57”,  
“description”: “”,  
“mode”: “polling”,  
“server”: “04263f2d054cc2a1”,  
“uploadretryinterval”: “5000”,  
“pollinginterval”: 5000,  
“pollstatus”: false,  
“getstatusoncommand”: false,  
“devicetype”: “Relay”,  
“outputs”: 1,  
“x”: 1040,  
“y”: 400,  
“wires”: [  
[  
“cff94c69c7bac742”  
]  
]  
},  
{  
“id”: “a32dc79cbe0aa215”,  
“type”: “victron-input-battery”,  
“z”: “47e0f52ffb50505a”,  
“service”: “com.victronenergy.battery/512”,  
“path”: “/Soc”,  
“serviceObj”: {  
“service”: “com.victronenergy.battery/512”,  
“name”: “Pylontech US2000C”  
},  
“pathObj”: {  
“path”: “/Soc”,  
“type”: “float”,  
“name”: “State of charge (%)”  
},  
“name”: “Soc %”,  
“onlyChanges”: true,  
“roundValues”: “2”,  
“x”: 230,  
“y”: 400,  
“wires”: [  
[  
“a0decc5198a27487”,  
“6c01ba4e599dbe27”,  
“a3fa383c1ac87428”  
]  
]  
},  
{  
“id”: “a0decc5198a27487”,  
“type”: “debug”,  
“z”: “47e0f52ffb50505a”,  
“name”: “debug 53”,  
“active”: true,  
“tosidebar”: true,  
“console”: false,  
“tostatus”: false,  
“complete”: “false”,  
“statusVal”: “”,  
“statusType”: “auto”,  
“x”: 380,  
“y”: 400,  
“wires”:   
},  
{  
“id”: “6c01ba4e599dbe27”,  
“type”: “switch”,  
“z”: “47e0f52ffb50505a”,  
“name”: “SOC\>X an”,  
“property”: “payload”,  
“propertyType”: “msg”,  
“rules”: [  
{  
“t”: “gte”,  
“v”: “98”,  
“vt”: “str”  
}  
],  
“checkall”: “true”,  
“repair”: true,  
“outputs”: 1,  
“x”: 550,  
“y”: 220,  
“wires”: [  
[  
“3d6b19b1c8d830eb”  
]  
]  
},  
{  
“id”: “01a9515ff488c867”,  
“type”: “inject”,  
“z”: “47e0f52ffb50505a”,  
“name”: “Test SOC \>X an”,  
“props”: [  
{  
“p”: “payload”  
},  
{  
“p”: “topic”,  
“vt”: “str”  
}  
],  
“repeat”: “”,  
“crontab”: “”,  
“once”: false,  
“onceDelay”: 0.1,  
“topic”: “”,  
“payload”: “90”,  
“payloadType”: “num”,  
“x”: 540,  
“y”: 340,  
“wires”: [  
[  
“3d6b19b1c8d830eb”  
]  
]  
},  
{  
“id”: “6a92b1cb4f2b8cf2”,  
“type”: “inject”,  
“z”: “47e0f52ffb50505a”,  
“name”: “Test SOC \<X aus”,  
“props”: [  
{  
“p”: “payload”  
},  
{  
“p”: “topic”,  
“vt”: “str”  
}  
],  
“repeat”: “”,  
“crontab”: “”,  
“once”: false,  
“onceDelay”: 0.1,  
“topic”: “”,  
“payload”: “84”,  
“payloadType”: “num”,  
“x”: 540,  
“y”: 460,  
“wires”: [  
[  
“1a02fd82b833a65a”  
]  
]  
},  
{  
“id”: “a3fa383c1ac87428”,  
“type”: “switch”,  
“z”: “47e0f52ffb50505a”,  
“name”: “SOC\<X aus”,  
“property”: “payload”,  
“propertyType”: “msg”,  
“rules”: [  
{  
“t”: “lte”,  
“v”: “97”,  
“vt”: “str”  
}  
],  
“checkall”: “true”,  
“repair”: true,  
“outputs”: 1,  
“x”: 550,  
“y”: 560,  
“wires”: [  
[  
“1a02fd82b833a65a”  
]  
]  
},  
{  
“id”: “04263f2d054cc2a1”,  
“type”: “shelly-gen2-server”,  
“port”: “10001”,  
“hostname”: “unimatrix”  
}  
]

---

<div class="post-metadata">

**Author:** ![Madlight618](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Madlight618](https://community.victronenergy.com/u/Madlight618)\
**Post date:** [26 October 2024 17:31 UTC](https://community.victronenergy.com/t/node-red-shelly-plus-1pm-mit-addon-und-temperaturfuhler-schalten/9110/3 "2024-10-26T17:31:03Z")

</div>

mußte halt an Deine Bedürfnisse anpassen,  
lG  
Michael

---

<div class="post-metadata">

**Author:** ![rolf11](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@rolf11](https://community.victronenergy.com/u/rolf11)\
**Post date:** [27 October 2024 10:54 UTC](https://community.victronenergy.com/t/node-red-shelly-plus-1pm-mit-addon-und-temperaturfuhler-schalten/9110/4 "2024-10-27T10:54:47Z")

</div>

Hallo Michael,

danke für diene Antwort und den Flow…

habe ihn kopiert und dann bei mir importiert und dann kam diese Fehlermeldung

Was habe ich falsch gemacht ?

Grüße  
Rolf

 ![flow 1](https://europe1.discourse-cdn.com/victron/original/2X/7/7407974eb6961aa6e30fe861c3054be5358da1fa.jpeg)
