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.
    • M
      myssv last edited by

      Ich bekomme massenhaft diese Fehlermeldungen:

      javascript.0
      	2022-08-21 11:23:45.042	error	script.js.common.Aqara_Sensoren.Batterie_72:_Temperatur_Terrasse Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:45.010	error	script.js.common.Aqara_Sensoren.Batterie_09:_Wassersensor_Hobbyraum Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:45.005	error	script.js.common.Aqara_Sensoren.Batterie_69:_Temperatur_Kinderzimmer Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:44.995	error	script.js.common.Aqara_Sensoren.Batterie_66:_Temperatur_Wohnzimmer Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:44.990	error	script.js.common.Aqara_Sensoren.Batterie_63:_Temperatur_Tiefkühlschrank Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:44.985	error	script.js.common.Aqara_Sensoren.Batterie_60:_Temperatur_Büro_Sonja Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:44.961	error	script.js.common.Aqara_Sensoren.Batterie_08:_Wassersensor_HWR Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:44.956	error	script.js.common.Aqara_Sensoren.Batterie_57:_Temperatur_Kühlschrank1 Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:44.951	error	script.js.common.Aqara_Sensoren.Batterie_54:_Temperatur_Garage Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:44.946	error	script.js.common.Aqara_Sensoren.Batterie_51:_Temperatur_Kühlschrank2 Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:44.941	error	script.js.common.Aqara_Sensoren.Batterie_48:_Temperatur_Gäste_WC Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:44.937	error	script.js.common.Aqara_Sensoren.Batterie_45:_Temperatur_Büro_Volker Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:44.932	error	script.js.common.Aqara_Sensoren.Batterie_42:_Temperatur_Dachboden Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:44.926	error	script.js.common.Aqara_Sensoren.Batterie_39:_Temperatur_Büro_Sonja Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:44.922	error	script.js.common.Aqara_Sensoren.Batterie_36:_Temperatur_Schlafzimmer Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:44.916	error	script.js.common.Aqara_Sensoren.Batterie_32:_OpenClose_Garagentor Error by subscription: ID of type boolean or number is not supported.
      javascript.0
      	2022-08-21 11:23:44.911	error	script.js.common.Aqara_Sensoren.Batterie_31:_Wassersensor_Badezimmer Error by subscription: ID of type boolean or number is not supported.
      

      Die Scripte sind alle identisch (bis auf die Datenpunkte) und sollen vor leerer Batterie warnen:

      04cc9968-7e39-4336-8544-f73984ae6566-grafik.png

      Hat jemand eine Idee?

      Homoran paul53 2 Replies 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.:

        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

                      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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            837
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

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