Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. js-controller 3.1 jetzt im STABLE!

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    js-controller 3.1 jetzt im STABLE!

    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BerndG @apollon77 last edited by BerndG

      @apollon77 Hallo Apollon,
      am 31. Mai wurde dieser Fehler schon einmal gepostet und Du hast darauf geantwortet, aber
      ich verstehe Deine Bemerkung dazu nicht. Ich habe nun Unmengen an Meldungen dieser Art (jede Minute, aber nur Heizthermostate von HM, alle anderen Geräte in FHEM arbeiten normal).
      Wie bekomme ich die weg?.
      Ich habe bereits den FHEM-Adapter auf frühere Versionen gesetzt und auch völlig neu installiert, ohne Ergebnis.
      Vielleicht kannst Du oder jemand anders helfen?
      NPM 6.14.4
      Node.js 12.16.3
      JS-controller 3.16
      FHEM-Adapter 1.3.0

      fhem.0	2020-06-27 18:03:38.559	warn	(18839) This value will not be set in future versions. Please report this to the developer.
      fhem.0	2020-06-27 18:03:38.559	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Weather.measured-temp: The state property "ts" has the wrong type "undefined" (should be "number")!
      fhem.0	2020-06-27 18:03:38.555	warn	(18839) This value will not be set in future versions. Please report this to the developer.
      fhem.0	2020-06-27 18:03:38.554	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.state: The state property "ts" has the wrong type "undefined" (should be "number")!
      fhem.0	2020-06-27 18:03:38.551	warn	(18839) This value will not be set in future versions. Please report this to the developer.
      fhem.0	2020-06-27 18:03:38.550	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.partyTemp: The state property "ts" has the wrong type "undefined" (should be "number")!
      fhem.0	2020-06-27 18:03:38.547	warn	(18839) This value will not be set in future versions. Please report this to the developer.
      fhem.0	2020-06-27 18:03:38.546	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.partyStart: The state property "ts" has the wrong type "undefined" (should be "number")!
      fhem.0	2020-06-27 18:03:38.542	warn	(18839) This value will not be set in future versions. Please report this to the developer.
      fhem.0	2020-06-27 18:03:38.542	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.partyEnd: The state property "ts" has the wrong type "undefined" (should be "number")!
      fhem.0	2020-06-27 18:03:38.538	warn	(18839) This value will not be set in future versions. Please report this to the developer.
      fhem.0	2020-06-27 18:03:38.538	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.measured-temp: The state property "ts" has the wrong type "undefined" (should be "number")!
      fhem.0	2020-06-27 18:03:38.534	warn	(18839) This value will not be set in future versions. Please report this to the developer.
      fhem.0	2020-06-27 18:03:38.533	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.desired-temp: The state property "ts" has the wrong type "undefined" (should be "number")!
      fhem.0	2020-06-27 18:03:38.530	warn	(18839) This value will not be set in future versions. Please report this to the developer.
      fhem.0	2020-06-27 18:03:38.529	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.controlMode: The state property "ts" has the wrong type "undefined" (should be "number")!
      fhem.0	2020-06-27 18:03:38.525	warn	(18839) This value will not be set in future versions. Please report this to the developer.
      fhem.0	2020-06-27 18:03:38.525	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.boostTime: The state property "ts" has the wrong type "undefined" (should be "number")!
      
      1 Reply Last reply Reply Quote 0
      • LausiD
        LausiD last edited by

        @BerndG
        Update FHEM Adapter von github auf V 1.5.2 und alles ist wieder gut 🙂

        Gruß LausiD

        B 1 Reply Last reply Reply Quote 0
        • B
          BerndG @LausiD last edited by

          @LausiD
          Vielen Dank. Die Version fhem@1.5.2 wird noch nicht im IOBroker angeboten und ich bin bei einer produktiven Installation normalerweise vorsichtig mit "beta"-Versionen. Ich kann mir vorstellen, dass das anderen ähnlich geht. Die Installation ist problemlos durchgelaufen und die Warnungen scheinen weg zu sein. Nochmals vielen Dank
          Bernd

          1 Reply Last reply Reply Quote 0
          • S
            saeft_2003 Most Active last edited by

            ich habe meinen js-controller geupdatet von 2.2.8 auf 3.1.6. Jetzt kommen von dem javascript adapter sehr viele error im log. Betroffen sind aber nur zwei Skripte (volumio und unifi controller), diese scheinen aber trotz Error richtig zu laufen. Beide Error kommen im Takt von einer Minute:

            Error unifi controller skript (@liv-in-sky vielleicht weißt du was dazu?):

            javascript.0	2020-08-10 12:17:54.705	error	(11751) at processTicksAndRejections (internal/process/task_queues.js:97:5)
            javascript.0	2020-08-10 12:17:54.698	error	(11751) at runMicrotasks (<anonymous>)
            javascript.0	2020-08-10 12:17:54.698	error	(11751) at script.js.funktioniert.Unifi_controller:394:34
            javascript.0	2020-08-10 12:17:54.690	error	(11751) script.js.funktioniert.Unifi_controller: TypeError: Cannot read property 'enabled' of undefined
            javascript.0	2020-08-10 12:17:34.579	error	(11751) at processTicksAndRejections (internal/process/task_queues.js:97:5)
            javascript.0	2020-08-10 12:17:34.578	error	(11751) at runMicrotasks (<anonymous>)
            javascript.0	2020-08-10 12:17:34.578	error	(11751) at script.js.funktioniert.Unifi_controller:394:34
            javascript.0	2020-08-10 12:17:34.577	error	(11751) script.js.funktioniert.Unifi_controller: TypeError: Cannot read property 'enabled' of undefined
            javascript.0	2020-08-10 12:17:14.611	error	(11751) at processTicksAndRejections (internal/process/task_queues.js:97:5)
            javascript.0	2020-08-10 12:17:14.611	error	(11751) at runMicrotasks (<anonymous>)
            javascript.0	2020-08-10 12:17:14.611	error	(11751) at script.js.funktioniert.Unifi_controller:394:34
            javascript.0	2020-08-10 12:17:14.610	error	(11751) script.js.funktioniert.Unifi_controller: TypeError: Cannot read property 'enabled' of undefined
            

            Error volumio Skript:

            javascript.0	2020-08-10 12:21:00.074	error	(11751) script.js.funktioniert.Volumio: setForeignState: undefined is not a valid state value
            javascript.0	2020-08-10 12:21:00.055	error	(11751) script.js.funktioniert.Volumio: setForeignState: undefined is not a valid state value
            javascript.0	2020-08-10 12:21:00.045	error	(11751) script.js.funktioniert.Volumio: setForeignState: undefined is not a valid state value
            javascript.0	2020-08-10 12:20:40.051	error	(11751) script.js.funktioniert.Volumio: setForeignState: undefined is not a valid state value
            javascript.0	2020-08-10 12:20:40.045	error	(11751) script.js.funktioniert.Volumio: setForeignState: undefined is not a valid state value
            javascript.0	2020-08-10 12:20:40.040	error	(11751) script.js.funktioniert.Volumio: setForeignState: undefined is not a valid state value
            

            export volumio skript:

            volumio blockly.txt

            J.A.R.V.I.S. 1 Reply Last reply Reply Quote 0
            • J.A.R.V.I.S.
              J.A.R.V.I.S. Developer @saeft_2003 last edited by

              @saeft_2003 Du scheinst in deinem ersten Skript nicht zu prüfen, ob das Objekt, von dem du die Eigenschaft enable haben möchtest, überhaupt existiert.

              Im zweiten Skript versuchst du einen State zu setzen, prüfst aber vorher nicht, ob der State, den du zu setzen versucht, existiert. Und wenn du versucht einen undefined State zu setzen, läufst du in einen Fehler.

              S 1 Reply Last reply Reply Quote 0
              • S
                saeft_2003 Most Active @J.A.R.V.I.S. last edited by

                @J-A-R-V-I-S

                Danke. Wegen dem unifi skript muss ich mal @liv-in-sky fragen weil das ist von ihm und nicht von mir von javascript direkt habe ich leider nicht wirklich Ahnung 😞

                beim volumio skript musste ich folgendes deaktivieren, jetzt läuft es ohne Error. Das Problem ist wahrscheinlich das in der json die mit request geholt wird der wert leer ist. Wie könnte ich hier abfragen ob der Wert leer ist oder nicht bevor ich diesen schreiben will?

                Unbenannt.jpg

                J.A.R.V.I.S. liv-in-sky Basti97 3 Replies Last reply Reply Quote 0
                • J.A.R.V.I.S.
                  J.A.R.V.I.S. Developer @saeft_2003 last edited by

                  @saeft_2003 ja, du musst prüfen ob der Wert existiert, bevor du ihn schreibst.

                  S 1 Reply Last reply Reply Quote 0
                  • liv-in-sky
                    liv-in-sky @saeft_2003 last edited by

                    @saeft_2003

                    hatte bei mir auch die script unter dem neuen js-controller laufen

                    dieser enabled fehler scheint daran zu liegen, dass du beim holen des WLANs einen fehler hast - kopiere mal die zeile 394 und poste sie mir mal - .enabled ist im json, das zurückkommt , wenn der WLAN status abgefragt wird - ist da evtl im setting ein fehler ?

                    eigentlich supporte ich das script nicht mehr - es gibt doch jetzt den adapter dafür - ich selbst nutze es auch nicht mehr

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      saeft_2003 Most Active @liv-in-sky last edited by

                      @liv-in-sky

                      Ah stimmt von dem neuen Adapter hab ich schon gehört. Hab ihn installiert und läuft. Ich denke ich werde heute Abend alles umstellen auf den Adapter, dann ist das Skript Geschichte.

                      Trotzdem vielen Dank!

                      liv-in-sky 1 Reply Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @saeft_2003 last edited by

                        @saeft_2003

                        ist besser so - ich glaube es gibt in dem thread auch beispiele für die anwesenheitsabfrage - ich glaube, ich habe das von @dslraser genommen

                        1 Reply Last reply Reply Quote 0
                        • S
                          saeft_2003 Most Active @J.A.R.V.I.S. last edited by

                          @J-A-R-V-I-S sagte in js-controller 3.1 jetzt im STABLE!:

                          @saeft_2003 ja, du musst prüfen ob der Wert existiert, bevor du ihn schreibst.

                          Und wie prüfe ich den Wert am besten das er existiert? So gehts rigendwie nicht...

                          Unbenannt.jpg

                          Das ist die json die Ausgewertet wird:

                          {"status":"stop","position":0,"title":"Antenne Bayern","albumart":"http://cdn-profiles.tunein.com/s42824/images/logoq.png?t=151377","uri":"http://stream.antenne.de/antenne/stream/mp3?aw_0_1st.playerid=tunein.com","trackType":"webradio","seek":250,"samplerate":"","bitdepth":"","channels":0,"random":false,"repeat":null,"repeatSingle":false,"consume":false,"volume":25,"disableVolumeControl":false,"mute":false,"stream":"webradio","updatedb":false,"volatile":false,"service":"webradio"}
                          
                          Homoran 1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @saeft_2003 last edited by

                            @saeft_2003 bitdepth != bitdepht

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              saeft_2003 Most Active @Homoran last edited by

                              @Homoran

                              != kenne ich von der VIS, aber bei dem blockly gibt es kein !=

                              oder habe ich dich falsch verstanden?

                              Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @saeft_2003 last edited by

                                @saeft_2003 Er wollte auf den Schreibfehler im Blockly aufmerksam machen.

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

                                  @saeft_2003 sagte in js-controller 3.1 jetzt im STABLE!:

                                  habe ich dich falsch verstanden?

                                  Ja 😉

                                  Du hast einen Tippfehler
                                  Das Wort heisst Bitdepth und nicht bitdepht

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    saeft_2003 Most Active @Homoran last edited by

                                    @Homoran

                                    OK dann war ich auf dem Schlauch gestanden, das Problem ist das tue ich immer noch. Wie kommt ihr darauf das es groß geschrieben werden muss? In der json ist es auch klein geschrieben.

                                    Thomas Braun Dr. Bakterius Homoran 3 Replies Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @saeft_2003 last edited by

                                      @saeft_2003 😄 th ht

                                      1 Reply Last reply Reply Quote 0
                                      • Dr. Bakterius
                                        Dr. Bakterius Most Active @saeft_2003 last edited by Dr. Bakterius

                                        @saeft_2003 Nicht die Klein- / Großschreibung ist das Problem, sondern die letzten zwei Buchstaben! Da hast du einen Dreher drin...

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          saeft_2003 Most Active last edited by

                                          shame on me 😰

                                          kaum schreibt man es richtig, geht es auch 😂 ich hatte es mir dreimal angeschaut aber einfach nicht gesehen.

                                          Danke 👍

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

                                            @saeft_2003 sagte in js-controller 3.1 jetzt im STABLE!:

                                            Wie kommt ihr darauf das es groß geschrieben werden muss?

                                            Das Handy meinte das, ich nicht! 😉

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            947
                                            Online

                                            31.7k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            js-controller
                                            38
                                            100
                                            24811
                                            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