Skip to content
  • 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
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. js-controller 5.0.x jetzt für alle User im STABLE!

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.0k

js-controller 5.0.x jetzt für alle User im STABLE!

Scheduled Pinned Locked Moved ioBroker Allgemein
js-controllerstableupgrade
509 Posts 82 Posters 139.0k Views 65 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.
  • PeoplesP Peoples

    @foxriver76
    Ich habe mir gestern jetzt mal die Mühe gemacht, alle möglichen Varianten (Adapterversionen / Js-Controler auf 4 und 5) durch zu spielen mit folgenden Erkenntinissen:

    • Socket / Web / Ws Adapter aktuell, Controller auf V4... (im Webadapter auf intern gestellt und Websockets angehackt)
      Probleme in Vis treten erst nach einiger Zeit auf, betrifft hauptsächlich CSS - Eigentschaften und Bindings
      Beispielsweise habe ich auf meinem "Homescreen" ein graues Kästchen welches ich bei eine Systemmeldung über CSS
      als Overlay über den ganzen Bildschirm strecke. Dies funktioniert Anfangs und nach einer gewissen Zeit wird nur noch der
      Text oben Links wo im Editor das Kästchen mit deaktivierten Css-Eigenschaften liegt angezeigt.

    • Socket / Web / Ws Adapter aktuell ebenso der Controller auf V5 (im Webadapter auf ws gestellt da es sonst nicht geht)
      Das oben beschriebene Problem tritt nach ca. 5 Minuten kontinuierlich auf. Reload des Projekts behebt das Problem für
      wieder ca. 5 Minuten.

    • Socket / Web /Ws Adapter auf den Vorversionen und Controller auf V4
      keine Probleme vorhanden.

    Da mir das Zusammenspiel der einzelnen Adapter nicht klar ist und ich auch nicht sagen kann welchen Einfluss der Js-Controller auf das Thema hat, wüsste ich auch garnicht bei welchem Adapter ich hier ein Issue eröffnen sollte.
    Wenn es mir jedoch jemand erklärt mache ich das natürlich sehr gerne.

    foxriver76F Offline
    foxriver76F Offline
    foxriver76
    Developer
    wrote on last edited by foxriver76
    #286

    @peoples und ob die webinstanz ws oder socketio nutzt macht kein Unterschied im Verhalten? Und irgendwie https im Spiel? ICh kann es nicht nachstellen und es ist nicht trivial herauszufinden woran es liegen könnte, daher möglichst viele Infos bitte. Controller würde ich eher ausschließen, da wie du sagst auch ohne neuen Controller passiert (auch wenn es laut deinen Tests häufiger auftritt).

    Videotutorials & mehr

    Hier könnt ihr mich unterstützen.

    1 Reply Last reply
    0
    • O oFbEQnpoLKKl6mbY5e13

      @foxriver76 sagte in js-controller 5.0.x jetzt für alle User im STABLE!:

      2023-09-26 08:46:11.322  - info: javascript.0 (16432) Start javascript script.js.common._Tests.Test_6
      2023-09-26 08:46:12.429  - info: javascript.0 (16432) script.js.common._Tests.Test_6: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
      2023-09-26 08:46:16.104  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "alexa2.0" can't be copied: {}
      2023-09-26 08:46:17.665  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "hue-sync-box.0" can't be copied: {}
      2023-09-26 08:46:18.086  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "nanoleaf-lightpanels.0" can't be copied: {}
      2023-09-26 08:46:18.088  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "nanoleaf-lightpanels.1" can't be copied: {}
      2023-09-26 08:46:18.102  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "nuki-extended.0" can't be copied: {}
      2023-09-26 08:46:18.215  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.deyeidc.upload" can't be copied: {}
      2023-09-26 08:46:18.243  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.alive" can't be copied: {}
      2023-09-26 08:46:18.243  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.compactMode" can't be copied: {}
      2023-09-26 08:46:18.244  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.connected" can't be copied: {}
      2023-09-26 08:46:18.244  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.cpu" can't be copied: {}
      2023-09-26 08:46:18.245  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.cputime" can't be copied: {}
      2023-09-26 08:46:18.245  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.inputCount" can't be copied: {}
      2023-09-26 08:46:18.246  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.logLevel" can't be copied: {}
      2023-09-26 08:46:18.247  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.memHeapTotal" can't be copied: {}
      2023-09-26 08:46:18.247  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.memHeapUsed" can't be copied: {}
      2023-09-26 08:46:18.248  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.memRss" can't be copied: {}
      2023-09-26 08:46:18.248  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.outputCount" can't be copied: {}
      2023-09-26 08:46:18.249  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.sigKill" can't be copied: {}
      2023-09-26 08:46:18.249  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.uptime" can't be copied: {}
      2023-09-26 08:46:18.271  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "tuya.0" can't be copied: {}
      2023-09-26 08:46:18.276  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "unifi.0" can't be copied: {}
      
      foxriver76F Offline
      foxriver76F Offline
      foxriver76
      Developer
      wrote on last edited by
      #287

      @ofbeqnpolkkl6mby5e13

      (async () => {    
          $('*').each(async id => {
              try { 
                  const state = await getBinaryStateAsync(id)
                  try {
                  if (state) {
                      JSON.parse(state.toString())
                  }
                  } catch (e) {
                      log('Binary state found: ' + id, 'error')
                  }
                  
              } catch {
                  // ignore
              }
          })
      })();
      

      Macht er das oder meckert er da auch?

      Videotutorials & mehr

      Hier könnt ihr mich unterstützen.

      O 1 Reply Last reply
      0
      • foxriver76F foxriver76

        @ofbeqnpolkkl6mby5e13

        (async () => {    
            $('*').each(async id => {
                try { 
                    const state = await getBinaryStateAsync(id)
                    try {
                    if (state) {
                        JSON.parse(state.toString())
                    }
                    } catch (e) {
                        log('Binary state found: ' + id, 'error')
                    }
                    
                } catch {
                    // ignore
                }
            })
        })();
        

        Macht er das oder meckert er da auch?

        O Away
        O Away
        oFbEQnpoLKKl6mbY5e13
        wrote on last edited by
        #288

        @foxriver76 sagte in js-controller 5.0.x jetzt für alle User im STABLE!:

        (async () => {

        Kein Fehler, aber jetzt ist das Log 12MB groß (kein Vorwurf!), weil er jeden State als Binary erkennt.

        foxriver76F 1 Reply Last reply
        0
        • O oFbEQnpoLKKl6mbY5e13

          @foxriver76 sagte in js-controller 5.0.x jetzt für alle User im STABLE!:

          (async () => {

          Kein Fehler, aber jetzt ist das Log 12MB groß (kein Vorwurf!), weil er jeden State als Binary erkennt.

          foxriver76F Offline
          foxriver76F Offline
          foxriver76
          Developer
          wrote on last edited by foxriver76
          #289

          @ofbeqnpolkkl6mby5e13 Kannst du mir das Log bereitstellen?

          Videotutorials & mehr

          Hier könnt ihr mich unterstützen.

          O 1 Reply Last reply
          0
          • foxriver76F foxriver76

            @ofbeqnpolkkl6mby5e13 Kannst du mir das Log bereitstellen?

            O Away
            O Away
            oFbEQnpoLKKl6mbY5e13
            wrote on last edited by
            #290

            @foxriver76

            Selbstverständlich. Wie?

            foxriver76F 1 Reply Last reply
            0
            • O oFbEQnpoLKKl6mbY5e13

              @foxriver76

              Selbstverständlich. Wie?

              foxriver76F Offline
              foxriver76F Offline
              foxriver76
              Developer
              wrote on last edited by
              #291

              @ofbeqnpolkkl6mby5e13 12 MB könnten evtl noch per Mail gehen: moritz.heusinger@gmail.com

              Ansonsten villt eifnach ein File Upload (https://easyupload.io/) und mir den Link schicken falls du keine Bedenken hast

              Videotutorials & mehr

              Hier könnt ihr mich unterstützen.

              O 1 Reply Last reply
              0
              • foxriver76F foxriver76

                @ofbeqnpolkkl6mby5e13 12 MB könnten evtl noch per Mail gehen: moritz.heusinger@gmail.com

                Ansonsten villt eifnach ein File Upload (https://easyupload.io/) und mir den Link schicken falls du keine Bedenken hast

                O Away
                O Away
                oFbEQnpoLKKl6mbY5e13
                wrote on last edited by
                #292

                @foxriver76

                Ist ja nur Text. Gepackt keine 300kb groß.

                foxriver76F 1 Reply Last reply
                0
                • O oFbEQnpoLKKl6mbY5e13

                  @foxriver76

                  Ist ja nur Text. Gepackt keine 300kb groß.

                  foxriver76F Offline
                  foxriver76F Offline
                  foxriver76
                  Developer
                  wrote on last edited by
                  #293

                  @ofbeqnpolkkl6mby5e13 Ok, passt ne keine Binary States würde ich sagen. Das Log für jeden State kommt vom controller bei jedem Aufruf von binary Methoden. Und die Node Version bei dir war welche?

                  Videotutorials & mehr

                  Hier könnt ihr mich unterstützen.

                  O 1 Reply Last reply
                  0
                  • foxriver76F foxriver76

                    @ofbeqnpolkkl6mby5e13 Ok, passt ne keine Binary States würde ich sagen. Das Log für jeden State kommt vom controller bei jedem Aufruf von binary Methoden. Und die Node Version bei dir war welche?

                    O Away
                    O Away
                    oFbEQnpoLKKl6mbY5e13
                    wrote on last edited by
                    #294

                    @foxriver76

                    18.16.0

                    foxriver76F 1 Reply Last reply
                    0
                    • O oFbEQnpoLKKl6mbY5e13

                      @foxriver76

                      18.16.0

                      foxriver76F Offline
                      foxriver76F Offline
                      foxriver76
                      Developer
                      wrote on last edited by foxriver76
                      #295

                      @ofbeqnpolkkl6mby5e13 hm magst du mal innerhalb der 18er Range upgraden um auszuschließen dass es daran liegt - ich vermute wenn nach Vorgaben installiert sollte ein sudo apt update && sudo apt upgrade zur Aktualisierung ausrecihen. Ansonsten bliebe noch das ich probiere es mit deinem Backup nachzustellen, aber aktuell fehlt mir leider jeder Anhaltspunkt.

                      Videotutorials & mehr

                      Hier könnt ihr mich unterstützen.

                      O 1 Reply Last reply
                      0
                      • foxriver76F foxriver76

                        @ofbeqnpolkkl6mby5e13 hm magst du mal innerhalb der 18er Range upgraden um auszuschließen dass es daran liegt - ich vermute wenn nach Vorgaben installiert sollte ein sudo apt update && sudo apt upgrade zur Aktualisierung ausrecihen. Ansonsten bliebe noch das ich probiere es mit deinem Backup nachzustellen, aber aktuell fehlt mir leider jeder Anhaltspunkt.

                        O Away
                        O Away
                        oFbEQnpoLKKl6mbY5e13
                        wrote on last edited by oFbEQnpoLKKl6mbY5e13
                        #296

                        @foxriver76

                        Selber Fehler bei @ilovegym mit 18.17.1 und @FredF mit 18.17.0. Und @Wildbill

                        Siehe:

                        https://forum.iobroker.net/topic/68290/js-controller-5-0-x-jetzt-für-alle-user-im-stable/107?_=1695806792051

                        https://forum.iobroker.net/topic/68290/js-controller-5-0-x-jetzt-für-alle-user-im-stable/128?_=1695806792051

                        foxriver76F 1 Reply Last reply
                        0
                        • O oFbEQnpoLKKl6mbY5e13

                          @foxriver76

                          Selber Fehler bei @ilovegym mit 18.17.1 und @FredF mit 18.17.0. Und @Wildbill

                          Siehe:

                          https://forum.iobroker.net/topic/68290/js-controller-5-0-x-jetzt-für-alle-user-im-stable/107?_=1695806792051

                          https://forum.iobroker.net/topic/68290/js-controller-5-0-x-jetzt-für-alle-user-im-stable/128?_=1695806792051

                          foxriver76F Offline
                          foxriver76F Offline
                          foxriver76
                          Developer
                          wrote on last edited by
                          #297

                          @ofbeqnpolkkl6mby5e13 aktuelle LTS wäre 18.18.0

                          ansonsten wie gesagt, ich kann probieren es mit deinem System nachzustellen, wenn du mir ein Backup zukommen lässt und rein debuggen. Ansonsten keine Idee und wie gesagt eher selten und bei anderen lag es meist an den übergebliebenen Binary States.

                          Videotutorials & mehr

                          Hier könnt ihr mich unterstützen.

                          O 1 Reply Last reply
                          0
                          • foxriver76F foxriver76

                            @ofbeqnpolkkl6mby5e13 aktuelle LTS wäre 18.18.0

                            ansonsten wie gesagt, ich kann probieren es mit deinem System nachzustellen, wenn du mir ein Backup zukommen lässt und rein debuggen. Ansonsten keine Idee und wie gesagt eher selten und bei anderen lag es meist an den übergebliebenen Binary States.

                            O Away
                            O Away
                            oFbEQnpoLKKl6mbY5e13
                            wrote on last edited by oFbEQnpoLKKl6mbY5e13
                            #298

                            @foxriver76

                            Ich bringe mein System erst mal auf Stand.

                            Bin jetzt auf:

                            Node.js: v18.17.1
                            NPM: 9.6.7

                            und beobachte.

                            1 Reply Last reply
                            0
                            • O oFbEQnpoLKKl6mbY5e13

                              @foxriver76

                              Scheint im MQTT-Adapter selbst auch nicht komplett abgefangen zu werden:

                              2023-09-15 00:37:44.321  - error: mqtt.0 (456) Client [DVES_990210] Cannot parse "stat/tasmota_990210/STATUS11": {"StatusSTS":{"Time":"2023-09-14T23:37:34","Uptime":"100T16:49:22","UptimeSec":8700562,"Heap":19,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":24,"POWER":"OFF","Wifi":{"AP":1,"SSId":"***","BSSId":"***","Channel":1,"Mode":"11n","RSSI":62,"Signal":-69,"LinkCount":8,"Downtime":"0T00� stat/t
                              
                              O Away
                              O Away
                              oFbEQnpoLKKl6mbY5e13
                              wrote on last edited by oFbEQnpoLKKl6mbY5e13
                              #299

                              @ofbeqnpolkkl6mby5e13 sagte in js-controller 5.0.x jetzt für alle User im STABLE!:

                              @foxriver76

                              Scheint im MQTT-Adapter selbst auch nicht komplett abgefangen zu werden:

                              2023-09-15 00:37:44.321  - error: mqtt.0 (456) Client [DVES_990210] Cannot parse "stat/tasmota_990210/STATUS11": {"StatusSTS":{"Time":"2023-09-14T23:37:34","Uptime":"100T16:49:22","UptimeSec":8700562,"Heap":19,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":24,"POWER":"OFF","Wifi":{"AP":1,"SSId":"***","BSSId":"***","Channel":1,"Mode":"11n","RSSI":62,"Signal":-69,"LinkCount":8,"Downtime":"0T00� stat/t
                              

                              @foxriver76

                              Um auch noch mal auf dieses Thema zurückzukommen. Ich erhalte für nahezu jedes Tasmota-Gerät eine solche Meldung beim Subscribe.

                              foxriver76F 1 Reply Last reply
                              0
                              • O oFbEQnpoLKKl6mbY5e13

                                @ofbeqnpolkkl6mby5e13 sagte in js-controller 5.0.x jetzt für alle User im STABLE!:

                                @foxriver76

                                Scheint im MQTT-Adapter selbst auch nicht komplett abgefangen zu werden:

                                2023-09-15 00:37:44.321  - error: mqtt.0 (456) Client [DVES_990210] Cannot parse "stat/tasmota_990210/STATUS11": {"StatusSTS":{"Time":"2023-09-14T23:37:34","Uptime":"100T16:49:22","UptimeSec":8700562,"Heap":19,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":24,"POWER":"OFF","Wifi":{"AP":1,"SSId":"***","BSSId":"***","Channel":1,"Mode":"11n","RSSI":62,"Signal":-69,"LinkCount":8,"Downtime":"0T00� stat/t
                                

                                @foxriver76

                                Um auch noch mal auf dieses Thema zurückzukommen. Ich erhalte für nahezu jedes Tasmota-Gerät eine solche Meldung beim Subscribe.

                                foxriver76F Offline
                                foxriver76F Offline
                                foxriver76
                                Developer
                                wrote on last edited by
                                #300

                                @ofbeqnpolkkl6mby5e13 Hm was hat das mit Controller zu tun? Er möchte die Message als JSON parsen, aber es scheint kein vollständiges JSON zu sein. Da hat Controller nix mit zu tun
                                https://github.com/ioBroker/ioBroker.mqtt/blob/4491114d4819ce65d2baf68f063d3eb169390d0d/lib/common.js#L179

                                Videotutorials & mehr

                                Hier könnt ihr mich unterstützen.

                                O 1 Reply Last reply
                                0
                                • foxriver76F foxriver76

                                  @ofbeqnpolkkl6mby5e13 Hm was hat das mit Controller zu tun? Er möchte die Message als JSON parsen, aber es scheint kein vollständiges JSON zu sein. Da hat Controller nix mit zu tun
                                  https://github.com/ioBroker/ioBroker.mqtt/blob/4491114d4819ce65d2baf68f063d3eb169390d0d/lib/common.js#L179

                                  O Away
                                  O Away
                                  oFbEQnpoLKKl6mbY5e13
                                  wrote on last edited by
                                  #301

                                  @foxriver76

                                  Tritt erst seit JS-Controller 5 auf. So wie auch der Fehler mit dem MQTT-Client.

                                  foxriver76F 1 Reply Last reply
                                  0
                                  • O oFbEQnpoLKKl6mbY5e13

                                    @foxriver76

                                    Tritt erst seit JS-Controller 5 auf. So wie auch der Fehler mit dem MQTT-Client.

                                    foxriver76F Offline
                                    foxriver76F Offline
                                    foxriver76
                                    Developer
                                    wrote on last edited by
                                    #302

                                    @ofbeqnpolkkl6mby5e13 was ist der Fehler mit dem MQTT client?

                                    Videotutorials & mehr

                                    Hier könnt ihr mich unterstützen.

                                    O 1 Reply Last reply
                                    0
                                    • foxriver76F foxriver76

                                      @ofbeqnpolkkl6mby5e13 was ist der Fehler mit dem MQTT client?

                                      O Away
                                      O Away
                                      oFbEQnpoLKKl6mbY5e13
                                      wrote on last edited by
                                      #303

                                      @foxriver76

                                      https://github.com/iobroker-community-adapters/ioBroker.mqtt-client/issues/233

                                      foxriver76F 1 Reply Last reply
                                      0
                                      • O oFbEQnpoLKKl6mbY5e13

                                        @foxriver76

                                        https://github.com/iobroker-community-adapters/ioBroker.mqtt-client/issues/233

                                        foxriver76F Offline
                                        foxriver76F Offline
                                        foxriver76
                                        Developer
                                        wrote on last edited by
                                        #304

                                        @ofbeqnpolkkl6mby5e13 das kommt durch Controller v5 - ja.

                                        Aber bei der JSON parse Geschichte sollte das absolut keinen Einfluss haben.

                                        Videotutorials & mehr

                                        Hier könnt ihr mich unterstützen.

                                        O 1 Reply Last reply
                                        0
                                        • foxriver76F foxriver76

                                          @ofbeqnpolkkl6mby5e13 das kommt durch Controller v5 - ja.

                                          Aber bei der JSON parse Geschichte sollte das absolut keinen Einfluss haben.

                                          O Away
                                          O Away
                                          oFbEQnpoLKKl6mbY5e13
                                          wrote on last edited by
                                          #305

                                          @foxriver76

                                          Okay.

                                          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
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          608

                                          Online

                                          32.4k

                                          Users

                                          81.4k

                                          Topics

                                          1.3m

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

                                          • Don't have an account? Register

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