Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Node-Red
  5. [gelöst] Umwandlung von Objekt in String

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    17
    1
    398

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    4.9k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.3k

[gelöst] Umwandlung von Objekt in String

Scheduled Pinned Locked Moved Node-Red
22 Posts 3 Posters 551 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mickymM mickym

    @claus1985-0 sagte in Umwandlung von Objekt in String:

    Jetzt gibt er mir beim Einschalten auch teilweise nur ON = true ohne Brightness aus..
    Es gibt also wohl beide Fälle.

    Ok dann kannst auch die Brightness setzen - dann wird sie mit der nächsten Brightness ggf. auf den richtigen Wert über schrieben. Dann macht man einen Trigger hinten dran. Ich machs mal kurz.

    be26da8e-6d14-47de-8564-f616cabc5595-image.png

    [
       {
           "id": "78e5c88c.0d9b08",
           "type": "switch",
           "z": "a37484bb.f4a9e8",
           "name": "",
           "property": "payload.On",
           "propertyType": "msg",
           "rules": [
               {
                   "t": "true"
               },
               {
                   "t": "false"
               },
               {
                   "t": "else"
               }
           ],
           "checkall": "true",
           "repair": false,
           "outputs": 3,
           "x": 450,
           "y": 1780,
           "wires": [
               [
                   "8b24d14b.fc4a7"
               ],
               [
                   "648496f9.de89d8"
               ],
               [
                   "39869018.4b8c4"
               ]
           ]
       },
       {
           "id": "d85d77b3.309d98",
           "type": "inject",
           "z": "a37484bb.f4a9e8",
           "name": "Helligkeit geändert",
           "props": [
               {
                   "p": "payload.Brightness",
                   "v": "45",
                   "vt": "num"
               }
           ],
           "repeat": "",
           "crontab": "",
           "once": false,
           "onceDelay": 0.1,
           "topic": "",
           "payloadType": "str",
           "x": 210,
           "y": 1700,
           "wires": [
               [
                   "78e5c88c.0d9b08"
               ]
           ]
       },
       {
           "id": "4a5abaae.3d7494",
           "type": "inject",
           "z": "a37484bb.f4a9e8",
           "name": "Ein",
           "props": [
               {
                   "p": "payload.On",
                   "v": "true",
                   "vt": "bool"
               }
           ],
           "repeat": "",
           "crontab": "",
           "once": false,
           "onceDelay": 0.1,
           "topic": "",
           "x": 260,
           "y": 1780,
           "wires": [
               [
                   "78e5c88c.0d9b08"
               ]
           ]
       },
       {
           "id": "d4e38a8d.f33978",
           "type": "inject",
           "z": "a37484bb.f4a9e8",
           "name": "Aus",
           "props": [
               {
                   "p": "payload.On",
                   "v": "false",
                   "vt": "bool"
               }
           ],
           "repeat": "",
           "crontab": "",
           "once": false,
           "onceDelay": 0.1,
           "topic": "",
           "x": 260,
           "y": 1820,
           "wires": [
               [
                   "78e5c88c.0d9b08"
               ]
           ]
       },
       {
           "id": "3fe1f543.71321a",
           "type": "inject",
           "z": "a37484bb.f4a9e8",
           "name": "Helligkeit geändert",
           "props": [
               {
                   "p": "payload.Brightness",
                   "v": "100",
                   "vt": "num"
               }
           ],
           "repeat": "",
           "crontab": "",
           "once": false,
           "onceDelay": 0.1,
           "topic": "",
           "x": 210,
           "y": 1740,
           "wires": [
               [
                   "78e5c88c.0d9b08"
               ]
           ]
       },
       {
           "id": "648496f9.de89d8",
           "type": "change",
           "z": "a37484bb.f4a9e8",
           "name": "=0",
           "rules": [
               {
                   "t": "set",
                   "p": "payload",
                   "pt": "msg",
                   "to": "0",
                   "tot": "num"
               }
           ],
           "action": "",
           "property": "",
           "from": "",
           "to": "",
           "reg": false,
           "x": 670,
           "y": 1760,
           "wires": [
               [
                   "5590f91.34c2208"
               ]
           ]
       },
       {
           "id": "39869018.4b8c4",
           "type": "change",
           "z": "a37484bb.f4a9e8",
           "name": "",
           "rules": [
               {
                   "t": "set",
                   "p": "payload",
                   "pt": "msg",
                   "to": "payload.Brightness",
                   "tot": "msg"
               }
           ],
           "action": "",
           "property": "",
           "from": "",
           "to": "",
           "reg": false,
           "x": 630,
           "y": 1800,
           "wires": [
               [
                   "5590f91.34c2208"
               ]
           ]
       },
       {
           "id": "8b24d14b.fc4a7",
           "type": "change",
           "z": "a37484bb.f4a9e8",
           "name": "=100",
           "rules": [
               {
                   "t": "set",
                   "p": "payload",
                   "pt": "msg",
                   "to": "100",
                   "tot": "num"
               }
           ],
           "action": "",
           "property": "",
           "from": "",
           "to": "",
           "reg": false,
           "x": 670,
           "y": 1720,
           "wires": [
               [
                   "5590f91.34c2208"
               ]
           ]
       },
       {
           "id": "5590f91.34c2208",
           "type": "trigger",
           "z": "a37484bb.f4a9e8",
           "name": "",
           "op1": "",
           "op2": "",
           "op1type": "nul",
           "op2type": "payl",
           "duration": "100",
           "extend": true,
           "overrideDelay": false,
           "units": "ms",
           "reset": "",
           "bytopic": "all",
           "topic": "topic",
           "outputs": 1,
           "x": 850,
           "y": 1760,
           "wires": [
               [
                   "3714948f.7669bc"
               ]
           ]
       },
       {
           "id": "3714948f.7669bc",
           "type": "debug",
           "z": "a37484bb.f4a9e8",
           "name": "Ergebnis",
           "active": true,
           "tosidebar": true,
           "console": false,
           "tostatus": false,
           "complete": "payload",
           "targetType": "msg",
           "statusVal": "",
           "statusType": "auto",
           "x": 1020,
           "y": 1760,
           "wires": []
       }
    ]
    

    Wenn man das mit Inject Nodes testen will muss man es halt auf 1 s hoch setzen. Wenn aber von der Node 2 Nachrichten kommen, sollten 100s vielleicht ausreichen - ansonsten den Wert halt auf 250 ms erhöhen.

    Claus1985 0C Offline
    Claus1985 0C Offline
    Claus1985 0
    wrote on last edited by
    #21

    @mickym Funktioniert perfekt, danke Dir!!

    mickymM 1 Reply Last reply
    0
    • Claus1985 0C Claus1985 0

      @mickym Funktioniert perfekt, danke Dir!!

      mickymM Online
      mickymM Online
      mickym
      Most Active
      wrote on last edited by
      #22

      @claus1985-0 sagte in Umwandlung von Objekt in String:

      @mickym Funktioniert perfekt, danke Dir!!

      Freut mich! Vielleicht ist NodeRed ohne 20 Programmzeilen doch einfacher. ;)

      Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      Support us

      ioBroker
      Community Adapters
      Donate

      577

      Online

      32.7k

      Users

      82.5k

      Topics

      1.3m

      Posts
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
      ioBroker Community 2014-2025
      logo
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Home
      • Recent
      • Tags
      • Unread 0
      • Categories
      • Unreplied
      • Popular
      • GitHub
      • Docu
      • Hilfe