Sehloohong seo ke tla hlahisa ts'ebetso ea ho kenyelletsa kopanyo e seng ea semmuso (Sesebelisoa sa Ts'ebetso) ho Mothusi oa Lehae ka mohlala oa ho kopanya o sebelisa lits'ebeletso tsa leru la eWeLink, ka lebaka leo re lumella ho laola lisebelisoa tsa Sonoff ntle le ho fetola firmware ea bona.

Haufinyane re bonts'itse mokhoa oa ho sebelisa IKEA Tradfri integrated in. Kajeno re tla u bontša mokhoa oa ho kenya li-integrated unofficial.

Mothusi oa lapeng o na le li-integrated tse ngata tsa semmuso tse fanoeng le eona, li ikemiselitse ho sebelisoa. Ha li hloke ho kenya tse ling kapa ho ntlafatsa ho tsoa ho rona - li ntlafalitsoe hammoho le sistimi. Lethathamo la likarolo tsohle tsa semmuso tse fumanehang hona joale li ka fumanoa ho:

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

Leha ho na le pokello e kholo joalo (eo hona joale e atolositsoeng ea 1540), ka lebaka la lebelo la nts'etsopele ea lefats'e la IoT, ho na le tlhoko ea ho theha meralo e tsoelang pele kahare ho Mothusi oa Lehae, eseng feela ho ts'ehetsa lisebelisoa tse latelang, empa hape e amanang le ts'ebeliso ea lits'ebeletso tse fapaneng tsa inthanete, li-algorithms, automation, jj. meetso e mecha, e seng ea semmuso, e ngotsoeng ke sechaba sa Mothusi oa Lehae. Ba bitsoa Likarolo tsa tloaelo. Hangata khaello ea bona ea litaelo le litaelo li ho portal ea GitHub.

Likopanyo tse seng tsa semmuso li beoa setsing sa polokelo:

\\ ea moo \ config \ custom_components

moo wa selehae, ke motsamaisi oa ntlo oa Mothusi oa Lehae. Re tlameha ho hlokomela lintlafatso tsa likarolo tsa rona tsa tloaelo.

Ka tlase ke tla hlahisa ts'ebetso ea ho kenyelletsa ho kopanya ho seng molaong ho Mothusi oa Lehae ka mohlala oa ho kopanya o sebelisa lits'ebeletso tsa leru la eWeLink, ka lebaka leo ho re lumella ho laola lisebelisoa tsa Sonoff ntle le ho fetola firmware ea bona. Ke ekelitse Sonoff T4EU1C switch (ntle le cable ea Neutral) ho ts'ebeliso ea eWeLink.

Setšoantšo: Banggood

2020-01-26 13_30_24-sonoff t4eu1c

Tlhophiso ea Teko:

  • Mothusi oa lapeng 0.103.6,
  • Sisteme ea Hass.io (Raspberry Pi 2 B),
  • Kabelo ea Samba 9.0 kapa Configurator 4.2

Lisebelisoa tse hlokahalang:

  • Ho ipapisitse le Karolo e Ikhethileng ea Sesebelisoa, molemong oa rona e tla ba e 'ngoe ea li-switches tsa Sonoff (mohlala oa TX T4EU1C) e kenyellelitsoeng ts'ebelisong ea EWeLink ea mantlha.

Boemo ba tsoelo-pele:

  • Ho hlokahala tsebo ea mantlha ea Mothusi oa lapeng.

Ho kopanya Sonoff

Leqephe la kopanyo leo re tla be re le sebelisa le ka fumanoa mona:

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

Re tla jarolla lifaele tse hlokahalang ho eona ebe re fumana litaelo tsa ho kenya, hammoho le lethathamo la lisebelisoa tsa Sonoff tse tšehelitsoeng.

Hobane ke kopanyo le ts'ebeletso ea eWeLink, bakeng sa eona, hoa utloahala, o tlameha ho qala ka ho etsa akhaonto ho ts'ebeliso ea EWeLink mme o kenye sesebelisoa ho eona.

1. Khoasolla karolo ea moetlo "HASS-sonoff-ewelink"

Re ea webosaeteng:

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

le ho jarolla polokelo ea .zip ka lifaele tse hlokahalang. Ebe o tšolla sethala sa disk ho disk.

2. Ho kopitsa lifaele

Re etsa bonnete ba hore re kentse le ho hlophisa tlatsetso Kabelo ea Samba.

Re kenya mofuputsi oa faele atereseng e latelang:

HASSIO \\ \ config \

HASSIO ke lebitso la sebaka sa marang-rang sa Mothusi oa lapeng seo re se hlophisitseng tlhophisong Kabelo ea Samba (default ke HASSIO). Re etsa foldara e ncha e bitsoang moo hahahahahaE mong hape ka hare - sonoff.

Ho foldareng ena:

HASSIO \\ \ config \ custom_components \ sonoff \

kopitsa lifaele ho tsoa polokelong ea khale e sa pakiloeng "HASS-sonoff-ewelink-master.zip".

3. Boikhethelo - Sheba aterese ea IP ea sesebelisoa

Karolo ea Sekho ea Sonoff e sebetsa molemong oa ts'ebeliso ea lits'ebeletso tsa inthanete tse fanoeng ke leru. Boemong bona ntlha ena ha e hlokahale.

Hoa etsahala, leha ho le joalo, hore khokahano (ea semmuso kapa e seng) e hokela ka kotloloho ka WiFi ho sesebelisoa se marang-rang a rona. Joale hoa hlokahala ho tseba aterese ea IP ea sesebelisoa sena mme ho kgothaletsoa ho beha aterese ena ka ho sa feleng ho router ea rona. Boemong bona, bala ntlha ena.

Re hlahloba aterese ea IP ea lehae ea sesebelisoa se khethiloeng se tšehetsoeng ke Mothusi oa Lehae ho router. Webosaete ea router hangata e fumaneha ho:

192.168.0.1

U ka bona hangata mohala oa sesebelisoa ka lebitso.

mantsoe:

  • Ho li-routers tsa "Connect Box" tsa UPC, qala u botse hotline ho jarolla protocol ea IPv4 hole ho fapana le IPv6 ea kamehla. Ntle ho eona, u ke ke ua fumana ntho e loketseng ho menu ea router.

4. Modula ea phetolo.yaml

Hangata ho websaeteng ea GitHub ka kopanyo e khethiloeng ho na le buka eo ho eona mongoli a hlalosang ka botlalo karolo e lokelang ho kenyelletsoa faeleng ea tlhophiso. Karolo ena e lokela ho eketsoa ho kenya ts'ebetsong kopants'o e neng e laetse pele.

faele phetisetso.yaml e ka fetoloa, har'a tse ling sebelisa kenyelletso Kabelo ea Samba le Mohlophisi. W Kabelo ea Samba re na le file e fumanehang ka kotloloho, ha u ntse u le kahare Mohlophisi, lifaele li hlophisitsoe ntle le tšebeliso ea sebali sa Mothusi oa lapeng. Hangata ke sebelisa molemong oa sena Mohlophisi.

Khetho 1 - Kabelo ea Samba

Kamora ho kenya plugin, faele "configuration.yaml" e lokela ho ba foldareng:

HASSIO \\ \ config \

Khetho ea 2 - Configurator

Kamora ho kenya tlatsetso, ho li-setting tsa eona ho lekane ho khetha "Show in barbarbar" ho e fumana habonolo ho tsoa lenaneng. Mothusi oa lapeng. Ntle le moo, re khetha faele ea tlhophiso, e e fetole ho latela litaelo tse ling kaofela ebe rea e boloka.

Ho kenya ts'ebetso ea Sonoff kopanya karolo e latelang faeleng e hlophisitsoeng:

sonoff: username: [Username application from eWeLink application] password: [phasewete e tsoang ho sesebelisoa sa eWeLink] scan_interval: 60 mohau_period: 600 api_region: 'eu' organ_prefix: Debug ea 'nete: Bohata

Ha se mela eohle ea karolo ena e hlokahalang, litlhaloso tse qaqileng li ka fumaneha leqepheng la kopanyo. Joale boloka faele ebe o qala mothusi oa hau oa lapeng.

5. Preview ea lisebelisoa tse kenyellelitsoeng tsa Sonoff

Kamora ho qala Mothusi oa Lehae, lisebelisoa tsa Sonoff tse lumellanang li se li lokela ho fumaneha Lits'ebetsong:

Kenya:

Lisebelisoa tsa nts'etsopele -> STATES

Lisebelisoa tse kenyellelitsoeng kopanong ena ea Mothusi oa Lehae li tla ba le "sonoff_" qalong ka boiketsetso (ntle le haeba ho boletsoe ka tsela e ngoe ho configuration.yaml). Ka hona, ho li hlahloba esale pele, ho lekane tšimong mokhatlo qala ho ngola "sonoff".

6. Ho eketsa karete ho Mothusi oa lapeng

Lenaneng le ka sehloohong "Kakaretso", re sebelisa wizard e hahelletsoeng kapa ka ho hlophisa faele ka letsoho, re ka eketsa karete ea switch ea Sonoff.

Ho fumana karete joalo ka setšoantšong, faeleng tlasa karolo ea "views:", eketsa karolo:

maikutlo: - sehlooho: Sebaka sa Salon: Tsela ea 'nete: likarete tsa salon_view: - mofuta: sehlooho sa mekhatlo: switchches show_header_toggle: mekhatlo ea mashano: - mokhatlo: switch.sonoff_1000a68535 icon: mdi: lebitso la switjha

setshwantsho: InDomus.it


Ke motho ea khahlileng oa mahlale a macha a seng a sa fele! O lula a fumana lisebelisoa tse ncha ho leka, a rala litharollo tse bohlale 'me o a ikahela. Monna oa sehlopha sa 'mino oa liletsa le eena o tantša e kholo! Pes. o ile a fumana mokhoa oa ho buisana le alamo ea alamo ea China, ka hona tlhompho;)

Sehlopha sa Sepolesa sa Smart Home ke SmartMe

Sehlopha sa Poland sa Xiaomi ke SmartMe

Khaso ea SmartMe

Likheo tse amanang