Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. ID of type boolean or number is not supported.

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    ID of type boolean or number is not supported.

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @myssv last edited by

      @myssv sagte in ID of type boolean or number is not supported.:

      Hat jemand eine Idee?

      ich denke da kommt nur ein true/false und kein Wert

      1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @myssv last edited by

        @myssv sagte: Hat jemand eine Idee?

        An den Trigger muss eine ID übergeben werden - kein Wert.

        M Homoran 2 Replies Last reply Reply Quote 2
        • M
          myssv @paul53 last edited by

          @paul53 ah verstehe. Also so:

          c32f3630-aca5-4e89-b7f0-24216d774fc9-grafik.png

          Vielen Dank!

          1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @paul53 last edited by

            @paul53 schon wieder 👓 😞

            M 1 Reply Last reply Reply Quote 0
            • M
              myssv @Homoran last edited by

              @homoran ??? Meinst Du mich?

              Homoran 1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @myssv last edited by

                @myssv sagte in ID of type boolean or number is not supported.:

                @homoran ??? Meinst Du mich?

                nöö, mich!

                M 1 Reply Last reply Reply Quote 0
                • M
                  myssv @Homoran last edited by

                  @homoran OK, dann bin ich beruhigt 😏

                  nochmals vielen Dank Euch beiden!

                  1 Reply Last reply Reply Quote 0
                  • haus-automatisierung
                    haus-automatisierung Developer Most Active last edited by

                    Yeah, genau so habe ich mir das vorgestellt 🙂 In der Vergangenheit gab es viel zu viele Scripts mit Wert als Trigger. Daher die Warnung.

                    https://github.com/ioBroker/ioBroker.javascript/issues/1050

                    klein0r created this issue in ioBroker/ioBroker.javascript

                    closed Warn user if trigger pattern is number or boolean #1050

                    Homoran 1 Reply Last reply Reply Quote 1
                    • Homoran
                      Homoran Global Moderator Administrators @haus-automatisierung last edited by

                      @haus-automatisierung sagte in ID of type boolean or number is not supported.:

                      Daher die Warnung.

                      war aber nicht die optimale Formulierung für mich 😞

                      haus-automatisierung 1 Reply Last reply Reply Quote 0
                      • haus-automatisierung
                        haus-automatisierung Developer Most Active @Homoran last edited by

                        @homoran sagte in ID of type boolean or number is not supported.:

                        war aber nicht die optimale Formulierung für mich

                        Das zu ändern ist ja super einfach - Vorschlag?

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @haus-automatisierung last edited by

                          @haus-automatisierung sagte in ID of type boolean or number is not supported.:

                          Vorschlag

                          menno - jetzt dachte ich, ich könnte mich mal zurücklehnen....

                          Auf die Gefahr dass das so nicht stimmt:
                          Trigger may only refer to IDs

                          oder so

                          haus-automatisierung 1 Reply Last reply Reply Quote 0
                          • haus-automatisierung
                            haus-automatisierung Developer Most Active @Homoran last edited by

                            @homoran Das Problem ist, dass aktuell nur der Typ geprüft werden kann.

                            Theoretisch könnte man auch noch schauen, ob es wirklich eine gültige Objekt-ID ist, aber (je nach Reihenfolge) in den User-Scripts könnte das zu Problemen führen.

                            Daher aktuell die Meldung, dass number oder boolean nicht erlaubt ist - weil: Das ist garantiert keine gültige Objekt-ID. Also wenn man einen String oder einen regulären Ausdruck zu einer ID übergibt, welche es gar nicht gibt (z.B. 'käsekuchen'). Dann wird sich der Adapter nicht beschweren.

                            Wäre also der Datenpunkt vom Typ "string" und man nimmt als Trigger "Wert von Objekt-ID", dann gibt es keine Beschwerde. Der Wert im State könnte ja auch eine gültige ID zu einem anderen Objekt sein.

                            Ist leider nicht 100% wasserdicht alles. Daher aktuell nur eine kleine Hilfestellung für die User.

                            paul53 Homoran 2 Replies Last reply Reply Quote 0
                            • paul53
                              paul53 @haus-automatisierung last edited by paul53

                              @haus-automatisierung sagte: eine kleine Hilfestellung für die User.

                              Die ich etwas massiver formulieren würde:

                              Error by subscription (trigger): Wrong ID of type boolean or number
                              
                              1 Reply Last reply Reply Quote 1
                              • Homoran
                                Homoran Global Moderator Administrators @haus-automatisierung last edited by Homoran

                                @haus-automatisierung sagte in ID of type boolean or number is not supported.:

                                Daher aktuell nur eine kleine Hilfestellung für die User.

                                mir fehlte hauptsächlich der deutliche Bezug zum Trigger!
                                Als normaler Blockly-User kann ich Subscription nicht zuordnen

                                haus-automatisierung paul53 2 Replies Last reply Reply Quote 0
                                • haus-automatisierung
                                  haus-automatisierung Developer Most Active @Homoran last edited by

                                  @homoran sagte in ID of type boolean or number is not supported.:

                                  mir fehlte hauptsächlich der deutliche Bezug zum Trigger!
                                  Als normaler Blockly-User kann ich Subscription nicht zuordnen

                                  Beim Wording habe ich mich an den anderen (bereits existierenden) Fehlermeldungen orientiert. Die Funktion heißt halt subscribe (on ist ja nur ein alias dafür).

                                  Aber ich bin ganz bei Dir: Den Blockly-Nutzern wird das nicht klar. Nehme ich mal mit auf ToDo.

                                  1 Reply Last reply Reply Quote 0
                                  • paul53
                                    paul53 @Homoran last edited by

                                    @homoran sagte: Als normaler Blockly-User kann ich Subscription nicht zuordnen

                                    So besser?

                                    Homoran 1 Reply Last reply Reply Quote 1
                                    • Homoran
                                      Homoran Global Moderator Administrators @paul53 last edited by

                                      @paul53 sagte:

                                      @homoran sagte: Als normaler Blockly-User kann ich Subscription nicht zuordnen

                                      So besser?

                                      Super!
                                      da wird es allen gerecht!

                                      paul53 1 Reply Last reply Reply Quote 0
                                      • paul53
                                        paul53 @Homoran last edited by

                                        @homoran sagte: da wird es allen gerecht!

                                        PR ist erstellt.

                                        haus-automatisierung 1 Reply Last reply Reply Quote 2
                                        • haus-automatisierung
                                          haus-automatisierung Developer Most Active @paul53 last edited by

                                          @paul53 Danke 🙂 Die Meldung ein paar Zeilen da drüber könntest Du ja analog dazu auch noch anpassen.

                                          paul53 1 Reply Last reply Reply Quote 0
                                          • paul53
                                            paul53 @haus-automatisierung last edited by

                                            @haus-automatisierung sagte: Die Meldung ein paar Zeilen da drüber könntest Du ja analog dazu auch noch anpassen.

                                            Erledigt.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            422
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            24
                                            2158
                                            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