Das geht aber auch sehr gut mit den vorhandenen Bordmitteln(WebUI) vom Shelly. Im Anhang ein Beispiel (NodeRed)mit der Relaistemp., da ich kein ADDON PLUS besitze.
Code
[
{
"id": "a1e948852a11d9a7",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "b8c9706eb47c7c2a",
"type": "mqtt in",
"z": "a1e948852a11d9a7",
"name": "2PM",
"topic": "shellyplus2pmIP44/status/switch:0",
"qos": "0",
"datatype": "json",
"broker": "5661f219ac8a3456",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 130,
"y": 140,
"wires": [
[
"6e17acdcb10be2c1"
]
]
},
{
"id": "6e17acdcb10be2c1",
"type": "change",
"z": "a1e948852a11d9a7",
"name": "temp",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.temperature.tC",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 250,
"y": 140,
"wires": [
[
"53f46350f52a2411"
]
]
},
{
"id": "53f46350f52a2411",
"type": "switch",
"z": "a1e948852a11d9a7",
"name": "<>°C",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gt",
"v": "40",
"vt": "num"
},
{
"t": "lt",
"v": "32",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 370,
"y": 140,
"wires": [
[
"045138b919da48ac"
],
[
"e538ab958d1ad59b"
]
]
},
{
"id": "045138b919da48ac",
"type": "ui_button",
"z": "a1e948852a11d9a7",
"name": "",
"group": "459a253821e0cfe7",
"order": 1,
"width": 2,
"height": 1,
"passthru": true,
"label": "Ein",
"tooltip": "An",
"color": "green",
"bgcolor": "",
"className": "",
"icon": "lightbulb_outline",
"payload": "on",
"payloadType": "str",
"topic": "",
"topicType": "str",
"x": 510,
"y": 120,
"wires": [
[
"7153fb765b96e593"
]
]
},
{
"id": "e538ab958d1ad59b",
"type": "ui_button",
"z": "a1e948852a11d9a7",
"name": "",
"group": "459a253821e0cfe7",
"order": 4,
"width": 2,
"height": 1,
"passthru": true,
"label": "Aus",
"tooltip": "",
"color": "red",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "off",
"payloadType": "str",
"topic": "",
"topicType": "str",
"x": 510,
"y": 160,
"wires": [
[
"7153fb765b96e593"
]
]
},
{
"id": "7153fb765b96e593",
"type": "mqtt out",
"z": "a1e948852a11d9a7",
"name": "2PM",
"topic": "shellyplus2pmIP44/command/switch:0",
"qos": "1",
"retain": "false",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "5661f219ac8a3456",
"x": 650,
"y": 140,
"wires": []
},
{
"id": "5661f219ac8a3456",
"type": "mqtt-broker",
"name": "",
"broker": "Beispiel",
"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": "459a253821e0cfe7",
"type": "ui_group",
"name": "System",
"tab": "fc972f5c5bca71f7",
"order": 2,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "fc972f5c5bca71f7",
"type": "ui_tab",
"name": "Einstellungen",
"icon": "dashboard",
"order": 9,
"disabled": false,
"hidden": true
}
]
Alles anzeigen