Help with Shelly

Hi, does anyone have an example for node red flow to turn on Shelly 1 based on temperatures from the DS18B20 temperature sensor?

My beginner flow:

[
    {
        "id": "cfc1c79dee914373",
        "type": "debug",
        "z": "80efc952f223c129",
        "name": "debug 3",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "status.ext_temperature[\"0\"].tC",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 900,
        "y": 580,
        "wires": []
    },
    {
        "id": "ef2a8b3d6bed9605",
        "type": "shelly-gen1",
        "z": "80efc952f223c129",
        "hostname": "192.168.0.133",
        "description": "Shelly1",
        "pollinginterval": 5000,
        "pollstatus": false,
        "getstatusoncommand": true,
        "devicetype": "Relay",
        "outputs": 1,
        "rgbwmode": "color",
        "x": 360,
        "y": 580,
        "wires": [
            [
                "9c376f217ad57a84"
            ]
        ]
    },
    {
        "id": "e742c30cf9fe1bda",
        "type": "inject",
        "z": "80efc952f223c129",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "str",
        "x": 150,
        "y": 580,
        "wires": [
            [
                "ef2a8b3d6bed9605"
            ]
        ]
    },
    {
        "id": "9c376f217ad57a84",
        "type": "function",
        "z": "80efc952f223c129",
        "name": "get device status",
        "func": "\nvar IP = \"192.168.0.133\";\n\nmsg.url = \"http://\" + IP + \"/status\";\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 650,
        "y": 580,
        "wires": [
            [
                "cfc1c79dee914373"
            ]
        ]
    }
]

@Frantisek I've moved this post to it's own topic, as you posted it in a topic about 'how to control a heating system'.

ALSO, please see this post about posting code or flows in the forum.
I've edited your post above, so that it is readable in the forum.

1 Like