Shelly plus 1 mit und neue Shelly App

So, hier alles notwendige:
Nodes für Shelly1 - 1. Gen:

[ { "id": "12328efc1e70adf6", "type": "function", "z": "71d2baa986138c38", "name": "convert boolean to string", "func": "if (msg.payload === true || msg.payload === \"true\") {\n msg.payload = \"on\";\n} else if (msg.payload === false || msg.payload === \"false\") {\n msg.payload = \"off\";\n}\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1330, "y": 560, "wires": [ [ "fd57de3148c15932" ] ] }, { "id": "fd57de3148c15932", "type": "mqtt out", "z": "71d2baa986138c38", "name": "", "topic": "shellies/shellyRelay1/relay/0/command", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "0ddb07c65cbb68bc", "x": 1630, "y": 560, "wires": [] }, { "id": "0ddb07c65cbb68bc", "type": "mqtt-broker", "name": "", "broker": "http://localhost", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "sessionExpiry": "" } ]

Und hier die Nodes für Shelly 1 plus

[ { "id": "8f9ab6548e0e7ee4", "type": "change", "z": "71d2baa986138c38", "name": "convert boolean to string", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "bool", "to": "on", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "off", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1330, "y": 640, "wires": [ [ "1a16cc23b8fbb2d7" ] ] }, { "id": "1a16cc23b8fbb2d7", "type": "mqtt out", "z": "71d2baa986138c38", "name": "", "topic": "shellies/shellyRelay2/command/switch:0", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "0ddb07c65cbb68bc", "x": 1640, "y": 640, "wires": [] }, { "id": "0ddb07c65cbb68bc", "type": "mqtt-broker", "name": "", "broker": "http://localhost", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willPayload": "", "willMsg": {}, "sessionExpiry": "" } ]
2 Likes