Navigation

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

    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

    Test Adapter doorio v2.1.2

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

      Neue Version v1.0.3
      Keine Änderungen in der Funktion, habe den Adapter-Core geupdatet.

      Wer den Rufton an der Außenstation nicht möchte und kein schaltbaren Verstärker nutzt, sollte sich meinen neuen Adapter Shell Action anschauen. Mit dem Adapter und einem kleinen Blockly-Skript mute/unmute ich die Sprechstelle mit den States vom DoorIO.

      1 Reply Last reply Reply Quote 0
      • Wal
        Wal Developer last edited by

        Version 1.0.4:
        Den states call_active, call_closed, call_established kann man in der Konfig Objekte zuordnen.

        1 Reply Last reply Reply Quote 1
        • Wal
          Wal Developer last edited by

          Version 1.0.7:
          Änderungen für das stable Release

          1 Reply Last reply Reply Quote 0
          • Wal
            Wal Developer last edited by

            Version 1.0.7 ist jetzt im stable Release verfügbar. Bitte ab jetzt für ein Produktiv-System nicht mehr von Github installieren, sondern auf dem normalen Weg.

            1 Reply Last reply Reply Quote 1
            • M
              MHeymann last edited by MHeymann

              Guten Abend,

              ich versuche gerade von doorpi auf doorio umzusteigen. Baresip läuft bei mir auf einem Raspberry Pi Zero W allerdings nicht mit einem Piface Modul. Über Node Red realisiere ich mqtt, gpio, rfid, pir, Nextion Display und was ich sonst noch so an meiner Klingel anbringen möchte. Bisher funktioniert das ganze soweit auch. Ich kann über mein FritzFon eine Verbindung mit der Freisprechanlage herstellen und wenn ich den Klingelknopf betätige funktioniert das auch umgekehrt.
              Leider habe ich es noch nicht hinbekommen, das baresip beim reboot startet. Ich muss es also immer händisch starten. Die Installation habe ich ohne ein fertiges Image gemacht, da ja der Node Red Part schon soweit fertig ist.

              Wäre toll, wenn mir jemand helfen würde, das baresip automatisch beim Systemstart gestartet wird.

              LG Marko

              Wal 1 Reply Last reply Reply Quote 0
              • Wal
                Wal Developer @MHeymann last edited by Wal

                @MHeymann
                ich habe das als service realisiert:

                sudo nano /etc/systemd/system/baresip.service

                [Unit]
                Description=baresip
                After=syslog.target network.target ntpdate.service
                
                [Service]
                Type=simple
                User=pi
                Group=pi
                ExecStart=/usr/bin/baresip -f /home/pi/.baresip
                
                [Install]
                WantedBy=multi-user.target
                

                sudo systemctl enable baresip
                sudo systemctl start baresip

                M 1 Reply Last reply Reply Quote 0
                • M
                  MHeymann @Wal last edited by

                  @Wal

                  vielen Dank für deine schnelle Hilfe. Hab das eingepflegt. Ich kann baresip jetzt als Dienst starten, stoppen u. Status abfragen. Was leider startet baresip nicht automatisch nach einem Neustart. Muss ich da noch irgendwo was eintragen?

                  Wal 1 Reply Last reply Reply Quote 0
                  • Wal
                    Wal Developer @MHeymann last edited by

                    @MHeymann sagte in Test Adapter doorio v1.0.x:

                    @Wal

                    vielen Dank für deine schnelle Hilfe. Hab das eingepflegt. Ich kann baresip jetzt als Dienst starten, stoppen u. Status abfragen. Was leider startet baresip nicht automatisch nach einem Neustart. Muss ich da noch irgendwo was eintragen?

                    Durch den Befehl "sudo systemctl enable baresip" startet Baresip normalerweise nach jedem Neustart.

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      MHeymann @Wal last edited by

                      @Wal sagte in Test Adapter doorio v1.0.x:

                      systemctl

                      Das dachte ich eigentlich auch. Wenn ich den Pi neustarte und lasse mir den Status von baresip anzeigen bekomme ich u.a. Ausgabe.

                      ● baresip.service - baresip
                         Loaded: loaded (/etc/systemd/system/baresip.service; enabled; vendor preset: enabled)
                         Active: failed (Result: exit-code) since Sat 2020-08-01 17:39:09 CEST; 21min ago
                       Main PID: 521 (code=exited, status=99)
                      
                      Aug 01 17:39:08 Klingel systemd[1]: Started baresip.
                      Aug 01 17:39:08 Klingel baresip[521]: baresip v0.6.1 Copyright (C) 2010 - 2019 Alfred E. Heggestad et al.
                      Aug 01 17:39:09 Klingel baresip[521]: Local network address:  IPv4=wlan0:192.168.2.26  IPv6=wlan0:fd00::b48f:f4bd:29b:a62f
                      Aug 01 17:39:09 Klingel baresip[521]: tcp: sock_bind: bind: Cannot assign requested address (af=10, [fd00::b48f:f4bd:29b:a62f]:5060)
                      Aug 01 17:39:09 Klingel baresip[521]: ua: SIP Transport failed: Cannot assign requested address
                      Aug 01 17:39:09 Klingel baresip[521]: ua: init failed (Cannot assign requested address)
                      Aug 01 17:39:09 Klingel baresip[521]: ua: stop all (forced=1)
                      Aug 01 17:39:09 Klingel systemd[1]: baresip.service: Main process exited, code=exited, status=99/n/a
                      Aug 01 17:39:09 Klingel systemd[1]: baresip.service: Failed with result 'exit-code'.
                      

                      wenn ich sudo systemctl enable baresip erneut ausführe bekomme ich folgende Ausgabe:

                      pi@Klingel:/etc/systemd/system $ sudo systemctl enable baresip
                      Synchronizing state of baresip.service with SysV service script with /lib/systemd/systemd-sysv-install.
                      Executing: /lib/systemd/systemd-sysv-install enable baresip
                      update-rc.d: error: baresip Default-Start contains no runlevels, aborting.
                      

                      Nach Eingabe von "systemctl start baresip" und "systemctl status baresip" funktioniert baresip.

                      ● baresip.service - baresip
                         Loaded: loaded (/etc/systemd/system/baresip.service; enabled; vendor preset: enabled)
                         Active: active (running) since Sat 2020-08-01 18:06:55 CEST; 4s ago
                       Main PID: 865 (baresip)
                         CGroup: /system.slice/baresip.service
                                 └─865 /usr/bin/baresip -f /home/pi/.baresip
                      
                      Aug 01 18:06:55 Klingel baresip[865]: Populated 1 audio filter
                      Aug 01 18:06:55 Klingel baresip[865]: Populated 1 audio filter
                      Aug 01 18:06:55 Klingel baresip[865]: Populated 0 video codecs
                      Aug 01 18:06:55 Klingel baresip[865]: Populated 0 video filters
                      Aug 01 18:06:55 Klingel baresip[865]: baresip is ready.
                      Aug 01 18:06:55 Klingel baresip[865]: Populated 0 video codecs
                      Aug 01 18:06:55 Klingel baresip[865]: Populated 0 video filters
                      Aug 01 18:06:55 Klingel baresip[865]: baresip is ready.
                      Aug 01 18:06:55 Klingel baresip[865]: DoorIOSIP@192.168.2.1: {0/UDP/v4} 200 OK () [1 binding]
                      Aug 01 18:06:55 Klingel baresip[865]: DoorIOSIP@192.168.2.1: {0/UDP/v4} 200 OK () [1 binding]
                      

                      Was mache ich falsch?

                      Wal 1 Reply Last reply Reply Quote 0
                      • Wal
                        Wal Developer @MHeymann last edited by

                        @MHeymann
                        schalt mal ipv6 in der cmdline.txt aus.

                        .... rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait ipv6.disable=1
                        
                        M 1 Reply Last reply Reply Quote 0
                        • M
                          MHeymann @Wal last edited by

                          @Wal

                          Vielen lieben Dank. Jetzt funktioniert der Start beim hochfahren.

                          ... Dann baue ich mal weiter.

                          Danke 🙂

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

                            Na toll neues Problem 😞

                            Im ioBroker bekomme ich folgende Fehlermeldung:

                            doorio.0	2020-08-01 18:50:35.102	error	(10064) uncaughtException: TypeError: Cannot read property 'val' of null
                            doorio.0	2020-08-01 18:50:35.096	error	(10064) TypeError: Cannot read property 'val' of null at send2Server (/opt/iobroker/node_modules/iobroker.doorio/lib/client.js:40:50) at BaresipClient.onStateChange (/opt/iobroker/node_modules
                            doorio.0	2020-08-01 18:50:35.090	error	(10064) uncaught exception: Cannot read property 'val' of null
                            doorio.0	2020-08-01 18:45:34.864	error	(4324) uncaughtException: TypeError: Cannot read property 'val' of null
                            doorio.0	2020-08-01 18:45:34.861	error	at processImmediate (timers.js:658:5)
                            doorio.0	2020-08-01 18:45:34.861	error	at tryOnImmediate (timers.js:676:5)
                            doorio.0	2020-08-01 18:45:34.861	error	at runCallback (timers.js:705:18)
                            doorio.0	2020-08-01 18:45:34.861	error	at Immediate.setImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5388:34)
                            doorio.0	2020-08-01 18:45:34.861	error	at Adapter.emit (events.js:198:13)
                            doorio.0	2020-08-01 18:45:34.861	error	at Adapter.adapter.on (/opt/iobroker/node_modules/iobroker.doorio/main.js:35:16)
                            doorio.0	2020-08-01 18:45:34.861	error	at BaresipClient.onStateChange (/opt/iobroker/node_modules/iobroker.doorio/lib/client.js:37:41)
                            doorio.0	2020-08-01 18:45:34.861	error	at send2Server (/opt/iobroker/node_modules/iobroker.doorio/lib/client.js:40:50)
                            doorio.0	2020-08-01 18:45:34.861	error	(4324) TypeError: Cannot read property 'val' of null
                            

                            und der baresip Status dazu:

                            
                            ● baresip.service - baresip
                               Loaded: loaded (/etc/systemd/system/baresip.service; enabled; vendor preset: enabled)
                               Active: active (running) since Sat 2020-08-01 18:28:56 CEST; 18min ago
                             Main PID: 479 (baresip)
                               CGroup: /system.slice/baresip.service
                                       └─479 /usr/bin/baresip -f /home/pi/.baresip
                            
                            Aug 01 18:34:10 Klingel baresip[479]: DoorIOSIP@192.168.2.1: {0/UDP/v4} 200 OK () [1 binding]
                            Aug 01 18:34:10 Klingel baresip[479]: DoorIOSIP@192.168.2.1: {0/UDP/v4} 200 OK () [1 binding]
                            Aug 01 18:38:40 Klingel baresip[479]: reg: sip:DoorIOSIP@192.168.2.1: 401 Unauthorized ()
                            Aug 01 18:38:40 Klingel baresip[479]: reg: sip:DoorIOSIP@192.168.2.1: 401 Unauthorized ()
                            Aug 01 18:39:37 Klingel baresip[479]: DoorIOSIP@192.168.2.1: {0/UDP/v4} 200 OK () [1 binding]
                            Aug 01 18:39:37 Klingel baresip[479]: DoorIOSIP@192.168.2.1: {0/UDP/v4} 200 OK () [1 binding]
                            Aug 01 18:44:07 Klingel baresip[479]: reg: sip:DoorIOSIP@192.168.2.1: 401 Unauthorized ()
                            Aug 01 18:44:07 Klingel baresip[479]: reg: sip:DoorIOSIP@192.168.2.1: 401 Unauthorized ()
                            Aug 01 18:44:44 Klingel baresip[479]: DoorIOSIP@192.168.2.1: {0/UDP/v4} 200 OK () [1 binding]
                            Aug 01 18:44:44 Klingel baresip[479]: DoorIOSIP@192.168.2.1: {0/UDP/v4} 200 OK () [1 binding]
                            

                            Was könnte das sein?

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

                              @MHeymann
                              Welche node-Version ist da installiert?

                              which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                              
                              Wal 1 Reply Last reply Reply Quote 0
                              • Wal
                                Wal Developer @MHeymann last edited by

                                @MHeymann
                                die Baresip-Meldungen sind i.O.
                                Evtl. den Adapter auf Debug stellen, um mehr Log-Ausgabe zu erhalten.
                                Diese Fehler kenne ich jetzt nicht.

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

                                  @Thomas-Braun sagte in Test Adapter doorio v1.0.x:

                                  @MHeymann
                                  Welche node-Version ist da installiert?

                                  which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                  

                                  Wie Thomas vermutet, könnte es auch an der Version von node liegen.
                                  Der Adapter ist für Node 10 u. 12, das ist i.M. Standard im ioBroker.

                                  M 1 Reply Last reply Reply Quote 0
                                  • M
                                    MHeymann @Wal last edited by

                                    @Wal

                                    Es ist Node.js v10.22.0 installiert. Debug log schaue ich später mal nach.

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

                                      @MHeymann
                                      Auch richtig?
                                      Die Ausgabe der obigen Befehlskette würde helfen...

                                      Ich würde auch auf node12 gehen.

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

                                        Hier mal die Ausgabe.

                                        root@ioBroker:~# which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                        /usr/bin/nodejs
                                        v10.22.0
                                        /usr/bin/node
                                        v10.22.0
                                        /usr/bin/npm
                                        6.14.6
                                        nodejs:
                                          Installed: 10.22.0-1nodesource1
                                          Candidate: 10.22.0-1nodesource1
                                          Version table:
                                         *** 10.22.0-1nodesource1 500
                                                500 https://deb.nodesource.com/node_10.x bionic/main amd64 Packages
                                                100 /var/lib/dpkg/status
                                             8.10.0~dfsg-2ubuntu0.4 500
                                                500 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
                                             8.10.0~dfsg-2ubuntu0.2 500
                                                500 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
                                             8.10.0~dfsg-2 500
                                                500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
                                        
                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @MHeymann last edited by Thomas Braun

                                          @MHeymann
                                          Man meldet sich nicht als root an.
                                          Unter Ubuntu immer als normaler User und dann bei Notwendigkeit mit sudo den Befehl absetzen.

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

                                            @Thomas-Braun

                                            Ok. Ist meine Testumgebung auf Proxmox. Aber ist ist ja nicht der Fehler oder?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            751
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            door intercom doorpi türsprechstelle
                                            34
                                            583
                                            120852
                                            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