# Help with Shelly

**URL:** https://discourse.nodered.org/t/help-with-shelly/67014
**Category:** General
**Created:** [27 August 2022 21:27 UTC](https://discourse.nodered.org/t/help-with-shelly/67014 "2022-08-27T21:27:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Frantisek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/frantisek/32/66949_2.png) [@Frantisek](https://discourse.nodered.org/u/Frantisek)
#### Post date: [27 August 2022 21:27 UTC](https://discourse.nodered.org/t/help-with-shelly/67014/1 "2022-08-27T21:27:55Z")

</div>

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:

```auto
[
    {
        "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"
            ]
        ]
    }
]

```

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [27 August 2022 21:31 UTC](https://discourse.nodered.org/t/help-with-shelly/67014/2 "2022-08-27T21:31:59Z")

</div>

@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](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506) about posting code or flows in the forum.  
I've edited your post above, so that it is readable in the forum.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [26 October 2022 21:32 UTC](https://discourse.nodered.org/t/help-with-shelly/67014/3 "2022-10-26T21:32:25Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
