NEWS
was mach ich falsch mit der node-red-contrib-color-convert Node???
-
Ich habe ein Problem mit der node-red-contrib-color-convert Node.
Egal was ich rein schicke, es kommt nur Mist raus.
Schicke ich HSV rein und sag er soll RGB als Object ausgeben, gibt er mir HSV Werte raus.Ich vermute aber das ich schon bei der Erstellung des Array aus den einzelnen Werte, das die Node haben will, einen Fehler gemacht habe.
Kann mir wer helfen?
Hier der Flow:
[ { "id": "471c23bb.2023c4", "type": "tab", "label": "RGB - HSV", "disabled": false, "info": "" }, { "id": "e7872244.7a6f", "type": "ioBroker in", "z": "471c23bb.2023c4", "name": "Hue", "topic": "mqtt.0.home.01.Wohnzimmer.LED_Test.hue", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "x": 90, "y": 40, "wires": [ [ "1662ba98.dcddfd", "2e667828.e40f1" ] ] }, { "id": "efc741c1.17ed5", "type": "ioBroker in", "z": "471c23bb.2023c4", "name": "Saturation", "topic": "mqtt.0.home.01.Wohnzimmer.LED_Test.s", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "x": 100, "y": 180, "wires": [ [ "d62c5f.9d7beba", "41dfd43a.7133dc" ] ] }, { "id": "79fd6e5b.249ab8", "type": "debug", "z": "471c23bb.2023c4", "name": "RGB ?", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "x": 990, "y": 240, "wires": [] }, { "id": "31aa487b.f6ef28", "type": "debug", "z": "471c23bb.2023c4", "name": "2.0", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "x": 530, "y": 40, "wires": [] }, { "id": "a9f6dc6c.5bdde", "type": "debug", "z": "471c23bb.2023c4", "name": "3", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "x": 770, "y": 140, "wires": [] }, { "id": "1662ba98.dcddfd", "type": "change", "z": "471c23bb.2023c4", "name": "", "rules": [ { "t": "set", "p": "index", "pt": "msg", "to": "0", "tot": "num" }, { "t": "delete", "p": "topic", "pt": "msg" }, { "t": "delete", "p": "from", "pt": "msg" }, { "t": "delete", "p": "acknowledged", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 340, "y": 80, "wires": [ [ "31aa487b.f6ef28", "ae2008c3.aef1a" ] ] }, { "id": "ae2008c3.aef1a", "type": "join", "z": "471c23bb.2023c4", "name": "", "mode": "custom", "build": "array", "property": "payload", "propertyType": "msg", "key": "num", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "10", "count": "3", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 750, "y": 220, "wires": [ [ "a06c525e.c9851", "a9f6dc6c.5bdde" ] ] }, { "id": "d62c5f.9d7beba", "type": "change", "z": "471c23bb.2023c4", "name": "", "rules": [ { "t": "set", "p": "index", "pt": "msg", "to": "1", "tot": "num" }, { "t": "delete", "p": "topic", "pt": "msg" }, { "t": "delete", "p": "from", "pt": "msg" }, { "t": "delete", "p": "acknowledged", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 320, "y": 220, "wires": [ [ "ae2008c3.aef1a", "ab43314c.e755d8" ] ] }, { "id": "a06c525e.c9851", "type": "change", "z": "471c23bb.2023c4", "name": "", "rules": [ { "t": "set", "p": "key", "pt": "msg", "to": "hsv", "tot": "str" }, { "t": "delete", "p": "topic", "pt": "msg" }, { "t": "delete", "p": "from", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 720, "y": 420, "wires": [ [ "60512d19.d42fb4", "7c6f19f1.9f6428" ] ] }, { "id": "a5da25c5.2cdff8", "type": "change", "z": "471c23bb.2023c4", "name": "", "rules": [ { "t": "set", "p": "index", "pt": "msg", "to": "2", "tot": "num" }, { "t": "delete", "p": "topic", "pt": "msg" }, { "t": "delete", "p": "from", "pt": "msg" }, { "t": "delete", "p": "acknowledged", "pt": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 320, "y": 340, "wires": [ [ "ae2008c3.aef1a", "f71e6c2b.a8ea4" ] ] }, { "id": "41dfd43a.7133dc", "type": "debug", "z": "471c23bb.2023c4", "name": "1.1", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "x": 290, "y": 180, "wires": [] }, { "id": "f6e3ffcf.153d68", "type": "debug", "z": "471c23bb.2023c4", "name": "1.2", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "x": 290, "y": 300, "wires": [] }, { "id": "f71e6c2b.a8ea4", "type": "debug", "z": "471c23bb.2023c4", "name": "2.2", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "x": 530, "y": 300, "wires": [] }, { "id": "ab43314c.e755d8", "type": "debug", "z": "471c23bb.2023c4", "name": "2.1", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "x": 530, "y": 180, "wires": [] }, { "id": "60512d19.d42fb4", "type": "debug", "z": "471c23bb.2023c4", "name": "hsv", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "x": 970, "y": 420, "wires": [] }, { "id": "c5ea660e.2ca3e8", "type": "ioBroker in", "z": "471c23bb.2023c4", "name": "Prozent", "topic": "mqtt.0.home.01.Wohnzimmer.LED_Test.pro", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "x": 90, "y": 300, "wires": [ [ "a5da25c5.2cdff8", "f6e3ffcf.153d68" ] ] }, { "id": "de4ce2c.634372", "type": "inject", "z": "471c23bb.2023c4", "name": "Test 1", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 110, "y": 460, "wires": [ [ "9878bb00.32ff88", "2d35f4e9.74df94", "8d6bae13.7fb988" ] ] }, { "id": "9878bb00.32ff88", "type": "change", "z": "471c23bb.2023c4", "name": "Test Hue 360", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "360", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 190, "y": 560, "wires": [ [ "1662ba98.dcddfd" ] ] }, { "id": "2d35f4e9.74df94", "type": "change", "z": "471c23bb.2023c4", "name": "Test Saturation 100", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "100", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 210, "y": 600, "wires": [ [ "d62c5f.9d7beba" ] ] }, { "id": "8d6bae13.7fb988", "type": "change", "z": "471c23bb.2023c4", "name": "Test Brightness 100", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "100", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 210, "y": 640, "wires": [ [ "a5da25c5.2cdff8" ] ] }, { "id": "2e667828.e40f1", "type": "debug", "z": "471c23bb.2023c4", "name": "1.0", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "x": 310, "y": 40, "wires": [] }, { "id": "7c6f19f1.9f6428", "type": "color-convert", "z": "471c23bb.2023c4", "input": "hsv", "output": "rgb", "outputType": "object", "scaleInput": false, "x": 960, "y": 340, "wires": [ [ "79fd6e5b.249ab8" ] ] }, { "id": "64817cc5.242d84", "type": "inject", "z": "471c23bb.2023c4", "name": "Test 2", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 470, "y": 460, "wires": [ [ "2ca2aa7f.098f1e", "9e0e1e91.cab01", "32c490c7.198c2" ] ] }, { "id": "2ca2aa7f.098f1e", "type": "change", "z": "471c23bb.2023c4", "name": "Test Hue 122", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "122", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 550, "y": 560, "wires": [ [ "1662ba98.dcddfd" ] ] }, { "id": "9e0e1e91.cab01", "type": "change", "z": "471c23bb.2023c4", "name": "Test Saturation 100", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "100", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 570, "y": 600, "wires": [ [ "d62c5f.9d7beba" ] ] }, { "id": "32c490c7.198c2", "type": "change", "z": "471c23bb.2023c4", "name": "Test Brightness 100", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "100", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 570, "y": 640, "wires": [ [ "a5da25c5.2cdff8" ] ] } ]
-
@LJ-Mic Schau mal, ob dieser Thread hilfreich ist:
-
@rewenode
Kann das von dir zwar kopieren, aber Blockly fängt damit nichts an. -
@LJ-Mic sagte in was mach ich falsch mit der node-red-contrib-color-convert Node???:
Kann das von dir zwar kopieren, aber Blockly fängt damit nichts an.
Blockly? Was genau machst du? Was kopierst du?
Ich hab jedenfalls nichts mit Blockly gemacht da kenn ich mich nicht mit aus.