{"id":3911,"date":"2023-05-14T17:52:41","date_gmt":"2023-05-14T15:52:41","guid":{"rendered":"https:\/\/www.sigalou-domotique.fr\/?p=3911"},"modified":"2026-01-02T17:02:04","modified_gmt":"2026-01-02T15:02:04","slug":"relier-freepbx-et-home-assistant","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/de\/relier-freepbx-et-home-assistant","title":{"rendered":"Verbinden von FreePBX und Home Assistant"},"content":{"rendered":"<p>Einmal <a href=\"https:\/\/www.sigalou-domotique.fr\/de\/serveur-sip-local-avec-freepbx-sur-raspberry-pi\/\">FreePBX installiert<\/a>, Wir binden ihn an den Home Assistant.<\/p>\r\n<p><!--more--><\/p>\r\n<h3>Hinzuf\u00fcgen eines Asterisk Managers<\/h3>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3912\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk1.png\" alt=\"\" width=\"447\" height=\"150\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk1.png 447w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk1-300x101.png 300w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><\/p>\r\n<h3>IP-Adresse f\u00fcr Home Assistant zulassen<\/h3>\r\n<p>192.168.1.200 in meinem Beispiel<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3913\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk2.png\" alt=\"\" width=\"770\" height=\"328\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk2.png 770w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk2-600x256.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk2-300x128.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk2-768x327.png 768w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/p>\r\n<h3>Beheben von bindadrr in \/etc\/asterisk\/manager.conf<\/h3>\r\n<p>Bearbeiten Sie einfach die Datei \/etc\/asterisk\/manager.conf \u00fcber eine SSH-Befehlszeile<\/p>\r\n<blockquote>\r\n<p>nano \/etc\/asterisk\/manager.conf<\/p>\r\n<\/blockquote>\r\n<p>Ersetzen Sie bindaddr = 127.0.0.1 durch bindaddr = 0.0.0.0<\/p>\r\n<p>Fakultativ, wenn man will, kann man \u00fcberpr\u00fcfen, ob <strong>Manager (AMI)<\/strong> gut anzeigt <strong>Yes<\/strong> \u00fcber die Konsole von Asterisk:<\/p>\r\n<blockquote>\r\n<p>asterisk -r<\/p>\r\n<\/blockquote>\r\n<p>Dann stellt er die Frage:<\/p>\r\n<blockquote>\r\n<p>manager show settings<\/p>\r\n<\/blockquote>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3914\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk4.png\" alt=\"\" width=\"352\" height=\"93\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk4.png 352w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk4-300x79.png 300w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/p>\r\n<h3>Installieren der Asterisk-hass-integration<\/h3>\r\n<p>Alles wird in der Erweiterungsdokumentation erl\u00e4utert.<\/p>\r\n<p><a href=\"https:\/\/github.com\/TECH7Fox\/asterisk-hass-integration\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/TECH7Fox\/asterisk-hass-integration<\/a><\/p>\r\n<h3>Asterisk-Integration hinzuf\u00fcgen<\/h3>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3698\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/04\/ajouterintegration.png\" alt=\"\" width=\"262\" height=\"53\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3918\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk5.png\" alt=\"\" width=\"398\" height=\"508\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk5.png 398w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk5-235x300.png 235w\" sizes=\"auto, (max-width: 398px) 100vw, 398px\" \/><\/p>\r\n<h3>Identifizieren Sie Ihren Nutzer bei der Integration<\/h3>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3919\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk6.png\" alt=\"\" width=\"312\" height=\"367\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk6.png 312w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk6-255x300.png 255w\" sizes=\"auto, (max-width: 312px) 100vw, 312px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3917\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk3.png\" alt=\"\" width=\"310\" height=\"127\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk3.png 310w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk3-300x123.png 300w\" sizes=\"auto, (max-width: 310px) 100vw, 310px\" \/><\/p>\r\n<h3>Und das ist das Drama.<\/h3>\r\n<p>Aus einem unbekannten Grund werden seit der Version 1.x der Integration die Ausr\u00fcstungen nicht zur\u00fcckverfolgt:<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3922\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk7.png\" alt=\"\" width=\"215\" height=\"163\" \/><\/p>\r\n<p>Wir \u00e4ndern die Version und kehren zur neuen Version zur\u00fcck. <strong>v0.9.8<\/strong><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3925\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk8.png\" alt=\"\" width=\"513\" height=\"417\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk8.png 513w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk8-300x244.png 300w\" sizes=\"auto, (max-width: 513px) 100vw, 513px\" \/><\/p>\r\n<p>Starten Sie Home Assistant<\/p>\r\n<h3>Ger\u00e4te und Entit\u00e4ten verwalten<\/h3>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3926\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk9.png\" alt=\"\" width=\"209\" height=\"159\" \/><\/p>\r\n<p>Und hier, beim Relaunch, erschienen die Ger\u00e4te (1 Server + 3 Zeilen) und die entsprechenden Entit\u00e4ten.<\/p>\r\n<h3>Es gibt eine dedizierte Karte\u00a0<\/h3>\r\n<p>Gehen Sie zu HACS und dann Repository anpassen, finden Sie diese Karte (vom gleichen Autor wie die Integration)<\/p>\r\n<p>https:\/\/github.com\/TECH7Fox\/sip-hass-card<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3928\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk10.png\" alt=\"\" width=\"436\" height=\"255\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk10.png 436w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk10-300x175.png 300w\" sizes=\"auto, (max-width: 436px) 100vw, 436px\" \/><\/p>\r\n<p>Ich habe diese Karte getestet, aber sie erm\u00f6glicht es mir, Anrufe zu t\u00e4tigen und entgegenzunehmen, das interessiert mich nicht, meine Hausautomation telefoniert nicht. Ich werde die von der Asterisk-hass-integration bereitgestellten Informationen verwenden, um einen Anruf zu erkennen.<\/p>\r\n<h3>Welche Informationen werden abgerufen?<\/h3>\r\n<h4>Der Asterisk-Server<\/h4>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3930\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk11.png\" alt=\"\" width=\"517\" height=\"352\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk11.png 517w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk11-300x204.png 300w\" sizes=\"auto, (max-width: 517px) 100vw, 517px\" \/><\/p>\r\n<p>Er gibt mir zwei Informationen, der erste ist bei \u201eSuccess\u201c, wir sind sehr froh, dass wir es geschafft haben, zu diesem Zeitpunkt wei\u00df ich nicht, was, aber solange es bei \u201eSuccess\u201c bleibt, denke ich, dass dies ein gutes Zeichen ist. F\u00fcr die zweite Information, Lastest DTMF Signal, habe ich alle Tasten gedr\u00fcckt, um zu sehen, worauf es sich bezieht, wir werden in der Zeit sehen. Ich werde diesen Text erg\u00e4nzen, wenn ich ihn verstehe.<\/p>\r\n<p>Schlie\u00dflich sehen wir, dass meine drei Zeilen 100, 201 und 203 gut mit dem Server verbunden sind, sehr gut.<\/p>\r\n<h4>Die Linien<\/h4>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3931\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk12.png\" alt=\"\" width=\"502\" height=\"242\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk12.png 502w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk12-300x145.png 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/p>\r\n<h5>Callee<\/h5>\r\n<p>In dieser Entit\u00e4t finden wir die Nummer des Korrespondenten.<\/p>\r\n<p>Die Rufnummer des Anrufers beim Empf\u00e4nger und die Rufnummer des Empf\u00e4ngers beim Anrufer.<\/p>\r\n<h5>Channel<\/h5>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3933\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk14.png\" alt=\"\" width=\"350\" height=\"68\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk14.png 350w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk14-300x58.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\r\n<p>Diese Entit\u00e4t gibt Linkinformationen an. Wenn 100 Telefone bei 201 den gleichen Kanal haben, wissen wir, dass sie miteinander kommunizieren.<\/p>\r\n<h5>Registered<\/h5>\r\n<p>Offensichtlich dient dies dazu, zu \u00fcberpr\u00fcfen, ob die Erweiterung korrekt identifiziert und mit dem Server verbunden ist.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3932\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk13.png\" alt=\"\" width=\"351\" height=\"32\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk13.png 351w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/asterisk13-300x27.png 300w\" sizes=\"auto, (max-width: 351px) 100vw, 351px\" \/><\/p>\r\n<p>Es ist interessant, dies zu haben, um eine Trennung melden zu k\u00f6nnen. Wenn die Erweiterung nicht mehr gespeichert wird, wird der Wert \u201eDeaktiviert\u201c angezeigt. Ich habe festgestellt, dass der Umstieg auf Deaktivieren recht schnell erfolgt, wenn ein Ger\u00e4t getrennt wird.<\/p>\r\n<h5>State\u00a0<\/h5>\r\n<p>Kann folgende Werte annehmen:<\/p>\r\n<p>UNKNOWN | NOT_INUSE | INUSE | BUSY | INVALID | UNAVAILABLE | RINGING | RINGINUSE | ONHOLD<\/p>\r\n<p>Insgesamt habe ich jedoch Folgendes verwendet:<\/p>\r\n<ul>\r\n<li><strong>RINGING<\/strong> Wenn es klingelt<\/li>\r\n<li><strong>INUSE<\/strong> wenn ich kommuniziere (oder wenn der Anrufer klingelt)<\/li>\r\n<li><strong>NOT_INUSE<\/strong> den Rest der Zeit<\/li>\r\n<\/ul>\r\n<h3>Welche konkreten Anwendungen gibt es jetzt?<\/h3>\r\n<p>Wenn wie bei mir eine der Linien der Pf\u00f6rtner ist, kann man sich vorstellen:<\/p>\r\n<ul>\r\n<li>Die T\u00fcrklingel mit Musik, einer Alexa-Nachricht oder anderen Ton- oder Lichtinformationen an den Portier weiterleiten.<\/li>\r\n<li>Beim Dr\u00fccken der T\u00fcrklingel die Au\u00dfenleuchten einschalten<\/li>\r\n<li>Wenn niemand zu Hause ist, erhalten Sie eine Benachrichtigung am Telefon mit einem Foto der Eingangskamera<\/li>\r\n<\/ul>\r\n<p>&nbsp;<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Une fois FreePBX install\u00e9, on va le lier \u00e0 Home Assistant.<\/p>","protected":false},"author":1,"featured_media":3926,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,53,166],"tags":[93],"class_list":["post-3911","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-domotique","category-home-assistant","category-retex","tag-telephone"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/posts\/3911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/comments?post=3911"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/posts\/3911\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/media\/3926"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/media?parent=3911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/categories?post=3911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/tags?post=3911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}