Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter rpi2 2.x

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Test Adapter rpi2 2.x

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

      So, mit der alpha.12 geht es bei mir jetzt, soweit ich GPIO Input hardwar-technisch testen kann (mein Setup prellt permanent, weil ich nichts gelötet habe, nur zusammengesteckt g).

      Im alten Code gab es einige Entscheidungen, die ich übernommen habe, z.B. dass GPIO Input debounced wird (wohl auf 30ms per default gesetzt?) oder dass auf fallenden und auf steigenden Pegel reagiert wird. Da hätte ich gerne, dass die Leute mit bestehender Hardware mal testen könnten, ob die GPIO Inputs jetzt so tun, wie erwartet.

      Was vom alten Code (bisher) nicht übernommen werden konnte, sind die Einstellungen für GPIO Outputs... Ich habe es jetzt "einfach" im code implementiert, dass wenn der Ausgang auf "Startwert 1" gestellt wurde, ein "false" zu "GPIO an" und ein "true" zu "GPIO aus" wird. Ist das so ausreichend? Oder kann da was kaputtgehen? -> ich hab ehrlich wenig Ahnung von dem ganzen Krempel. g Bitte also auch Leute mit GPIO Ausgängen und bestehender Hardware mal kurz melden und wenn möglich testen.

      Ich hätte gerne zu beiden Themen ein paar Rückmeldungen, dann würde ich die 2.0.0 ins beta repository schieben.

      Achja, Buttons werden aktuell erstmal nicht unterstützt. Die ganzen ioBroker-states werden entfernt und es gibt, wie beim Input nur den "state" iobroker-state, der true/false wird. Falls da jemand ein setup hat, was er nicht einfach auf "state wird true/false" umbiegen kann, gerne auf github melden und mitdiskutieren. Gerne auch auf Deutsch, ist mir egal. Nur, wenn es geht, soweit wie möglich auf github, damit ich da alles an einem Platz zusammen habe und weiß, was ich tun sollte, falls ich es tatsächlich implementiere.

      L 1 Reply Last reply Reply Quote 0
      • L
        Laser @Garfonso last edited by

        @garfonso Habe die 13 Alpha installiert. Am Raspi GPI Input einen Mikroschalter an +3,3V und Masse als Umschalter gelegt. Das Umschalten wird meist erkannt. Aber nicht immer.


        v6.13.16

        0
        0
        Log-Größe: 2.5 KB

        rpi2.0
        Zeit
        debug
        Nachricht

        rpi2.0
        2024-06-18 18:43:51.237 debug Ignoring change event due to debounce: 0ms < 30.

        rpi2.0
        2024-06-18 18:43:51.237 debug GPIO change on port 24: false

        rpi2.0
        2024-06-18 18:43:51.236 debug Setting state for port 24 to true

        rpi2.0
        2024-06-18 18:43:51.236 debug GPIO change on port 24: true

        rpi2.0
        2024-06-18 18:43:47.535 debug SETSTATE FOR rpi2.0.wlan.wifi_send VALUE = 0

        rpi2.0
        2024-06-18 18:43:47.535 debug ---> POST: for wifi_send in [object Object]

        rpi2.0
        2024-06-18 18:43:47.484 debug SETSTATE FOR rpi2.0.wlan.wifi_received VALUE = 0

        rpi2.0
        2024-06-18 18:43:47.484 debug VALUE: 0 POST: $1*-1

        rpi2.0
        2024-06-18 18:43:47.483 debug ---> POST: $1*-1 for wifi_received in [object Object]

        rpi2.0
        2024-06-18 18:43:47.483 debug -1

        rpi2.0
        2024-06-18 18:43:47.483 debug CURRENT = wlan true

        rpi2.0
        2024-06-18 18:43:47.431 debug SETSTATE FOR rpi2.0.uptime.uptime VALUE = 1389.75

        rpi2.0
        2024-06-18 18:43:47.431 debug ---> POST: for uptime in [object Object]

        rpi2.0
        2024-06-18 18:43:47.431 debug -1

        rpi2.0
        2024-06-18 18:43:47.431 debug CURRENT = uptime true

        rpi2.0
        2024-06-18 18:43:47.380 debug SETSTATE FOR rpi2.0.temperature.soc_temp VALUE = 50.63

        rpi2.0
        2024-06-18 18:43:47.379 debug VALUE: 50634 POST: $1/1000

        rpi2.0
        2024-06-18 18:43:47.379 debug ---> POST: $1/1000 for soc_temp in [object Object]

        rpi2.0
        2024-06-18 18:43:47.379 debug -1

        rpi2.0
        2024-06-18 18:43:47.378 debug CURRENT = temperature true

        rpi2.0
        2024-06-18 18:43:47.328 debug SETSTATE FOR rpi2.0.swap.swap_used VALUE = 0

        rpi2.0
        2024-06-18 18:43:47.328 debug VALUE: 204796 POST: (rpi.swap_total - $1)/1024

        rpi2.0
        2024-06-18 18:43:47.327 debug ---> POST: (rpi.swap_total - $1)/1024 for swap_used in [object Object]

        rpi2.0
        2024-06-18 18:43:47.276 debug SETSTATE FOR rpi2.0.swap.swap_total VALUE = 200

        rpi2.0
        2024-06-18 18:43:47.276 debug VALUE: 204796 POST: $1/1024

        rpi2.0
        2024-06-18 18:43:47.275 debug ---> POST: $1/1024 for swap_total in [object Object]

        rpi2.0
        2024-06-18 18:43:47.275 debug -1

        rpi2.0
        2024-06-18 18:43:47.275 debug CURRENT = swap true

        rpi2.0
        2024-06-18 18:43:47.225 debug SETSTATE FOR rpi2.0.sdcard.sdcard_boot_used VALUE = 63.1

        rpi2.0
        2024-06-18 18:43:47.224 debug VALUE: 64614 POST: $1/1024

        rpi2.0
        2024-06-18 18:43:47.224 debug ---> POST: $1/1024 for sdcard_boot_used in [object Object]

        rpi2.0
        2024-06-18 18:43:47.172 debug SETSTATE FOR rpi2.0.sdcard.sdcard_root_used VALUE = 5537.73

        rpi2.0
        2024-06-18 18:43:47.171 debug VALUE: 5670636 POST: $1/1024

        rpi2.0
        2024-06-18 18:43:47.171 debug ---> POST: $1/1024 for sdcard_root_used in [object Object]

        rpi2.0
        2024-06-18 18:43:47.120 debug SETSTATE FOR rpi2.0.sdcard.sdcard_boot_total VALUE = 509.99

        rpi2.0
        2024-06-18 18:43:47.119 debug VALUE: 522230 POST: $1/1024

        rpi2.0
        2024-06-18 18:43:47.119 debug ---> POST: $1/1024 for sdcard_boot_total in [object Object]

        rpi2.0
        2024-06-18 18:43:47.068 debug SETSTATE FOR rpi2.0.sdcard.sdcard_root_total VALUE = 29433.42

        rpi2.0
        2024-06-18 18:43:47.068 debug VALUE: 30139824 POST: $1/1024

        rpi2.0
        2024-06-18 18:43:47.067 debug ---> POST: $1/1024 for sdcard_root_total in [object Object]

        rpi2.0
        2024-06-18 18:43:47.067 debug -1

        rpi2.0
        2024-06-18 18:43:47.067 debug CURRENT = sdcard true

        rpi2.0
        2024-06-18 18:43:47.019 debug SETSTATE FOR rpi2.0.network.net_send VALUE = 9697631

        rpi2.0
        2024-06-18 18:43:47.019 debug ---> POST: for net_send in [object Object]

        rpi2.0
        2024-06-18 18:43:46.968 debug SETSTATE FOR rpi2.0.network.net_received VALUE = -3624383

        rpi2.0
        2024-06-18 18:43:46.968 debug VALUE: 3624383 POST: $1*-1

        rpi2.0
        2024-06-18 18:43:46.967 debug ---> POST: $1*-1 for net_received in [object Object]

        rpi2.0
        2024-06-18 18:43:46.967 debug -1

        rpi2.0
        2024-06-18 18:43:46.967 debug CURRENT = network true

        rpi2.0
        2024-06-18 18:43:46.916 debug SETSTATE FOR rpi2.0.memory.memory_available VALUE = 1060.83

        rpi2.0
        2024-06-18 18:43:46.916 debug VALUE: 1086292 POST: $1/1024

        rpi2.0
        2024-06-18 18:43:46.915 debug ---> POST: $1/1024 for memory_available in [object Object]

        rpi2.0
        2024-06-18 18:43:46.864 debug SETSTATE FOR rpi2.0.memory.memory_free VALUE = 787.34

        rpi2.0
        2024-06-18 18:43:46.863 debug VALUE: 806240 POST: $1/1024

        rpi2.0
        2024-06-18 18:43:46.863 debug ---> POST: $1/1024 for memory_free in [object Object]

        rpi2.0
        2024-06-18 18:43:46.813 debug SETSTATE FOR rpi2.0.memory.memory_total VALUE = 1846.94

        rpi2.0
        2024-06-18 18:43:46.812 debug VALUE: 1891264 POST: $1/1024

        rpi2.0
        2024-06-18 18:43:46.812 debug ---> POST: $1/1024 for memory_total in [object Object]

        rpi2.0
        2024-06-18 18:43:46.812 debug -1

        rpi2.0
        2024-06-18 18:43:46.812 debug CURRENT = memory true

        rpi2.0
        2024-06-18 18:43:46.812 debug raspberry disabled -> clean up.

        rpi2.0
        2024-06-18 18:43:46.811 debug -1

        rpi2.0
        2024-06-18 18:43:46.811 debug CURRENT = raspberry false

        rpi2.0
        2024-06-18 18:43:46.763 debug SETSTATE FOR rpi2.0.cpu.scaling_governor VALUE = ondemand

        rpi2.0
        2024-06-18 18:43:46.763 debug ---> POST: for scaling_governor in [object Object]

        rpi2.0
        2024-06-18 18:43:46.712 debug SETSTATE FOR rpi2.0.cpu.load15 VALUE = 0.17

        rpi2.0
        2024-06-18 18:43:46.711 debug NAME: load15 VALUE: 0.17

        rpi2.0
        2024-06-18 18:43:46.711 debug MATCHING: 0.17

        rpi2.0
        2024-06-18 18:43:46.659 debug SETSTATE FOR rpi2.0.cpu.load5 VALUE = 0.16

        rpi2.0
        2024-06-18 18:43:46.659 debug NAME: load5 VALUE: 0.16

        rpi2.0
        2024-06-18 18:43:46.659 debug MATCHING: 0.16

        rpi2.0
        2024-06-18 18:43:46.608 debug SETSTATE FOR rpi2.0.cpu.load1 VALUE = 0.18

        rpi2.0
        2024-06-18 18:43:46.608 debug NAME: load1 VALUE: 0.18

        rpi2.0
        2024-06-18 18:43:46.608 debug MATCHING: 0.18

        rpi2.0
        2024-06-18 18:43:46.607 debug ---> POST: for load1,load5,load15 in [object Object]

        rpi2.0
        2024-06-18 18:43:46.488 debug Ignoring change event due to debounce: 13ms < 30.

        rpi2.0
        2024-06-18 18:43:46.487 debug GPIO change on port 24: true

        rpi2.0
        2024-06-18 18:43:46.487 debug Ignoring change event due to debounce: 12ms < 30.

        rpi2.0
        2024-06-18 18:43:46.487 debug GPIO change on port 24: false

        rpi2.0
        2024-06-18 18:43:46.486 debug Ignoring change event due to debounce: 11ms < 30.

        rpi2.0
        2024-06-18 18:43:46.486 debug GPIO change on port 24: true

        rpi2.0
        2024-06-18 18:43:46.484 debug Ignoring change event due to debounce: 9ms < 30.

        rpi2.0
        2024-06-18 18:43:46.484 debug GPIO change on port 24: true

        rpi2.0
        2024-06-18 18:43:46.483 debug Ignoring change event due to debounce: 8ms < 30.

        rpi2.0
        2024-06-18 18:43:46.483 debug GPIO change on port 24: true

        rpi2.0
        2024-06-18 18:43:46.483 debug Ignoring change event due to debounce: 8ms < 30.

        rpi2.0
        2024-06-18 18:43:46.483 debug GPIO change on port 24: false

        rpi2.0
        2024-06-18 18:43:46.482 debug Ignoring change event due to debounce: 7ms < 30.

        rpi2.0
        2024-06-18 18:43:46.482 debug GPIO change on port 24: true

        rpi2.0
        2024-06-18 18:43:46.482 debug Ignoring change event due to debounce: 7ms < 30.

        rpi2.0
        2024-06-18 18:43:46.481 debug GPIO change on port 24: true

        rpi2.0
        2024-06-18 18:43:46.480 debug Ignoring change event due to debounce: 5ms < 30.

        rpi2.0
        2024-06-18 18:43:46.480 debug GPIO change on port 24: false

        rpi2.0
        2024-06-18 18:43:46.479 debug Ignoring change event due to debounce: 4ms < 30.

        rpi2.0
        2024-06-18 18:43:46.479 debug GPIO change on port 24: true

        rpi2.0
        2024-06-18 18:43:46.478 debug Ignoring change event due to debounce: 3ms < 30.

        rpi2.0
        2024-06-18 18:43:46.478 debug GPIO change on port 24: false

        rpi2.0
        2024-06-18 18:43:46.477 debug Ignoring change event due to debounce: 2ms < 30.

        rpi2.0
        2024-06-18 18:43:46.477 debug GPIO change on port 24: false

        rpi2.0
        2024-06-18 18:43:46.476 debug Ignoring change event due to debounce: 1ms < 30.

        rpi2.0
        2024-06-18 18:43:46.475 debug GPIO change on port 24: false

        Garfonso 1 Reply Last reply Reply Quote 0
        • Garfonso
          Garfonso Developer @Laser last edited by

          @laser
          guck mal ob es mit der version, die ich jetzt ins latest geschoben hab (2.0.0) besser geht.

          L S 2 Replies Last reply Reply Quote 0
          • L
            Laser @Garfonso last edited by

            @garfonso Konnte jetzt eine Weile nicht testen. Der Input hängt sich aber nach mehrmaligen Betätigen auf. Output geht.

            1 Reply Last reply Reply Quote 0
            • S
              stoffel67 @Garfonso last edited by

              @garfonso
              ich habe deine …2.0.0alpha.12 installiert, leider ohne Erfolg.
              hilft dir die Fehlermeldung etwas?

              
              rpi2.0
              2024-08-04 14:53:41.678	error	Cannot initialize/setMode GPIO: TypeError: Cannot read properties of undefined (reading 'watch')
              
              rpi2.0
              2024-08-04 14:53:35.165	info	starting. Version 2.0.0-alpha.12 in /opt/iobroker/node_modules/iobroker.rpi2, node: v20.16.0, js-controller: 6.0.9
              
              
              mcm1957 1 Reply Last reply Reply Quote -1
              • mcm1957
                mcm1957 @stoffel67 last edited by

                @stoffel67
                Warum hast du eine alte Alpha und nicht die aktuelle 2.0.0 (aus dem LATEST repo) installiert?

                S 1 Reply Last reply Reply Quote 0
                • S
                  stoffel67 @mcm1957 last edited by

                  @mcm1957
                  Ohh, ich dachte ich hätte so die neueste Version.
                  Wie bekomm ich die aktuellste? Steh irgendwie auf dem Schlauch...

                  mcm1957 1 Reply Last reply Reply Quote 0
                  • mcm1957
                    mcm1957 @stoffel67 last edited by

                    @stoffel67
                    Die 2.0.0 ist vua LATEST / BETA Repositor installierbar

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      stoffel67 @mcm1957 last edited by

                      @mcm1957
                      geht das über die "Katze"?

                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @stoffel67 last edited by

                        @stoffel67

                        Jein. Dort über den Reiter 'npm' nach rpi2 suchen und diese Version installieren.

                        mcm1957 1 Reply Last reply Reply Quote 0
                        • mcm1957
                          mcm1957 @Thomas Braun last edited by

                          Oder temporär das LATEST Repo benutzen

                          S 1 Reply Last reply Reply Quote 0
                          • Winni
                            Winni last edited by

                            Hallo Alle, läuft gut bei mir. Eine Frage zu load1, load5, load15. Was snd das die Werte? Habe da nichts finden können. Bei mir wird z.B. das angezeigt: 0,17, 0,30, 0,24. Die CPU Auslastung der letzten 1,5,15 Minuten? Dafür erscheinen mir die Werte zu gering. Danke

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Winni last edited by

                              @winni sagte in Test Adapter rpi2 2.x:

                              Die CPU Auslastung der letzten 1,5,15 Minuten?

                              Ja. Ist der Wert, den du auch in

                              top
                              

                              siehst.

                              Winni 1 Reply Last reply Reply Quote 1
                              • Winni
                                Winni @Thomas Braun last edited by

                                @thomas-braun Danke Thomas, wundert mich nur dass mein Raspi da so wenig zu tun hat 😉

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stoffel67 @mcm1957 last edited by

                                  @mcm1957
                                  hab jetzt folgende installiert ist das OK:
                                  rpi2@2.0.0-alpha.3

                                  bekomme aber beim start:

                                  host.raspberrypi
                                  2024-08-05 14:25:45.739	error	instance system.adapter.rpi2.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                                  
                                  host.raspberrypi
                                  2024-08-05 14:25:45.738	error	Caught by controller[1]: cat: /sys/class/net/wlan0/statistics/tx_bytes: Datei oder Verzeichnis nicht gefunden
                                  
                                  host.raspberrypi
                                  2024-08-05 14:25:45.736	error	Caught by controller[0]: cat: /sys/class/net/wlan0/statistics/rx_bytes: Datei oder Verzeichnis nicht gefunden
                                  
                                  rpi2.0
                                  2024-08-05 14:25:44.783	error	Cannot read properties of undefined (reading 'setupGpio')
                                  
                                  rpi2.0
                                  2024-08-05 14:25:44.780	error	TypeError: Cannot read properties of undefined (reading 'setupGpio') at Rpi2.initPorts (/opt/iobroker/node_modules/iobroker.rpi2/main.js:117:30) at async Rpi2.onReady (/opt/iobroker/node_modules/iobroker.rpi2/main.js:64:9)
                                  
                                  rpi2.0
                                  2024-08-05 14:25:44.778	error	unhandled promise rejection: Cannot read properties of undefined (reading 'setupGpio')
                                  
                                  rpi2.0
                                  2024-08-05 14:25:44.774	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                                  
                                  mcm1957 1 Reply Last reply Reply Quote 0
                                  • mcm1957
                                    mcm1957 @stoffel67 last edited by

                                    @stoffel67
                                    Nein

                                    Lirs bitte was ich geschrieben habe

                                    2.0.0
                                    Da steht nix von alpha. 2.0.0 ohne jeden Zusatz.
                                    2.0.0.alpha.* isind VOR Versuonen von 2.0.0.

                                    Und im LATEST Repository findest du auch keine alpha Also LATEST Repo aktivieren, nach Updates suchen anklicken und sann solltest du due 2.0.0 normal zu Update beim Adapter angeboten bekommen

                                    Nachher sofort auf STABLE zurückstellen. Keinesfalls allemöglichen Adapter vom LATEST aktualisieren.

                                    S 2 Replies Last reply Reply Quote 0
                                    • S
                                      stoffel67 @mcm1957 last edited by stoffel67

                                      @mcm1957
                                      bei mir gibt es im Repository folgend zwei Einträge
                                      stable : http://download.iobroker.net/sources-dist.json
                                      und
                                      beta : http://download.iobroker.net/sources-dist-latest.json
                                      ich gehe davon aus dass "beta" dann das latest holt?
                                      gehe ich auf "Adapter" kommt: "WARNUNG: Aktuelles Repository ist "beta". Benutzung auf eigene Gefahr!"
                                      dann suche ich den RPI2 Adpater dann bekomme ich
                                      RPI2.jpg
                                      also nix mit "V2.0.0"
                                      was mach ich falsch?

                                      Thomas Braun 1 Reply Last reply Reply Quote 1
                                      • Thomas Braun
                                        Thomas Braun Most Active @stoffel67 last edited by

                                        @stoffel67 sagte in Test Adapter rpi2 2.x:

                                        was mach ich falsch?

                                        Vermutlich lädst du das Repo nicht nochmal frisch. Irgendwo gibt es ein Icon dafür, alternativ in der Kommandzeile

                                        iob update
                                        
                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          stoffel67 @Thomas Braun last edited by

                                          @thomas-braun
                                          OK, hab jetzt nchmal neu installiert und ein upload gemacht...
                                          jetzt kommt:

                                          rpi2.0
                                          2024-08-05 15:42:20.118	error	Cannot initialize/setMode GPIO: TypeError: Cannot read properties of undefined (reading 'watch')
                                          
                                          rpi2.0
                                          2024-08-05 15:42:13.532	info	starting. Version 2.0.0 in /opt/iobroker/node_modules/iobroker.rpi2, node: v20.16.0, js-controller: 6.0.9
                                          

                                          aber der Adapter wird jetzt grün...

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

                                            @stoffel67

                                            Dann knipps das Beta-Repo jetzt besser wieder aus.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            610
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            27
                                            511
                                            71418
                                            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