Talaan ng mga Nilalaman:

Controller Un Interrupteur Murale Avec Domoticz Et Google Assistant: 4 Hakbang
Controller Un Interrupteur Murale Avec Domoticz Et Google Assistant: 4 Hakbang

Video: Controller Un Interrupteur Murale Avec Domoticz Et Google Assistant: 4 Hakbang

Video: Controller Un Interrupteur Murale Avec Domoticz Et Google Assistant: 4 Hakbang
Video: SONOFF NSPanel Pro - интерактивная панель умного дома с zigbee шлюзом, первое знакомство 2024, Hulyo
Anonim
Controller Un Interrupteur Murale Avec Domoticz Et Google Assistant
Controller Un Interrupteur Murale Avec Domoticz Et Google Assistant

Bonjour à tous, aujourd'hui nous allons voir comment simuler un doigt qui va allumer ou éteindre notre interrupteur murale grâce à un wemos d1 mini, une imprimante 3d (si vous n'en avez pas, vous pouvez toujours faire imprimer ces pièces dans un fab lab ou via internet), un servomoteur, et un raspberry pi avec domoticz dessus. Ibuhos ang metotic domoticz sur un raspberry pi, upang maiwasang magturo:

www.p3x.fr/atelier/solutions-domotique/ins…

Cela peut-être utile si vous n’avez pas d’accès aux câbles, si vous y avez accez, vous pouvez aussi mettre un module sonoff à la place de ce tuto.

Tandaan = Ce tuto est inspiré par la chaine youtube "Les frères Poulain".

Mga gamit

  • Rasperry pi
  • Wemos d1 mini
  • servomoteur comme celui utilisé avec un arduino
  • Un ordinateur

Hakbang 1: Préparer Le Wemos D1 Mini

Préparer Le Wemos D1 Mini
Préparer Le Wemos D1 Mini
Préparer Le Wemos D1 Mini
Préparer Le Wemos D1 Mini
Préparer Le Wemos D1 Mini
Préparer Le Wemos D1 Mini

Ibuhos ang commencer, ilapat ang installer ng higit na madaling sur son wemos d1 mini. Ibuhos, télécharger ESPEasy (que tr've trouve sur github sur https://github.com/letscontrolit/ESPEasy) -> aller sur les releases-> mga bersyon ng cliquez sur les dernières -> la télécharger-> décompresser le fagway.zip.

Télécharger NodeMCU PyFlasher ici.

Brancher le wemos à notre ordinateur -> ouvrir NodeMCU PyFlasher-> sélectionner le fepage installé-> choisir "dual output (DOUT)" et "yes, wipe all data" -> sélectionner nos wemos dans la partie "serial port" -> cliquez sur Flash NodeMCU.

Upang mai-flash ito, ilalagay ang koneksyon sa module ng wifi na ibubuhos sa lapp. Hindi ko ito maipapakita sa loob ng iyong anak na lalaki ip, le module na hindi dapat magawa ang wifi sa laquelle sa isang koneksyon.

Un mot de passe sera demandé. C'est "configesp". Ang pahina ng pahina ay hindi pa nababalitaan ng iba pang mga entrer nos paramètres wifi. Le module redémarre et se connecte sur notre réseau wifi.

Sa peut maintenant brancher le servomoteur sur le wemos, brancher le + (rouge) sa loob ng 5v du wemos, le GNG (noir) sa laang G, at ang kable ng impormasyon tungkol sa 7 (GPIO 13).

Hakbang 2: Déclarer L'ESP Dans Domoticz En Tant Qu'interrupteur

Déclarer L'ESP Dans Domoticz En Tant Qu'interrupteur
Déclarer L'ESP Dans Domoticz En Tant Qu'interrupteur
Déclarer L'ESP Dans Domoticz En Tant Qu'interrupteur
Déclarer L'ESP Dans Domoticz En Tant Qu'interrupteur
Déclarer L'ESP Dans Domoticz En Tant Qu'interrupteur
Déclarer L'ESP Dans Domoticz En Tant Qu'interrupteur

Idinagdag sa iyo ang pinakamagagandang katangian, ibuhos ito, upang maiugnay ito sa aking anak na lalaki:

(l'adresse_de_votre_raspberry): 8080

Ang pagsasaayos ng Aller dans-> matériel-> crée un capteur virtuel-> donner lui un nom, choisir interrupteur comme type puis OK.

Aller sur interrupteur, puis modifier l'interrupteur crée précédemment.

Sur commande sa:

(adresse ip de votre wemos) / control? cmd = Servo, 1, 13, 45

Sur commande off:

(adresse ip de votre wemos) / control? cmd = Servo, 1, 13, 135

Hakbang 3: La 3d

Imprimer la pièce ci-masarap

www.thingiverse.com/thing:4567861

Et celles-ci:

www.thingiverse.com/thing:4567951

Les assemblés, les placé autour de l'interrupteur, puis le brancher, et voilà, le tour est joué.

Tandaan: Ang Ceci peut / doit ay ang iba pang mga adapter at nagpapatunay sa cas.

Hakbang 4: Contrôle Vocale

Contrôle Vocale
Contrôle Vocale
Contrôle Vocale
Contrôle Vocale

Sa peet désormais controler notre interrupteur murale avec domoticz depuis notre téléphone ou ordinateur… Sa nagpapanatili ng komento na nag-iisa ang mga kontrobersyal na kumuha ng katulong sa google, maaari mong suriin ang google home, maaari na lamang téléphone, at mas mabilis na mag-import ng iyong import. si monde Sachez que homebridge ay nakatutugma sa pagkuha ng Siri at Alexa na kadali, maaari kang magturo, sa iyong pansin sa google assistant.

Ibuhos ang cela, entrez les commandes suivantes dans le terminal ou en ssh.

sudo apt update

sudo apt mag-upgrade

Ang mga tampok na ito ay:

github.com/homebridge/homebridge/wiki/Inst…

Sa peut désormais aller sur l'interface homebridge en se connectant sur

(l'adresse_ip_de_votre_raspberry): 8581

(Ang pagkakakilanlan sa mga par défaut ay hindi admin at admin, maaari nating pangunahin ang tagapagpahiwatig ng les changer sa bawat suite).

Maintenant, sa va tapez la commande:

sudo apt i-install ang mosquitto

Afin de faire la liaison entre homebridge et domoticz en mqtt.

Dans domoticz, sa pagsasaayos ng va-> matériel

Choisir un nom

Uri: MQTT Client Gateway na may interface ng LAN.

Malayo ang Adresse: localhost

Port: 1883

Puis laissez comme tel. Et enregistrez.

Maintenant, sa isang koneksyon sa homebridge, mga plug-in na plug-in, sa va rechercher puis installer le plugin:

Homebridge Edomoticz

Server = l'adresse ip de votre raspberry pi

Port = 8080

Room id = 0

Désormais, sa va configurer la liaison entre homebridge at katulong ng Google.

Sa va donc installer le plugin Homebridge Gsh

Maaari kang pumili ng google.

Ensuite, sur l'application google home de son téléphone, on anunsyur sur le + en haut à gauche-> configurer un appareil-> Vous avez déjà configuré des… -> homebridge-> Ce conecter au même compte-> sélectionner l ' interrupteur crée précèdemment.

Sa gayon, on peut désormais controler notre switchbot avec la voix!

Tandaan = Sa ika-14 na taon, maaari mong gawin ito para sa mga projet, kotse sa pamamagitan ng mga kompositor + mga bakante, ilalagay ito sa ibang paraan para sa mga modelisasyon na 3d sa isang interrupteur.

Inirerekumendang: