Hauv tsab xov xwm kuv yuav nthuav qhia cov txheej txheem ntawm kev ntxiv ua ke tsis raug cai (Tus Txheej Txheem Ua Ntej) rau Tus Pabcuam Hauv Tsev ntawm qhov piv txwv ntawm kev sib xyaw siv eWeLink huab kev pabcuam, thiab ua rau peb muaj peev xwm tswj hwm Sonoff li uas tsis hloov lawv lub firmware.

Tsis ntev los no peb tau qhia tias yuav ua li cas siv IKEA Tradfri Kev Sib Koom Ua Ke. Hnub no peb yuav los qhia koj yuav ua li cas txhawm rau txhim kho kev tsis sib xws.

Tsev pab muaj ntau yam kev koom ua ke uas xa nrog nws, npaj rau kev siv. Lawv tsis tas yuav khoom ntxiv lossis hloov kho los ntawm peb - ​​lawv tau hloov kho ua ke nrog cov kab ke. Ib daim ntawv teev tag nrho muaj tam sim no muaj kev koom ua ke tuaj yeem nrhiav tau ntawm:

https://www.home-assistant.io/integrations/

Txawm hais tias xws li kev sau loj (tam sim no 1540 txuas ntxiv), vim tias muaj kev hloov zuj zus ntawm IoT ntiaj teb, yuav tsum tsim kom muaj kev sib xyaw ntxiv nyob hauv Tus Pab Hauv Tsev, tsis tsuas yog txhawb nqa cov cuab yeej txuas ntxiv, tab sis kuj muaj feem ntsig txog kev siv ntau yam kev pabcuam hauv internet, algorithms, automation, thiab lwm yam. tshiab, tsis muaj kev ua ke, sau los ntawm Tus Pab Cuam Hauv Tsev. Lawv raug hu Cov Khoom Siv Kev Cai. Feem ntau lawv cov chaw cia khoom thiab cov lus qhia nyob hauv GitHub portal.

Kev koom ua ke tsis raug muab tso rau hauv cov ntawv sau cia:

\\ zos \ config \ custom_components

qhov twg hauv zos, yog tus sau npe ntawm Tus Pab Hauv Tsev. Peb yuav tsum saib xyuas peb raws li Cov Neeg Txuas Siv Cov Khoom Siv.

Hauv qab no Kuv yuav nthuav tawm cov txheej txheem ntawm kev ntxiv ua ke tsis raug cai rau Kev Pabcuam Hauv Tsev ntawm tus piv txwv ntawm kev sib xyaw siv eWeLink huab kev pabcuam, thiab vim li ntawd cia peb tswj hwm Sonoff li uas tsis hloov lawv lub firmware. Kuv tau ntxiv Sonoff T4EU1C hloov (tsis muaj nruab nrab cable) rau eWeLink daim ntawv thov.

Yees duab: Banggood

2020-01-26 13_30_24-sonoff t4eu1c

Kuaj configuration:

  • Tsev Pab 0.103.6,
  • Hass.io system (Raspberry Pi 2 B),
  • Samba qhia 9.0 los yog Tus Tsim Kho 4.2

Cov cuab yeej siv:

  • Ua raws li cov Khoom Siv tshwj xeeb, hauv peb qhov teeb meem nws yuav yog ib qho ntawm Sonoff hloov pauv (TX T4EU1C qauv) ntxiv rau thawj daim ntawv thov eWeLink.

Theem ntawm kev nce qib:

  • Yuav tsum paub qhov kev paub ntawm tus pab tsev ua ntej.

Sonoff kev koom ua ke

Cov nplooj ntawv sib xyaw peb yuav siv tau tuaj yeem pom ntawm no:

https://github.com/peterbuga/HASS-sonoff-ewelink

Peb yuav rub tawm cov ntawv tsim nyog los ntawm nws thiab nrhiav cov lus qhia kev teeb tsa, ntxiv rau cov npe ua haujlwm nrog kev txhawb nqa Sonoff.

Vim tias nws yog kev sib koom ua ke nrog kev pabcuam eWeLink, rau nws kom paub siab, koj yuav tsum xub tsim ib tus account hauv eWeLink daim ntawv thov thiab ntxiv ib lub cuab yeej rau nws.

1. rub tawm kev cai tivthaiv "HASS-sonoff-ewelink"

Peb mus rau lub vev xaib:

https://github.com/peterbuga/HASS-sonoff-ewelink

thiab rub tawm .zip archive nrog cov ntaub ntawv tsim nyog. Tom qab ntawv tshem cov ntawv rau disk.

2. Kev luam cov ntaub ntawv

Peb nco ntsoov tias peb tau txhim kho thiab teeb tsa lub ntxiv Samba sib qhia.

Peb nkag mus tshawb cov ntaub ntawv mus rau qhov chaw nyob hauv qab no:

HASSIO \\ \ config \

HASSIO yog lub npe ntawm Tus Pabcuam Hauv Tsev Network qhov chaw peb tau teeb tsa hauv lub qauv Samba sib qhia (neej ntawd yog HASSIO). Peb tab tom tsim daim nplaub tshev tshiab npe nyob ntawd custom_componentsthiab ib qho ntxiv sab hauv - sonoff.

Rau daim nplaub tshev no:

HASSIO \\ \ config \ custom_components \ sonoff \

luam cov ntaub ntawv los ntawm cov ntawv yav dhau los uas tsis tau sau "HASS-sonoff-ewelink-master.zip".

3. Yeem - Saib lub ntaus ntawv qhov chaw nyob hauv tus IP

Sonoff Cov Txheej Txheem Kev Ua Haujlwm ua ke ntawm lub hauv paus ntsiab lus ntawm kev siv internet kev pab los ntawm huab. Hauv qhov no kis no tsis tsim nyog.

Nws tshwm sim, txawm li cas los xij, qhov kev sib xyaw (nom los sis tsis tau) txuas ncaj qha ntawm WiFi rau lub cuab yeej hauv peb lub zos. Tom qab ntawd nws yuav tsum paub tus IP chaw ntawm lub cuab yeej no thiab nws raug pom zoo kom muab qhov chaw nyob no tas mus li hauv peb lub router. Hauv qhov xwm txheej no, nyeem cov ntsiab lus no.

Peb kuaj IP chaw nyob hauv zos ntawm cov khoom siv tau txais kev txhawb nqa los ntawm Tus Pabcuam Hauv Tsev hauv router. Router lub vev xaib feem ntau nyob ntawm:

192.168.0.1

Koj tuaj yeem pom cov kab ntaus khoom los ntawm lub npe.

lus hais:

  • Hauv UPC "Txuas Box" routers, xub nug tus xov tooj kub kom xa cov IPv4 raws tu qauv chaw nyob deb hloov chaw IPv6. Yog tsis muaj nws, koj yuav tsis pom cov khoom tsim nyog hauv cov ntawv qhia ntawm router.

4. Kev hloov kho configuration.yaml

Feem ntau feem ntau hauv GitHub lub vev xaib nrog xaiv cov sib xyaw muaj phau ntawv qhia uas tus sau piav qhia txhua qhov uas yuav tsum tau ntxiv rau cov ntaub ntawv teeb tsa. Seem no yuav tsum tau ntxiv txhawm rau qhib kev sib koom ua ke ua ntej.

cov ntaub ntawv configuration.yaml tuaj yeem hloov kho, thiab lwm yam siv ib lub tshuaj ntxiv Samba sib qhia thiab Nuj Nplhaib thiab Ntxawm. W Samba sib qhia peb tau muaj cov ntaub ntawv ncaj qha, thaum nyob hauv Nuj Nplhaib thiab Ntxawm, cov ntaub ntawv yog kho kho ncaj qha los ntawm Tus Pabcuam Hauv Tsev Tus Neeg Siv interface. Kuv feem ntau siv rau lub hom phiaj no Nuj Nplhaib thiab Ntxawm.

Qhov Xaiv 1 - Samba sib qhia

Tom qab kev teeb tsa lub plugin, cov ntawv "configuration.yaml" yuav tsum nyob hauv daim nplaub tshev:

HASSIO \\ \ config \

Qhov Xaiv 2 - Neeg Kho qhov teeb meem

Tom qab kev txhim kho qhov txuas ntxiv, hauv nws cov chaw nws tau txaus los xaiv "Qhia hauv sidebar" kom muaj kev nkag tau yooj yim rau nws los ntawm cov ntawv qhia zaub mov Tsev PabcuamCov. Ntxiv rau, peb xaiv cov ntaub ntawv teeb tsa, hloov kho nws raws li cov lus qhia tas, thiab txuag.

Txhawm rau ua kom muaj kev sib koom ua ke ntawm Sonoff, ntxiv cov ntu hauv qab no rau hauv cov ntaub ntawv teeb tsa:

sonoff: username: [Username los ntawm eWeLink application] password: [Password los ntawm eWeLink application] scan_interval: 60 grace_period: 600 api_region: 'eu' entity_prefix: tseeb debug: cuav

Tsis yog txhua kab hauv ntu yuav tsum tau, cov lus qhia ntxaws muaj nyob ntawm nplooj ntawv sib xyaw. Tam sim no khaws cov ntaub ntawv thiab rov ua tiav koj Tus Pab Tsev.

5. Saib ua ntej ntawm ntxiv Sonoff pab kiag li lawm

Tom qab rov qab pib pabcuam ntawm Kev Pabcuam Hauv Tsev, tsim nyog tshaj Sonoff cov cuab yeej tam sim no yuav tsum tau muaj rau hauv Cov Khoom:

Sau:

Cov cuab yeej txhim kho -> LUB XEEM

Ntaus ntawv ntxiv nyob rau hauv Kev Koom Ua Ke Hauv Tsev no yuav muaj “sonoff_” thaum pib los ntawm lub neej ntawd (tshwj tsis yog muaj sau nyob hauv configuration.yaml). Yog li ntawd, txhawm rau saib lawv, nws tau txaus hauv daim teb qhov chaw pib ntaus ntawv "sonoff".

6. Ntxiv daim npav rau hauv Tus Pab Hauv Tsev

Hauv cov ntawv qhia zaub mov tseem ceeb "Txheej txheem cej luam", siv cov built-in wizard lossis los ntawm manually kho cov ntawv, peb tuaj yeem ntxiv Sonoff hloov daim npav.

Txhawm rau muab daim npav raws li qhia hauv daim duab, hauv cov ntawv hauv qab "saib:", ntxiv ntu:

views: - title: Salon vaj huam sib luag: txoj kev tseeb: salon_view phaib: - hom: cov npe: hloov pauv show_header_toggle: cov chaw cuav: - chaw: switch.sonoff_1000a68535 icon: mdi: lub teeb hloov npe: 'Hloov'

daim duab: hauvDomus.it


Kev txaus siab ntawm cov thev naus laus zis tshiab uas nws lub tswv yim tsuas tsis muaj hnub kawg! Nws niaj hnub tshawb nrhiav cov cuab yeej tshiab los sim, tsim cov kev daws teeb meem ntse thiab tsim lawv tus kheej. Tus txiv neej kws txawj ntaus kis las uas kuj seev cev zoo kawg! Ps. nws pom yuav ua li cas sib txuas lus nrog Suav Tswb moos, yog li hwm;)

Polish pawg Ntse Lub Tsev los ntawm SmartMe

Polish pab pawg Xiaomi los ntawm SmartMe

Kev txhawb nqa SmartMe

Cov posts sib xws