Skip to content
timostr edited this page Sep 7, 2019 · 13 revisions

**Stops the doorbell as soon as the door is opened by hand **

Everything starts with an idea! I've bought a new doorbell, which works as a DECT-Phone. By pressing the ring button all phones in my house are ringing. Unfortunately they are ringing until someone picks up the call or the ring time is over (30 Seconds). Often it is faster to walk to the door and open it, than to search a phone. Problem: Now the door is open, however the ringing does not stop... SOLUTION:

  1. Implement a Soft Phone (SIP-Client) at a HomeMatic Raspberry (raspberrymatic) microcomputer.
  2. Add a open/close sensor at the door
  3. Once the sensor indicates door open, the Raspberry soft phone answer call and hangs up
  4. Ringing stops (Problem solved!)

Hardware Requirements

Software Requirements

Installation Instructions

Install Plugin to HomeMatic

  1. Download von https://github.com/timostr/phoneMuter/releases/tag/latest
  2. Backup der Einstellungen: WebUi von HomeMatic aufrufen => Einstellungen => Sicherheit => Backup-Erstellen
  3. Installieren: WebUi von HomeMatic aufrufen => Einstellungen => System Zusatzsoftware => Durchsuchen (unter 1.) geladene Datei auswählen und installieren

Softphone unter der Fritzbox installieren

  1. Oberfläche der Fritzbox im Browser aufrufen, z.B. über “fritz.box”
  2. Software Telefon installieren:
  3. Telefonie => Telefoniegeräte => Neues Gerät einrichten => Telefon (mit und ohne Anrufbeantworter => Weiter => LAN/WLAN (IP-Telefon) => NAME: HomematicFon => Weiter => Benutzername: Homematic => Kennwort: “DEINPASSWORT” (die 3 Werte gut merken/speichern) => Weiter => beliebige Nummer wählen => weiter => [X] nur Anrufe für folgende Rufnummern annehmen: (alles abwählen) => weiter => weiter Konfigurieren des Softphones auf dem Raspi WebUi Aufrufen => Einstellungen => System Zusatzsoftware => Phone-Muter => [Einstellungen ] Folgende Werte eintragen: SIP id: sip:Homematic@fritz.box Registrar: sip:fritz.box Realm: fritz.box Username: Homematic Password: DEINPASSWORT => Save configuration

For people interested to compile on their own

Compile pjsua (SIP-Phone)

  1. Download https://www.pjsip.org/release/2.9/pjproject-2.9.tar.bz2
  2. tar -xjf pjproject-2.9.tar.bz2
  3. cd pjproject-2.9/
  4. ./configure --disable-video --disable-v4l2 --disable-ffmpeg --disable-sdl --disable-openh264 --disable-ssl --disable-sound

Note: I had to disable a lot of interesting stuff, because homematic at the raspberry has only a very limited set of installed libraries

  1. make dep
  2. make
  3. strip pjsua-blablabla

Compile dtach

  1. git clone https://github.com/crigler/dtach
  2. ./configure
  3. make

Credits

I have not done much in comparison with the people/teams/companies below!