Ma ka ʻatikala e hōʻike aku ai au i ke kaʻina o ka hoʻohui 'ana i ka hoʻohui' ole loa (Custom Component) i ka Home Assistant ma ka hoʻohālike o ka hoʻohui ʻana me ka hoʻohana ʻana i nā lawelawe kapuaʻi eWeLink, a ma muli o ka ʻae ʻana iā mākou e kāohi mana i nā polokalamu Sonoff me ka ʻole e hoʻololi i kā lākou firmware.

Ua hōʻike hou mākou pehea e hoʻohana ai i ka Hoʻohui ʻana o IKEA Tradfri Integrasi. I kēia lā mākou e hōʻike ai iā ʻoe pehea e hoʻonohonoho ai i nā Hoʻohui ʻole.

Loaʻa i ka kōkua o ka home he nui no nā Hoʻohui mana i hāʻawi ʻia me ia, ua mākaukau no ka hoʻohana ʻana. ʻAʻole lākou e koi aku i ka hoʻouka ʻia a hoʻonui paha iā mākou - ua hoʻomohou ʻia me ka ʻōnaehana. Hiki ke loaʻa ka papa inoa o nā hoʻohui hoʻohui i kēia manawa ma:

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

ʻOiai ʻo ia ka hōʻiliʻili nui (i kēia manawa 1540 extensions), ma muli o ka hoʻomohala o ka hoʻomohala o ka honua IoT, pono nā mea e hana hou i nā hoʻohui ʻana i loko o ka Home Kākoʻo, ʻaʻole wale e kākoʻo i nā mea ma hope, akā pili pū i ka hoʻohana ʻana i nā lawelawe pūnaewele like ʻole, algorithm, automation, etc. hou, hoʻohui lima ʻole, kākau ʻia e ke Kāma Kokua Home. Kāhea ʻia lākou Nā ʻāpana kūlima. ʻO ka manawa pinepine ʻo kā lākou mau leka uila a me nā ʻōlelo i kau ʻia ma ka waihona ʻo GitHub.

Hoʻonohonoho ʻia nā hoʻohui mea ʻole ʻole i loko o ka papa kuhikuhi:

\\ kūloko \ config \ custom_components

kahi kūloko, ʻo ia ka papa kuhikuhi home o ka home kōkua. Pono mākou e mālama i kā mākou whakahou Component Custom.

Ma lalo iho nei wau e hōʻike ai i ke kaʻina o ka hoʻohui ʻana i nā hoʻopihapiha ʻole ma ka kōkua o ka Home Assistant ma ke ʻano o ka hoʻohui ʻana me ka lawelawe ʻana i ka lawelawe ʻo eWeLink, a ma muli o ka ʻae ʻana iā mākou e kāohi i nā polokalamu Sonoff me ka ʻole o ka hoʻololi ʻana iā lākou firmware. Ua hoʻohui wau i ka hoʻololi ʻana ʻo Sonoff T4EU1C (me ka ʻole o Neall cable) i ka noi eWeLink.

Whakaahua: Banggood

2020-01-26 13_30_24-sonoff t4eu1c

Hoʻoponopono hoʻokolohua:

  • Kōkua Home 0.103.6,
  • Pūnaehana Hass.io (Raspberry Pi 2 B),
  • Ka lauwili Samba 9.0 a i ʻole Configurator 4.2

Mea pono:

  • Wahi a ka Pūnaewele Kūlike kūikawā, ma ko mākou hihia e lilo ia i hoʻokahi Son Son hoʻololi (TX T4EU1C ka hoʻohālike) i hoʻohui ʻia i ka noi eWeLink mua.

Ka pae o ka holomua:

  • Pono ka ʻike kumu kōkua o ka kōkua ʻana i ka home.

Hoʻohui ʻana ʻo Sonoff

Hiki ke ʻike ma ka ʻaoʻao hoʻohui e kau pū ai ma ʻaneʻi:

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

Lawe mākou i nā faila pono mai laila a loaʻa i nā ʻōkuhi hoʻonohonoho, me kahi papa inoa o nā polokalamu Sonoff i kākoʻo ʻia.

No ka mea ka hoʻohui pū ʻana me ka lawelawe eWeLink, no ka mea, i ka noʻonoʻo ʻana, pono ʻoe e hana i ka ʻākana i ka noi ʻana o ka eWeLink a hoʻohui i kahi mea hana iā ia.

1. Pobranie custom component “HASS-sonoff-ewelink”

Hele mākou i ka pūnaewele:

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

a hoʻoiho i ka waihona waihona .zip me nā faila e pono ai. A laila e wehe i ka waihona pūnaewele e pā.

2. ke kope ʻana i nā faila

Hōʻoiaʻiʻo mākou ua hoʻokomo a hoʻonohonoho i ka hoʻohui Kahele Samba.

Hoʻokomo mākou i ka mea hōʻike waihona ma ka helu i hope.

HASSIO \\ \ config \

HASSIO ʻo ia ka inoa o ka ʻōnaehana home kōkua i hoʻonohonoho ʻia i kā mākou hoʻonohonoho Kahele Samba (paʻā HASSIO). Ke kūkulu nei mākou i kahi faila hou i kapa ʻia ma laila lawena maʻamaua hoʻokahi hou i loko - sonoff.

I kēia folder:

HASSIO \\ \ config \ custom_components \ sonoff \

należy skopiować pliki z wcześniej wypakowanego archiwum “HASS-sonoff-ewelink-master.zip”.

3. Ke koho - E nānā i ka helu IP IP o ka'āina

Hana ka Component Customon ʻO Sonoff ma ke kumu o ka hoʻohana 'ana i nā lawelawe pūnaewele i hāʻawi ʻia e ke ao. I kēia mea ʻaʻole pono kēia kumu.

Pēlā nō naʻe, ka hoʻopili pili ʻana i ka hoʻohui (luna a i ʻole paha) ma o ka WiFi ma o ka pūnaewele i kā mākou kikowaena pūnaewele. A laila ua noi e ʻike i ka helu IP o kēia polokalamu a ua hāʻawi ʻia e hāʻawi mau i kēia leka uila i kā mākou alaahi. Ma kēia hihia, heluhelu i kēia kiko.

Ke nānā nei mākou i ka leka uila o ka IP i ka mea i koho ʻia e kākoʻo ʻia e Kākoʻo Kaiāulu i ka mea hana. Loaʻa ka pūnaewele o ka mea kipa ma:

192.168.0.1

Hiki iā ʻoe ke ʻike pinepine i ka laina pākaukau ma o ka inoa.

olelo:

  • W routerach “Connect Box” firmy UPC należy najpierw poprosić przez infolinię o zdalne wgranie protokołu IPv4 zamiast domyślnego IPv6. Bez tego nie znajdziecie odpowiedniej pozycji w menu routera.

4. Palapala hoʻololi.yaml

ʻO ka pinepine pinepine ma ka pūnaewele GitHub me ka hoʻonohonoho pū ʻia ʻana aia kahi manual kahi e wehewehe ai ka mea kākau i ka paukū i ka ʻāpana e pono e hoʻohui ʻia i ka faila hoʻonohonoho. Pono e hoʻohui ʻia kēia ʻāpana e hoʻāla i ka hoʻohui hoʻohui ʻana.

waihona hiki ke hoʻololi ʻia a config.yaml, ma waena me ka hoʻohana ʻana Kahele Samba a me ka Configurator. W Kahele Samba iā mākou i loaʻa i nā faila pololei, ʻoiai i loko Configurator, Hoʻoponopono ʻia nā faila ma o ka home kōkua mea hoʻohana home. Hoʻohana pinepine wau no kēia kumu Configurator.

Ke koho 1 - ka māka Samba

Po zainstalowaniu dodatku, plik “configuration.yaml” powinien znajdujdować się w folderze:

HASSIO \\ \ config \

Ke koho 2 - Configurator

Po zainstalowaniu dodatku, w jego ustawieniach wystarczy zaznaczyć “Show in sidebar”, żeby mieć do niego wygodny dostęp z menu Kōkua kōkua. Eia kekahi, koho mākou i ka faila hoʻonohonoho, hoʻololi iā ia e like me ke koena o nā ʻōlelo, a mālama.

No ka hoʻouluʻana i ka hoʻohui Sonoff, e hoʻohui i ka māhele e pili ana i ka faila hoʻonohonoho:

sonoff: inoa inoa: [Username mai ka noi ʻana eWeLink] password: [Ka ʻōlelo huna mai ka palapala eWeLink] scan_interval: 60 grace_period: 600 api_region: 'ʻokoʻa' entity_prefix: Mau debug: Pono

ʻAʻole koi nā laina āpau o ka pauku, hiki ke loaʻa kahi wehewehe kikoʻī i ka ʻaoʻao hoʻohui. I kēia manawa e mālama i ka faila a hoʻomaka hou i kāu kōkua home.

5. Hōʻikeʻike i nā mea hoʻohui Sonoff

Ma hope o ka hoʻomaka ʻana home Kākoʻo, pono e loaʻa nā polokalamu Sonoff i kēia manawa i nā Entities:

Kikokiko i:

Nā mea hana hoʻomohala -> EKAHI

Urządzenia dodane w tej integracji Home Assistant domyślnie będą miały w nazwie na początku “sonoff_” (chyba, że w configuration.yaml ustawiliśmy inaczej). Dlatego, aby je podejrzeć, wystarczy w polu ʻahahui zacząć pisać “sonoff”.

6. ʻO ka hoʻohui ʻana i nā kāleka ma Kōkua kōkua

W menu głównym “Przegląd”, za pomocą wbudowanego kreatora lub poprzez ręczną edycję pliku, możemy dodać kartę włącznika Sonoff.

Żeby otrzymać kartę jak na zdjęciu, w pliku pod sekcją “views:” należy dodać sekcję:

mau hiʻohiʻona: - ke poʻo inoa: ke kāla Salon: ke ala pono: nā kāleka salon_view: - ke ʻano: ka inoa o nā hui: Luli iā show_header_toggle: mau mea hoʻopunipuni: - ke kauā: switch.sonoff_1000a68535 icon: mdi: inoa māmā-hoʻololi: 'hoʻololi'

kiʻi: inDomus.it


Hoʻohuli maikaʻi i nā ʻenehana hou i pau ʻole nā ​​manaʻo. ʻIke mau ʻo ia i nā mea hana hou e hoʻāʻo ai, hoʻolālā i nā ʻōnaehana akamai a kūkulu iā lākou iho. He kanaka orchestra ka mea hulahula nui loa! PS. ua ʻike ʻo ia i ka launa pū ʻana me ke anuā o ka haina Kina, no laila mahalo;)

Polokika Polokalamu Smart Home e SmartMe

Polikiia Xiaomi e SmartMe

Paipai SmartMe

Nā pou e pili ana