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.
    • wand
      wand @Wal last edited by wand

      @Wal said in Test Adapter doorio v0.0.x:

      @MathiasJ

      sudo apt install python3-pip
      sudo pip3 install pifacecommon
      sudo pip3 install pifacedigitalio
      sudo adduser pi spi
      git clone https://github.com/flyte/pi-mqtt-gpio
      cd pi-mqtt-gpio
      sudo pip3 install pi-mqtt-gpio
      

      Hallo bei mir geht diese Funktion nicht: Es kommt:
      root@raspberrypi:~# git clone https://github.com/flyte/pi-mqtt-gpio
      bash: git: Kommando nicht gefunden.

      Hast du eine Idee?

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

        @wand sagte in Test Adapter doorio v0.0.x:

        @Wal said in Test Adapter doorio v0.0.x:

        @MathiasJ

        sudo apt install python3-pip
        sudo pip3 install pifacecommon
        sudo pip3 install pifacedigitalio
        sudo adduser pi spi
        git clone https://github.com/flyte/pi-mqtt-gpio
        cd pi-mqtt-gpio
        sudo pip3 install pi-mqtt-gpio
        

        Hallo bei mir geht diese Funktion nicht: Es kommt:
        root@raspberrypi:~# git clone https://github.com/flyte/pi-mqtt-gpio
        bash: git: Kommando nicht gefunden.

        Hast du eine Idee?

        Ja habe ich 🙂

        sudo apt install git
        

        Edit: auf Seite eins wäre auch ein fertiges Image füre rpi3/4 ganz oben im ersten Thread.

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

          @Wal
          Ok soweit so gut.
          Jetzt möchte ich aber ohne die Erweiterungsplatine piface arbeiten.
          Was muss ich jetzt alles ändern, wenn ich z.B.
          mit dem GPIO 17 Eingang die SIP-Nummer 50 wählen möchte und wenn jemand die
          Sprechstelle ruft z.B. SIP-Nummer 104 dann soll mir der GPIO 23 Ausgang schalten?

          Vielen Dank!

          Wal 2 Replies Last reply Reply Quote 0
          • Wal
            Wal Developer @wand last edited by Wal

            @wand sagte in Test Adapter doorio v0.0.x:

            @Wal
            Ok soweit so gut.
            Jetzt möchte ich aber ohne die Erweiterungsplatine piface arbeiten.
            Was muss ich jetzt alles ändern, wenn ich z.B.
            mit dem GPIO 17 Eingang die SIP-Nummer 50 wählen möchte und wenn jemand die

            Für GPIOS musst du die config.yml anpassen. Beschreibung hier.
            Der Ruf wird im Adapter eingestellt. Siehe Thread 1.

            Sprechstelle ruft z.B. SIP-Nummer 104 dann soll mir der GPIO 23 Ausgang schalten?

            Das ist z.Z. noch nicht möglich.

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

              @wand sagte in Test Adapter doorio v0.0.x:

              @Wal
              Sprechstelle ruft z.B. SIP-Nummer 104 dann soll mir der GPIO 23 Ausgang schalten?

              Neue Version 0.0.6 auf Github verfügbar, Objekte für Ruf und Verbindung zum erstellen von eigenen Skripten hinzugefügt.

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

                Habe die DTMF Aktionen als Objekte noch eingebunden, um auch sie in Skripten zu nutzen.
                Die Adapter-Version ist auf 1.0.0 gehoben und den Adapter im stable repository angemeldet. Was für eine Aktion damit das Teil bei allen Tests ohne Fehler durchläuft. Meistens saß der Fehler vor dem Bildschirm und hat immer eine Kleinigkeit vergessen.😵
                Mal sehen was noch fehlt. 😧

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

                  Neue Version v1.0.2
                  Die Inputs und Outputs sind über ein Menü auswählbar.

                  doorio.png

                  1 Reply Last reply Reply Quote 1
                  • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            845
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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