Cov txheej txheem:

Txoj Kev Yooj Yim Yooj Yim Kom Pib Nrog Tsev Automation Siv DIY Modules: 6 Cov Kauj Ruam
Txoj Kev Yooj Yim Yooj Yim Kom Pib Nrog Tsev Automation Siv DIY Modules: 6 Cov Kauj Ruam

Video: Txoj Kev Yooj Yim Yooj Yim Kom Pib Nrog Tsev Automation Siv DIY Modules: 6 Cov Kauj Ruam

Video: Txoj Kev Yooj Yim Yooj Yim Kom Pib Nrog Tsev Automation Siv DIY Modules: 6 Cov Kauj Ruam
Video: Leej Muam Dai Siab official audio by Dang Thao & J Vang 2024, Hlis ntuj nqeg
Anonim
Txoj hauv kev yooj yim heev ntawm Kev Pib Nrog Tsev Automation Siv DIY Modules
Txoj hauv kev yooj yim heev ntawm Kev Pib Nrog Tsev Automation Siv DIY Modules

Kuv zoo siab heev thaum kuv txiav txim siab sim ntxiv qee qhov DIY sensors rau tus pabcuam hauv tsev. Siv ESPHome yog qhov yooj yim heev thiab hauv kab ntawv no, peb yuav kawm paub tswj hwm tus pin GPIO thiab tseem tau txais cov ntsuas kub thiab av noo los ntawm lub wireless wireless, los ntawm kev siv Home Assistant. Qhov zoo tshaj plaws yog tias nws tsis xav tau ib qho chaws yuav tsum tau sau raws li nws ua qhov no tau txais.

Kauj ruam 1: Saib Video

Nws yog qhov yooj yim dua kom pom txhua yam ua tiav los ntawm cov vis dis aus ua ntej thiab yog vim li cas kuv thiaj xav kom saib cov vis dis aus qhia saum toj no kom tau txais lub tswv yim ntawm txhua yam ua haujlwm li cas. Cov ntawv no tsuas yog muaj cov kauj ruam tseem ceeb xav tau los ua koj tus kheej.

Kauj ruam 2: Nruab ESPHome

Ua ntej tshaj, peb yuav tsum teeb tsa ESPHome ntxiv rau hauv Tus Pab Tsev. Nkag mus rau lub khw muag khoom ntxiv los ntawm kev ua cov hauv qab no:

Hass.io -> Ntxiv -Hauv Khw

Ntxiv qhov URL hauv qab no mus rau lub khw kom nws tuaj yeem pom ESPHome Ntxiv-Ntxiv:

github.com/esphome/hassio

Thaum ua tiav, tsuas yog tshawb rau ESPHome, nyem qhov ntxiv uas qhia pom thiab ntaus lub pob teeb tsa. Kev teeb tsa yuav siv qee lub sijhawm yog li thov muab nws ob peb feeb vim qhov no yuav nyob ntawm koj li kev siv internet. Thaum tau teeb tsa, tsuas yog nyem lub pob pib thiab tos ob peb feeb kom nws pib. Tom qab ntawd, nyem lub pob uas hais tias "Qhib WEB UI" uas yuav coj koj mus rau ESPHome screen.

Kauj ruam 3: Kho lub Rooj Tswjhwm Saib (Node)

Kho lub Rooj Tswjhwm Saib (Node)
Kho lub Rooj Tswjhwm Saib (Node)

Hauv ESPHome, cov cuab yeej raug hu ua nodes, thiab thawj zaug peb yuav tsum tsim ib qho kom nws thiaj li tuaj yeem pib sib txuas lus nrog Tus Pabcuam Hauv Tsev.

Nyem rau khawm ntxiv los tsim qhov tshiab. Tom qab ntawd muab nws lub npe los ntawm kev siv cov cim uas pom ntawm qhov screen. Kuv yuav hu nws "chav nyob". Tom qab ntawd, xaiv hom ntaus ntawv uas yog "WeMos D1 Mini" rau qhov ua piv txwv no. Thaum kawg, ntxiv koj cov ntaub ntawv WiFi network kom lub rooj tsav xwm tuaj yeem txuas rau koj li WiFi network thiab tom qab ntawd nyem "SUBMIT" los tsim lub node.

ESPHome xav tau rov pib dua tom qab tsim qhov tshiab. Qhov no tuaj yeem ua tiav los ntawm kev mus rau hass.io -> ESPHome thiab tom qab ntawd nyem RESTART khawm. Muab nws ob peb feeb thiab tom qab ntawd qhib WEB UI.

Tam sim no peb yuav tsum teeb tsa qhov no kom peb tuaj yeem tswj hwm LED uas txuas nrog tus pin D2. ESPHome lub vev xaib muaj txhua cov ntaub ntawv koj xav tau los teeb tsa cov khoom sib txawv thiab vim tias peb yuav tswj hwm tus lej GPIO, peb tuaj yeem siv cov piv txwv teeb tsa cov ntaub ntawv los ntawm nplooj ntawv hauv qab no:

esphome.io/components/switch/gpio.html

Nyem rau EDIT khawm rau ntawm qhov chaw thiab tom qab ntawd muab cov ntaub ntawv teeb tsa thiab hloov kho nws raws li qhia hauv daim duab thiab tom qab ntawd, khaws cov ntawv. Txij li qhov no yog thawj zaug peb tau siv lub rooj tsavxwm nrog ESPHome, peb yuav tsum tau muab tus lej tso rau hauv pawg thawj coj. Thaum qhov no ua tiav, peb tuaj yeem tom qab ntawd cia li upload txhua qhov hloov tshiab wirelessly siv OTA hloov kho tshiab.

Txhawm rau rub tawm tus lej tus kheej, peb xub xav tau los sau nws. Yog li siv cov ntawv qhia zaub mov xaiv los sau cov cai rau ntawm lub. Qhov no yuav siv sijhawm me ntsis thiab nws siv li 100 vib nas this rau kuv. Thaum ua tiav, tsuas yog rub tawm cov ntawv binary. Tom qab ntawd, mus ntsib qhov txuas txuas hauv qab no thiab rub tawm ESPHome lub teeb nyem rau koj lub cev:

github.com/esphome/esphome-flasher/releases

Ob npaug nias rau cov ntawv kom qhib nws. Tom qab ntawd ntsaws rau hauv koj lub rooj tsavxwm, xaiv qhov chaw nres nkoj COM raug, xaiv cov ntaub ntawv binary peb rub tawm thiab tom qab ntawd nyem lub pob nyem. Qhov no yuav rub cov cai rau koj pawg thawj coj saib yog li muab nws ob peb feeb los ua kom tiav. Thaum ua tiav, lub rooj tsavxwm yuav txuas rau koj li Wi -nkaus network thiab koj yuav tuaj yeem pom qhov no hauv cov cav.

Kauj Ruam 4: Ntxiv Node rau Tsev Pabcuam

Ntxiv Node rau Tsev Pabcuam
Ntxiv Node rau Tsev Pabcuam
Ntxiv Node rau Tsev Pabcuam
Ntxiv Node rau Tsev Pabcuam

Tus Pabcuam Tsev yuav txiav txim siab lub rooj tsavxwm thiab muab lus ceebtoom rau koj. Koj tuaj yeem nyem qhov ntawd kom pib lossis koj tuaj yeem mus rau cov hauv qab no:

Configuration -> Kev koom ua ke

Tom qab ntawd koj yuav tuaj yeem pom ntawm qhov, yog li nyem teeb tsa thiab lees paub qhov ntxiv. Tam sim no, txhua yam peb yuav tsum tau ua yog ntxiv nws rau ntawm lub dashboard. Yog li lub taub hau hla mus rau ntu ntu/ntu ntu thiab tom qab ntawv xaiv "Configure UI" kev xaiv los ntawm cov ntawv qhia zaub mov nyob rau sab saum toj sab xis. Tom qab ntawd, nyem khawm Ntxiv, xaiv Cov Chaw thiab tom qab ntawd muab nws lub npe tshiab. Tom qab ntawd koj tuaj yeem siv daim ntawv teev npe los xaiv qhov hloov pauv uas yuav muaj tib lub npe zoo li lub node. Nyem tseg, kaw lub dashboard teeb tsa saib thiab qhov ntawd yog txhua yam koj yuav tsum tau ua. Yog tias koj hloov qhov kev hloov ces LED ntawm lub rooj tsavxwm yuav tsum toggle ib yam thiab lub xeev yuav tshwm rau ntawm lub dashboard.

Kauj Ruam 5: Sib cuam tshuam DHT11 Sensor

Sib cuam tshuam DHT11 Sensor
Sib cuam tshuam DHT11 Sensor
Sib cuam tshuam DHT11 Sensor
Sib cuam tshuam DHT11 Sensor
Sib cuam tshuam DHT11 Sensor
Sib cuam tshuam DHT11 Sensor
Sib cuam tshuam DHT11 Sensor
Sib cuam tshuam DHT11 Sensor

Kuv yuav siv DHT11 lub ntsuas kom tau txais qhov ntsuas kub thiab av noo. Txuas nws mus rau lub rooj tsavxwm los ntawm kev siv daim kab xev siv. Koj thawj zaug yuav tsum luam qhov piv txwv teeb tsa los ntawm ESPHome lub vev xaib siv qhov txuas hauv qab no:

esphome.io/components/sensor/dht.html

Tom qab ntawd, lub taub hau mus rau ESPHome thiab kho qhov teeb tsa rau ntawm qhov los ntawm kev ntxiv teeb tsa. Nco ntsoov hloov tus pin thiab tseem ntxiv lub npe qauv raws li pom hauv daim duab. Thaum ua tiav, tsuas yog nyem lub pob upload thiab tos kom nws ua tiav txhua yam. Nws yuav cia li tsim, suav cov lej thiab tseem xa nws mus rau lub rooj sib tham wirelessly, siv OTA tus yam ntxwv. Thaum ua tiav, koj yuav pom cov ntawv tso tawm thiab pawg thawj coj yuav txuas rau koj lub network.

Kauj Ruam 6: Saib Qhov Kub & Qhov Ntsuas Qhov Ntsuas

Saib Qhov Kub & Vaum Qhov Ntsuas
Saib Qhov Kub & Vaum Qhov Ntsuas
Saib Qhov Kub & Vaum Qhov Ntsuas
Saib Qhov Kub & Vaum Qhov Ntsuas

Qhov tom ntej peb yuav tsum ua yog ntxiv qhov ntsuas qhov ntsuas rau ntawm lub dashboard. Cov kauj ruam no zoo ib yam li ntu yav dhau los. Xaiv qhov Configure UI xaiv los tsim daim npav tshiab, tom qab ntawd muab nws lub npe thiab ntxiv cov chaw raws li pom hauv daim duab. Nyem tseg, tawm ntawm lub vijtsam teeb tsa thiab tom qab ntawd koj yuav tuaj yeem pom cov ntaub ntawv ntsuas ntawm lub vijtsam.

Qhov ntawd yooj yim npaum li cas nws tau pib nrog kev siv tshuab hauv tsev siv ESPHome. Peb yuav txuas ntxiv cuam tshuam cov qauv sib txawv rau tus pab hauv tsev yog li thov txiav txim siab koom nrog peb li YouTube channel vim nws pab peb tsim cov phiaj xwm zoo li no.

YouTube:

Ua tsaug rau koj nyeem!

Pom zoo: