Node Red - Hilfe-/Frage-/Ideen-/Austausch - Thread

Hallo zusammen,

kann mir evtl. mal jemand unter die Arme greifen, wie ich über node red entsprechende Geräte in Smartthings steuren kann?

Ich habe mich mit dem Thema node red leider immer nur punktuell beschäftigt und leider zu wenig Zeit, um mein Wissen hier nachhaltig zu festigen… :roll_eyes:

Ist wahrscheinlich nen klacks für diejenigen, die verstehen, wie es funktioniert

Ich habe den node-red-contrib-smartthings installiert und eingerichtet.
Soweit alles gut. Aber ich bin einfach zu doof, wie ich jetzt einen Befehl z.b. für das ein oder Ausschalten meiner Lampen geben kann…

Es gibt einen on/off node, aber ich hab keinen Plan, wie ich dem sage, das er meine Lampen schaltet. Hier braucht es ja wahrscheinlich einen entsprechenden Inject node mit der korrekten Info.

In der Beschreibung steht folgendes, mit dem ich aber leider nix anfangen kann… :roll_eyes: :pensive: :exploding_head:

# OnOff

This Node represents a switch device.

### [Input](http://192.xxx/#)

topicstring

`update` force the node to output the current state

topicstring

`pull` force the node to update its current state and output it

topicstring

`switch` can be used to change device state. The message will be something like this: `{ topic: "switch", payload: { value: (1|0) } }`

### [Outputs](http://192.xxx/#)

1. Standard Output

topicstring

value of `device`

payloadobject

Object with device status

### [Details](http://192.xxx/#)

This node represents a switch device. It will keep device state. Every time the device state changes at Smartthings, the webhook will send us the current state.

Besides, if you need it to output the status, like when responding a http request, you can use the `topic` with the `update` value to force it to report.

Und direkt mal eine Vorwarnung. Meinen vhih habe ich mir mit einer Neuinstallation meines pi offenbar ebenfalls „zerstört“. Auch da würde ich mich dann nochmal wegen der Einrichtung melden, denn irgendwie bekomme ich den nicht wieder ans laufen… :sob:

Vorab schon mal vielen Dank für eurer Hilfe!!

Hallo zusammen,
ist es möglich über Node Red die Geodaten der einzelnen User abzufragen und diese in einen State von ioBroker zu schreiben?

Sorry bin blutiger Anfänger in Node Red.

Ich habe mein Problem mit der Smartthingssteuerung über node red mittlerweile alleine lösen können.
Trotzdem Danke.

Die geodaten befinden sich nur in der App.

Hallo zusammen, nachdem ich nun auch einen Raspberry Pi zugelegt habe, möchte ich mich an Node Red wagen.
Ich bin ein absoluter Anfänger.
Im Moment läuft auf meinem Raspberry der piCorePlyer.
Ist es möglich gleichzeitig Node Red laufen zu lassen und wie mache ich das?

So wie ich das gelesen habe sollte es kein Problem sein Node Red laufen zu lassen.

https://nodered.org/docs/getting-started/local

Hi, ich bräuchte auch mal wieder Hilfe…hab noch 2 Gosund Doppelstecker in Gebrauch, die wollte ich nun auch in homee verfügbar machen. Hab ich soweit auch geschafft, nur schalten immer beide Dosen… mit Switch geht gar nix mehr…kann da mal jemand drüberschauen?

[
    {
        "id": "95d170a11ae22b81",
        "type": "tab",
        "label": "SP211_2_2",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "6cc5b60ad6f102e1",
        "type": "function",
        "z": "95d170a11ae22b81",
        "name": "detect on off",
        "func": "var status\nif (msg.payload === 1){status =1}\n    else status =0;\n        node.send({payload:{\"attribute\": {\"id\": 7310,\"value\":status}}})\n        ",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 550,
        "y": 60,
        "wires": [
            [
                "fb3d3412c3f5b3e9"
            ]
        ]
    },
    {
        "id": "7256a48b012d37d7",
        "type": "change",
        "z": "95d170a11ae22b81",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "false",
                "fromt": "str",
                "to": "0",
                "tot": "num"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "true",
                "fromt": "str",
                "to": "1",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 370,
        "y": 60,
        "wires": [
            [
                "6cc5b60ad6f102e1"
            ]
        ]
    },
    {
        "id": "7d6f6c143d515d4b",
        "type": "debug",
        "z": "95d170a11ae22b81",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 1130,
        "y": 280,
        "wires": []
    },
    {
        "id": "daad4b1efea5d8ec",
        "type": "homeeDevice",
        "z": "95d170a11ae22b81",
        "virtual-homee": "",
        "name": "SP211-02",
        "nodeId": "7310",
        "showNodeId": true,
        "profile": "28",
        "icon": "nodeicon_doubleplug",
        "attributes": [
            {
                "instance": 0,
                "minimum": 0,
                "maximum": 1,
                "current_value": 0,
                "target_value": 0,
                "last_value": 0,
                "unit": "",
                "step_value": 1,
                "editable": 1,
                "type": 1,
                "state": 1,
                "last_changed": 12345555,
                "changed_by": 1,
                "changed_by_id": 0,
                "based_on": 1,
                "data": "",
                "id": "7310",
                "node_id": "7310"
            },
            {
                "type": 1,
                "state": 1,
                "instance": 1,
                "minimum": 0,
                "maximum": 1,
                "current_value": 0,
                "target_value": 0,
                "last_value": 0,
                "data": "",
                "name": "",
                "unit": "",
                "step_value": 1,
                "editable": 1,
                "last_changed": 1677684549,
                "changed_by": 1,
                "changed_by_id": 0,
                "based_on": 1,
                "options": [],
                "id": "7311",
                "node_id": "7310"
            },
            {
                "instance": 0,
                "minimum": 0,
                "maximum": 400,
                "current_value": 8.85,
                "target_value": 8.85,
                "last_value": 8.84,
                "unit": "V",
                "step_value": 1,
                "editable": 0,
                "type": 195,
                "state": 1,
                "last_changed": 1572807225,
                "changed_by": 1,
                "changed_by_id": 0,
                "based_on": 1,
                "data": "",
                "id": "7312",
                "node_id": "7310"
            },
            {
                "instance": 0,
                "minimum": 0,
                "maximum": 15,
                "current_value": 8.85,
                "target_value": 8.85,
                "last_value": 8.84,
                "unit": "A",
                "step_value": 0.001,
                "editable": 0,
                "type": 193,
                "state": 1,
                "last_changed": 1572807225,
                "changed_by": 1,
                "changed_by_id": 0,
                "based_on": 1,
                "data": "",
                "id": "7313",
                "node_id": "7310"
            },
            {
                "instance": 0,
                "minimum": 0,
                "maximum": 3450,
                "current_value": 0,
                "target_value": 0,
                "last_value": 0,
                "unit": "W",
                "step_value": 0.5,
                "editable": 0,
                "type": 3,
                "state": 1,
                "last_changed": 1572619585,
                "changed_by": 1,
                "changed_by_id": 0,
                "based_on": 1,
                "data": "",
                "id": "7314",
                "node_id": "7310"
            },
            {
                "instance": 0,
                "minimum": 0,
                "maximum": 50000,
                "current_value": 8.85,
                "target_value": 8.85,
                "last_value": 8.84,
                "unit": "kWh%20Heute",
                "step_value": 0.001,
                "editable": 0,
                "type": 4,
                "state": 1,
                "last_changed": 1572807225,
                "changed_by": 1,
                "changed_by_id": 0,
                "based_on": 1,
                "data": "",
                "id": "7315",
                "node_id": "7310"
            },
            {
                "instance": 1,
                "minimum": 0,
                "maximum": 50000,
                "current_value": 8.85,
                "target_value": 8.85,
                "last_value": 8.84,
                "unit": "kWh%20Gestern",
                "step_value": 0.001,
                "editable": 0,
                "type": 4,
                "state": 1,
                "last_changed": 1572807225,
                "changed_by": 1,
                "changed_by_id": 0,
                "based_on": 1,
                "data": "",
                "id": "7316",
                "node_id": "7310"
            },
            {
                "instance": 2,
                "minimum": 0,
                "maximum": 50000,
                "current_value": 8.85,
                "target_value": 8.85,
                "last_value": 8.84,
                "unit": "kWh%20Gesamt",
                "step_value": 0.001,
                "editable": 0,
                "type": 4,
                "state": 1,
                "last_changed": 1572807225,
                "changed_by": 1,
                "changed_by_id": 0,
                "based_on": 1,
                "data": "",
                "id": "7317",
                "node_id": "7310"
            }
        ],
        "statusTemplate": "",
        "x": 950,
        "y": 140,
        "wires": [
            [
                "50532a53bc1ddb76",
                "7d6f6c143d515d4b"
            ]
        ]
    },
    {
        "id": "fb3d3412c3f5b3e9",
        "type": "rbe",
        "z": "95d170a11ae22b81",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 710,
        "y": 60,
        "wires": [
            [
                "daad4b1efea5d8ec"
            ]
        ]
    },
    {
        "id": "ebdcae398c571f43",
        "type": "function",
        "z": "95d170a11ae22b81",
        "name": "detect on off",
        "func": "var status\nif (msg.payload === 1){status =1}\n    else status =0;\n        node.send({payload:{\"attribute\": {\"id\": 7311,\"value\":status}}})\n        ",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 550,
        "y": 120,
        "wires": [
            [
                "4ffd7f703319dbef"
            ]
        ]
    },
    {
        "id": "cd7d53d25286ee63",
        "type": "change",
        "z": "95d170a11ae22b81",
        "name": "",
        "rules": [
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "false",
                "fromt": "str",
                "to": "0",
                "tot": "num"
            },
            {
                "t": "change",
                "p": "payload",
                "pt": "msg",
                "from": "true",
                "fromt": "str",
                "to": "1",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 370,
        "y": 120,
        "wires": [
            [
                "ebdcae398c571f43"
            ]
        ]
    },
    {
        "id": "4ffd7f703319dbef",
        "type": "rbe",
        "z": "95d170a11ae22b81",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 710,
        "y": 120,
        "wires": [
            [
                "daad4b1efea5d8ec"
            ]
        ]
    },
    {
        "id": "9a3323af3df9282e",
        "type": "ioBroker in",
        "z": "95d170a11ae22b81",
        "name": "DVES_146703  POWER1",
        "topic": "sonoff.0.DVES_146703.POWER1",
        "payloadType": "value",
        "onlyack": "command",
        "func": "rbe",
        "gap": "",
        "fireOnStart": "false",
        "outFormat": "ioBroker",
        "x": 150,
        "y": 60,
        "wires": [
            [
                "7256a48b012d37d7"
            ]
        ]
    },
    {
        "id": "e1b4e9d53987914c",
        "type": "ioBroker in",
        "z": "95d170a11ae22b81",
        "name": "DVES_146703  POWER2",
        "topic": "sonoff.0.DVES_146703.POWER2",
        "payloadType": "value",
        "onlyack": "command",
        "func": "rbe",
        "gap": "",
        "fireOnStart": "false",
        "outFormat": "ioBroker",
        "x": 150,
        "y": 120,
        "wires": [
            [
                "cd7d53d25286ee63"
            ]
        ]
    },
    {
        "id": "6b244393c94fd283",
        "type": "ioBroker out",
        "z": "95d170a11ae22b81",
        "name": "DVES_146703  POWER1",
        "topic": "sonoff.0.DVES_146703.POWER1",
        "ack": "false",
        "autoCreate": "false",
        "stateName": "",
        "role": "",
        "payloadType": "",
        "readonly": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 1730,
        "y": 80,
        "wires": []
    },
    {
        "id": "59047e6105f272a9",
        "type": "ioBroker out",
        "z": "95d170a11ae22b81",
        "name": "DVES_146703  POWER2",
        "topic": "sonoff.0.DVES_146703.POWER2",
        "ack": "false",
        "autoCreate": "false",
        "stateName": "",
        "role": "",
        "payloadType": "",
        "readonly": "",
        "stateUnit": "",
        "stateMin": "",
        "stateMax": "",
        "x": 1730,
        "y": 200,
        "wires": []
    },
    {
        "id": "4dde58c1ac65960a",
        "type": "template",
        "z": "95d170a11ae22b81",
        "name": "",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{\"attribute\": {\"id\": 7312,\"value\":{{payload}}}}",
        "output": "json",
        "x": 560,
        "y": 180,
        "wires": [
            [
                "daad4b1efea5d8ec"
            ]
        ]
    },
    {
        "id": "72b0763608a822a9",
        "type": "rbe",
        "z": "95d170a11ae22b81",
        "name": "",
        "func": "deadbandEq",
        "gap": "3",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 400,
        "y": 180,
        "wires": [
            [
                "4dde58c1ac65960a"
            ]
        ]
    },
    {
        "id": "4fd3d0fcf80cf92c",
        "type": "ioBroker in",
        "z": "95d170a11ae22b81",
        "name": "DVES_146703 ENERGY  Voltage",
        "topic": "sonoff.0.DVES_146703.ENERGY_Voltage",
        "payloadType": "value",
        "onlyack": "",
        "func": "all",
        "gap": "",
        "fireOnStart": "false",
        "outFormat": "ioBroker",
        "x": 170,
        "y": 180,
        "wires": [
            [
                "72b0763608a822a9"
            ]
        ]
    },
    {
        "id": "b46072b76926ef61",
        "type": "ioBroker in",
        "z": "95d170a11ae22b81",
        "name": "DVES_146703 ENERGY  Power",
        "topic": "sonoff.0.DVES_146703.ENERGY_Power",
        "payloadType": "value",
        "onlyack": "",
        "func": "all",
        "gap": "",
        "fireOnStart": "false",
        "outFormat": "ioBroker",
        "x": 170,
        "y": 300,
        "wires": [
            [
                "77217ab001d36b11"
            ]
        ]
    },
    {
        "id": "8ec7e3c4d8834bd8",
        "type": "ioBroker in",
        "z": "95d170a11ae22b81",
        "name": "DVES_146703 ENERGY  Today",
        "topic": "sonoff.0.DVES_146703.ENERGY_Today",
        "payloadType": "value",
        "onlyack": "",
        "func": "all",
        "gap": "",
        "fireOnStart": "false",
        "outFormat": "ioBroker",
        "x": 170,
        "y": 360,
        "wires": [
            [
                "16472e3d8a1a801e"
            ]
        ]
    },
    {
        "id": "69e65c62fe9cafce",
        "type": "ioBroker in",
        "z": "95d170a11ae22b81",
        "name": "DVES_146703 ENERGY  Yesterday",
        "topic": "sonoff.0.DVES_146703.ENERGY_Yesterday",
        "payloadType": "value",
        "onlyack": "",
        "func": "all",
        "gap": "",
        "fireOnStart": "false",
        "outFormat": "ioBroker",
        "x": 180,
        "y": 420,
        "wires": [
            [
                "67c41c93e9bf40cc"
            ]
        ]
    },
    {
        "id": "cdce3a0409fa10be",
        "type": "ioBroker in",
        "z": "95d170a11ae22b81",
        "name": "DVES_146703 ENERGY  Total",
        "topic": "sonoff.0.DVES_146703.ENERGY_Total",
        "payloadType": "value",
        "onlyack": "",
        "func": "all",
        "gap": "",
        "fireOnStart": "false",
        "outFormat": "ioBroker",
        "x": 160,
        "y": 480,
        "wires": [
            [
                "067bf5666cea6f11"
            ]
        ]
    },
    {
        "id": "a383596e0d2d6cbf",
        "type": "template",
        "z": "95d170a11ae22b81",
        "name": "",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{\"attribute\": {\"id\": 7313,\"value\":{{payload}}}}",
        "output": "json",
        "x": 560,
        "y": 240,
        "wires": [
            [
                "daad4b1efea5d8ec"
            ]
        ]
    },
    {
        "id": "3fe69d67beea008c",
        "type": "template",
        "z": "95d170a11ae22b81",
        "name": "",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{\"attribute\": {\"id\": 7314,\"value\":{{payload}}}}",
        "output": "json",
        "x": 560,
        "y": 300,
        "wires": [
            [
                "daad4b1efea5d8ec"
            ]
        ]
    },
    {
        "id": "22fea2b1ee91b9c1",
        "type": "template",
        "z": "95d170a11ae22b81",
        "name": "",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{\"attribute\": {\"id\": 7315,\"value\":{{payload}}}}",
        "output": "json",
        "x": 560,
        "y": 360,
        "wires": [
            [
                "daad4b1efea5d8ec"
            ]
        ]
    },
    {
        "id": "fb0b87cc65de4c1a",
        "type": "template",
        "z": "95d170a11ae22b81",
        "name": "",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{\"attribute\": {\"id\": 7316,\"value\":{{payload}}}}",
        "output": "json",
        "x": 560,
        "y": 420,
        "wires": [
            [
                "daad4b1efea5d8ec"
            ]
        ]
    },
    {
        "id": "a665be833bd25e0f",
        "type": "ioBroker in",
        "z": "95d170a11ae22b81",
        "name": "DVES_146703 ENERGY  Current",
        "topic": "sonoff.0.DVES_146703.ENERGY_Current",
        "payloadType": "value",
        "onlyack": "",
        "func": "all",
        "gap": "",
        "fireOnStart": "false",
        "outFormat": "ioBroker",
        "x": 170,
        "y": 240,
        "wires": [
            [
                "ed46094a65a5840a"
            ]
        ]
    },
    {
        "id": "46f6b2f169180fdf",
        "type": "template",
        "z": "95d170a11ae22b81",
        "name": "",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "{\"attribute\": {\"id\": 7317,\"value\":{{payload}}}}",
        "output": "json",
        "x": 560,
        "y": 480,
        "wires": [
            [
                "daad4b1efea5d8ec"
            ]
        ]
    },
    {
        "id": "ed46094a65a5840a",
        "type": "rbe",
        "z": "95d170a11ae22b81",
        "name": "",
        "func": "deadbandEq",
        "gap": "0.010",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 400,
        "y": 240,
        "wires": [
            [
                "a383596e0d2d6cbf"
            ]
        ]
    },
    {
        "id": "77217ab001d36b11",
        "type": "rbe",
        "z": "95d170a11ae22b81",
        "name": "",
        "func": "deadbandEq",
        "gap": "5",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 400,
        "y": 300,
        "wires": [
            [
                "3fe69d67beea008c"
            ]
        ]
    },
    {
        "id": "16472e3d8a1a801e",
        "type": "rbe",
        "z": "95d170a11ae22b81",
        "name": "",
        "func": "deadbandEq",
        "gap": "0.002",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 400,
        "y": 360,
        "wires": [
            [
                "22fea2b1ee91b9c1"
            ]
        ]
    },
    {
        "id": "67c41c93e9bf40cc",
        "type": "rbe",
        "z": "95d170a11ae22b81",
        "name": "",
        "func": "deadbandEq",
        "gap": "0.002",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 400,
        "y": 420,
        "wires": [
            [
                "fb0b87cc65de4c1a"
            ]
        ]
    },
    {
        "id": "067bf5666cea6f11",
        "type": "rbe",
        "z": "95d170a11ae22b81",
        "name": "",
        "func": "deadbandEq",
        "gap": "0.002",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 400,
        "y": 480,
        "wires": [
            [
                "46f6b2f169180fdf"
            ]
        ]
    },
    {
        "id": "4fcaed8409c3762a",
        "type": "comment",
        "z": "95d170a11ae22b81",
        "name": "Baustelle",
        "info": "",
        "x": 960,
        "y": 60,
        "wires": []
    },
    {
        "id": "50532a53bc1ddb76",
        "type": "switch",
        "z": "95d170a11ae22b81",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "7310",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "7311",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 1190,
        "y": 140,
        "wires": [
            [
                "b2f474204b299125",
                "7d6f6c143d515d4b"
            ],
            [
                "7bfb379e9ed90803",
                "7d6f6c143d515d4b"
            ]
        ]
    },
    {
        "id": "b2f474204b299125",
        "type": "change",
        "z": "95d170a11ae22b81",
        "name": "",
        "rules": [
            {
                "t": "move",
                "p": "payload.targetValue",
                "pt": "msg",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1280,
        "y": 80,
        "wires": [
            [
                "e6c74b735ca001fc"
            ]
        ]
    },
    {
        "id": "7bfb379e9ed90803",
        "type": "change",
        "z": "95d170a11ae22b81",
        "name": "",
        "rules": [
            {
                "t": "move",
                "p": "payload.targetValue",
                "pt": "msg",
                "to": "payload",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1280,
        "y": 200,
        "wires": [
            [
                "172266c19546b023"
            ]
        ]
    },
    {
        "id": "e6c74b735ca001fc",
        "type": "function",
        "z": "95d170a11ae22b81",
        "name": "metering plug",
        "func": "var newmsg = { payload: msg.payload.targetValue };\nreturn [newmsg];",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1520,
        "y": 80,
        "wires": [
            [
                "6b244393c94fd283"
            ]
        ]
    },
    {
        "id": "172266c19546b023",
        "type": "function",
        "z": "95d170a11ae22b81",
        "name": "metering plug",
        "func": "var newmsg = { payload: msg.payload.targetValue };\nreturn [newmsg];",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1520,
        "y": 200,
        "wires": [
            [
                "59047e6105f272a9"
            ]
        ]
    }
]

Merci & VG :cowboy_hat_face:
Andi

Funktionieren diese beiden letzten Function nodes stand alone? Im Sinne von, dass diese die jeweiligen Dosen unabh. schalten?

Bin nur mal schnell dein Json durchgescrollt ohne Import, sah high level ok aus.

Danke fürs nachsehen :slight_smile: Wenn ich dich richtig verstehe, ja. Ohne Switch und Change Node wird geschalten, nur immer beide Schalter, egal ob 1 oder 2…deswegen die „dazwischengeschalteten“

Hey @dezebruar,
im SwitchNode musst du auf payload.attributeId filtern und nicht auf payload.
Ausserdem muss die AttributID eine Zahl sein.
Das ChangeNode brauchst du auch nicht, da du in der Funktion ja auf den Wert payload.targetValue reagierst.

Ansonsten sag Bescheid und wir vereinbaren ein Teamviewer Meeting.:wink:

1 „Gefällt mir“

Hi @Micha , das wars!! :smiling_face_with_three_hearts: :four_leaf_clover:Funzt super & den ChangeNode hab ich wieder rausgeschmissen :+1: Vielen Dank wieder mal für deine Unterstützung & noch einen schönen Sonntag!
VG
Andi :cowboy_hat_face:

3 „Gefällt mir“

Super das es dir geholfen hat. :+1::blush:

1 „Gefällt mir“

Danke für deine Antwort, kann ich aus der Api den Funkstandart (Zwave, Zigbee) der einzelnen Geräte herauszufinden?

Hallo @Oliver1,

jedes GeräteNode verrät dir auch das Protokoll.
In den Enums ist das zu finden.

CACubeType: {
        none: 0,
        homeeZWave500: 1,
        homeeZigBee: 2,
        homeeEnOcean: 3,
        homeeWMbus: 4,
        homeeHomematic: 5,
        hagerKNXRF: 6,
        hagerInova: 7,
        homeeBrain: 8,
        homeeZWave700: 9,
        homeeLoRa: 10,
        homeeBiSecur: 11,
        kameIOCube: 12,
        homeeCentronicPlus: 13,
        homeeWMS: 14,
        homeeEcoStar: 15,
        homeeBiSecur2: 17,
        homeeEcoStar2: 18,
        afrisoEnOcean: 150,
        ESTMKZWave500: 151,
        PuMEnOcean: 152,
        ESTMKZWave700: 153,
        VARIA3ZWaveStatic: 154
    },

Dieser Wert befindet sich unter dem Punkt Protokoll.
VG

2 „Gefällt mir“

Danke hat super geklappt, jetzt stehe ich allerdings vor dem nächsten Thema
Ich möchte mir einige Daten aus den Settings auslesen (uid, Softwarestand usw.)

Die Rohdaten möchte ich wie folgt holen

Klappt aber leider nicht, es kommen keine Daten rein. Wenn ich „settings“ gegen „nodes“ tausche kommen alle Rohdaten der Geräte.

Kannst du mir da vielleicht weiterhelfen?

Welche Daten von den Geräten brauchst du ?
Du bekommst nur die unter get:/nodes/xyz ausgewiesenen Attribute und mehr nicht.
Zwave Details wirst du so nicht bekommen, das liegt alles im verborgenen.

Ich meine die Daten, die ich mi get:/settings abrufe kann

Die settings musst du mit einem inject holen. get:/settings

so muss das change node eingestellt sein

[
    {
        "id": "82b3ff57.2ac61",
        "type": "change",
        "z": "231d0d1.5fbeaf2",
        "name": "",
        "rules": [
            {
                "t": "move",
                "p": "payload",
                "pt": "msg",
                "to": "homee",
                "tot": "global"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 990,
        "y": 580,
        "wires": [
            []
        ]
    }
]

Screenshot (257)

Ich habe mir von dir folgenden Flow nachgebaut:


Wenn ich hier mit get:/settings Abrufe kommen genau die Daten, welche ich mit teilweise in Datenpunkte vom ioBroker schreiben möchte.

Wenn ich das ganze aber mit der oben gezeigten Node ausführe, kommen unendlich Daten, aber nicht die , die ich benötige
image

Nimm mal bitte das change Node das ich eingestellt habe, da sollte dann alles passen.