Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Node-Red
    5. Frage zum Input-Node

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Frage zum Input-Node

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thisoft
      Thisoft last edited by

      Hallo,

      ich versuche jetzt schon eine ganze Weile zum Testen über Input-Nodes boolesche Werte einzugeben. Wenn ich jetzt als String "true" oder eben "false" für den msg.payload des Input-Nodes angebe wird das (verständlicherweise) nicht als Boolean-True oder -False interpretiert.

      Was muss ich denn hier tun?

      Danke und Gruß

      1 Reply Last reply Reply Quote 0
      • ruhr70
        ruhr70 last edited by

        keine Ahnung, ob es eine saubere Lösung gibt.

        ansonsten hinter dem Inject eine Funktions-Node, die auf "true" oder "false" prüft und dann ein "echtes" true/false in msg.payload; schreibt.

        1 Reply Last reply Reply Quote 0
        • Thisoft
          Thisoft last edited by

          ja, Danke. So in etwa hab ich das jetzt gelöst.

          Tja, ich vermisse in JavaScript schon so einiges…

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          737
          Online

          31.7k
          Users

          79.7k
          Topics

          1.3m
          Posts

          2
          3
          1486
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo