Need help or example of Node-Red + SmartThings temperature flow

I am new to NR. I have setup a NR server along with Smartthings and was able to create a flow to turn on a Smartthings light switch. I am trying to set a temperature via NR and ST, but everything I try, nothing shows up in my debug flow. I am trying to use the inject and that doesn't work. I know my NR is communicating with my ST as I can use inject to turn on and off a light switch.

Anyone have an example or pointer to temperature with NR and ST?

I have tried a couple ways with no luck


Capture2

Welcome to the forum!

You need to show us your whole flow, there is not enough information in your post!

is this the right code for the workflow?

[
    {
        "id": "e4cd8a9f84c30117",
        "type": "tab",
        "label": "SThub",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "5d2ee2a6623efcf2",
        "type": "smartthings-node-temperature",
        "z": "e4cd8a9f84c30117",
        "conf": "c330ed804e4310aa",
        "name": "TempBox1 (Temperature)",
        "device": "4de8ea0c-a128-424c-a96d-3ae8e91a225b",
        "x": 650,
        "y": 260,
        "wires": [
            [
                "a20ca53c381ff5b2"
            ]
        ]
    },
    {
        "id": "a67f018fbc5b2258",
        "type": "inject",
        "z": "e4cd8a9f84c30117",
        "name": "Light On",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "switch",
        "payload": "{\"value\":1}",
        "payloadType": "json",
        "x": 480,
        "y": 360,
        "wires": [
            [
                "6dc75aa23e0c8a07"
            ]
        ]
    },
    {
        "id": "6dc75aa23e0c8a07",
        "type": "smartthings-node-onoff",
        "z": "e4cd8a9f84c30117",
        "conf": "c330ed804e4310aa",
        "name": "Jeff's Office Main Light",
        "device": "e4dd054d-d6ff-44d6-bf80-58eb03c88135",
        "x": 760,
        "y": 460,
        "wires": [
            [
                "a20ca53c381ff5b2"
            ]
        ]
    },
    {
        "id": "c7f418f194932ae2",
        "type": "inject",
        "z": "e4cd8a9f84c30117",
        "name": "Light Off",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "switch",
        "payload": "{\"value\":0}",
        "payloadType": "json",
        "x": 480,
        "y": 420,
        "wires": [
            [
                "6dc75aa23e0c8a07"
            ]
        ]
    },
    {
        "id": "f9a6e165b0378769",
        "type": "inject",
        "z": "e4cd8a9f84c30117",
        "name": "Set Temp",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "temperature",
        "payload": "{\"value\":60}",
        "payloadType": "json",
        "x": 180,
        "y": 260,
        "wires": [
            [
                "5d2ee2a6623efcf2"
            ]
        ]
    },
    {
        "id": "a20ca53c381ff5b2",
        "type": "debug",
        "z": "e4cd8a9f84c30117",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 950,
        "y": 340,
        "wires": []
    },
    {
        "id": "c330ed804e4310aa",
        "type": "smartthings-config",
        "name": "BasicDevice",
        "token": "e086deb9-39b0-447b-a45e-bb861b702aa1"
    }
]

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