Cov txheej txheem:
- Kauj Ruam 1: Kauj Ruam 1: Kuv Xav Tau Txoj Hauv Kev Xa Sijhawm Los Ntawm Tus Pab Tsev
- Kauj Ruam 2: Kauj Ruam 2: Ntxiv Cov Cai hauv qab no rau Configuration.yaml
- Kauj Ruam 3: Kauj Ruam 3: Tam sim no Peb Yuav Tsum Tau Txais Cov Ntaub Ntawv mus rau ESPHOME API
- Kauj Ruam 4: Kauj Ruam 4: Yog li ESPHome Kev teeb tsa lub Plug Tam Sim No
- Kauj Ruam 5: Kauj Ruam 5: ESPHome Tsev Pabcuam Kev Sib Txuas… Beam Me Up Scotty
- Kauj Ruam 6: Kauj Ruam 6: Cia Ntxiv Qee Lub Sijhawm
- Kauj Ruam 7: Kauj Ruam 7: Lub sijhawm luv
- Kauj Ruam 8: Kauj Ruam 8: Yog li Peb Muaj Sijhawm thiab Nyiaj Txiag … Dab Tsi Ntxiv?
- Kauj Ruam 9: Kauj Ruam 9: Tam sim no rau Qee Cov Ntawv Sau: 'Yuav Ua, lossis Tsis Yog: Yog Lo Lus Nug'
- Kauj Ruam 10: Kauj Ruam 10: Qee Cov Ntawv Sau Ntxiv
- Kauj Ruam 11: Kauj Ruam 11: Qee Qhov Kev Xav Thaum Kawg
Video: ESPHOME SONOF S26 Sijhawm Teeb: 11 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Nyob Zoo. Yog li kuv muaj lub teeb ntses ntses uas kuv xav hloov thiab tawm qee lub sijhawm ntawm hnub ntawd. Kuv tsuas yog yuav tsum ua kom nyuaj rau kuv tus kheej. Kuv xav kom tuaj yeem hloov lub sijhawm nws qhib thiab tawm ntawm kuv Lub Tsev Pabcuam Dashboard. Tej zaum txawm ntau.
Yog li cia cia saib ntau npaum li cas kuv tuaj yeem coj kuv tus kheej mus rau hauv lub qhov luav.
Kauj Ruam 1: Kauj Ruam 1: Kuv Xav Tau Txoj Hauv Kev Xa Sijhawm Los Ntawm Tus Pab Tsev
Qee qhov googling pab. Qee qhov rub tawm koj cov plaub hau pab, yog tias koj muaj ib qho: POpen kuv Pom Kev Pom Duab Studio Code Editor ntxiv-on. Hauv qab Config nplaub tshev pom cov ntawv configuration.yaml thiab theej thiab muab qee yam khoom kuv pom zais hauv qee lub rooj sab laj. Thov txim yog tias kuv nco qab kuv yuav muab kev lees paub. Ntxiv cov cai thiab rov pib ua haujlwm pabcuam hauv tsev.
Kauj Ruam 2: Kauj Ruam 2: Ntxiv Cov Cai hauv qab no rau Configuration.yaml
input_number: cov
ft_start_hr:
lub npe: FT Pib Teev Sijhawm
icon: mdi: moos pib
qis: 0
max: 23 ib
qib: 1
# pib: 13
Thawj kab yuav yog tus lej nkag nkag tus lej ID.
Tom ntej no peb xav tau qee cov ntsiab lus rau tus yawg no:
Lub npe yuav txaus: FT Lub Teeb Pib Sijhawm rau qhov no P. S. FT yog rau Ntses Tank … Tsis yog yam koj xav tau raug?
Tom ntej no yog lub cim xaiv. Muaj ntau txoj hauv kev xaiv los ntawm qhov mus vwm … lossis tsis yog.
Tom qab ntawd peb tuaj yeem tso rau hauv min, max thiab tus nqi nqis. Raws li qhov no yog teev kuv xaiv 0 - 23 nrog rau ib qib.
Thaum xub thawj kuv muaj tus nqi thawj zaug thiab thaum tus pabcuam hauv tsev rov pib dua nws yuav hloov nws mus rau qhov pib tus nqi no. Kuv txiav txim siab los tawm tswv yim nws raws li kuv xav kom Tus Pabcuam Tsev sim thiab nco txog tus nqi kawg uas kuv tau teeb tsa rau nws.
Koj tuaj yeem tso rau hauv hom xaiv lub thawv. Tab sis raws li lub hauv paus nws xaiv tus swb zoo rau koj. Kuv xav tias tus slider yuav ua rau tam sim no.
Yuav tsum paub txog qhov indentations raws li lawv yog qhov tseem ceeb heev. Saib cov duab
Yog li cov no yuav muab rau koj cov koom haum hauv tsev pab kom tuaj yeem hloov kho.
Nov yog qhov txuas rau cov ntaub ntawv ntau ntxiv txog cov lej nkag:
www.home-assistant.io/integrations/input_n…
Kauj Ruam 3: Kauj Ruam 3: Tam sim no Peb Yuav Tsum Tau Txais Cov Ntaub Ntawv mus rau ESPHOME API
sensor:
- platform: qauv
sensors:
ft_start_hr:
value_template: '{{states.input_number.ft_start_hr.state | koj}}
n
Qhov no yuav muab ESPHome API qhov xav tau txuas, nrog rau tam sim no nws yog tus lej tsis siv cov ntawv zoo nkauj swb:-P
Ntawm no nws tab tom noj lub xeev cov lej nkag thiab hloov nws mus rau ib qho tseem ceeb thiab khaws cia hauv lub sensor.
Nov yog qee cov ntaub ntawv ntxiv ntawm cov qauv:
www.home-assistant.io/integrations/templat…
Huag Kuv tau hloov qhov File extension ntawm kuv cov ntaub ntawv mus rau kab ntawv yog li kuv tuaj yeem rub tawm nws … Cov lus qhia yuav ua rau muaj kev puas tsuaj nrog yaml …
Kauj Ruam 4: Kauj Ruam 4: Yog li ESPHome Kev teeb tsa lub Plug Tam Sim No
Kuv pib nrog lub hauv paus teeb tsa rau lub s-on-off ntsaws thiab tom qab ntawd pib tinkering.
Kuv yuav tsis piav qhia ntxaws txog yuav ua li cas nyem S26 ntsaws nrog ESPHome li google muaj txhua lo lus teb.
Kuv cov ntaub ntawv teeb tsa tag nrho yuav muaj rau rub tawm thaum kawg. Daj Daj …
Yog li cia pib nrog ntu txuas rau Tus Pab Tsev:
Peb yuav tsum tsim cov ntsuas hluav taws xob uas haum cov ntsuas hluav taws xob hauv tus pab hauv tsev yog li lawv tuaj yeem tham nrog ib leeg.
Kauj Ruam 5: Kauj Ruam 5: ESPHome Tsev Pabcuam Kev Sib Txuas… Beam Me Up Scotty
sensor:
- platform: homeassistant
entity_id: sensor.ft_start_hr
id: id_ft_start_hr
Yog li tam sim no peb tsim lub ntsuas hluav taws xob hauv ESPHome ntawm hom tsev pabcuam. Leej twg yuav tau twv?
Tus lej ID yuav tsum sib phim qhov koj teeb tsa hauv koj cov ntaub ntawv configuration.yaml.
Kuv teeb tus lej kom ESPHome tuaj yeem siv lub ntsuas no hauv nws qhov kev xav ntau.
Kauj Ruam 6: Kauj Ruam 6: Cia Ntxiv Qee Lub Sijhawm
Yog li nrog qhov no yog lub sijhawm ntsaws… Cia ua ntxiv qee lub sijhawm… Los yog nws rho tawm? Nws yog tam sim no yav dhau los?
Nov yog qee qhov pib ntawm lub sijhawm tivthaiv. Peb tuaj yeem xaiv qee qhov sib txawv tab sis kuv xaiv tus pab tsev. Yooj yim heev?
esphome.io/components/time.html
Kauj Ruam 7: Kauj Ruam 7: Lub sijhawm luv
Tsis yog nws tsis so, los yog nws?
ncua sijhawm:
- ncua sijhawm: 1sec
ces:
- lambda: |-
id (gl_ft_start_hr) = id (id_ft_start_hr).state;
Yog li kuv teeb tsa ntu ntawm 1 thib ob los sau tus nqi ntsuas los ntawm tus pabcuam hauv tsev mus rau qhov sib txawv thoob ntiaj teb.
Kuv tsuas yog xav ua qhov no ib zaug ib pliag raws li lub sijhawm tau zuam… zuam tock
Kauj Ruam 8: Kauj Ruam 8: Yog li Peb Muaj Sijhawm thiab Nyiaj Txiag … Dab Tsi Ntxiv?
Yog li kuv txiav txim siab siv tus qauv binary sensor txhawm rau txiav txim siab seb nws puas yog lub sijhawm hloov ntawm qhov hloov pauv hloov… hloov chaw
Kuv tsim peb qhov hloov pauv nrog tus lej ID: start_time_valid, stop_time_valid thiab run_time_valid
start_time_valid yog qhov tseeb thaum tam sim no dhau los lub sijhawm teeb tsa los hloov ntawm qhov txuas.
Kuv siv zes yog cov lus los txheeb xyuas yog tias peb ntau dua lossis sib npaug rau cov vib nas this xav tau, tom qab ntawv feeb, thiab thaum kawg teev.
stop_time_valid yog qhov tseeb thaum nws yog tam sim no ua ntej nws yog lub sijhawm teeb tsa los hloov qhov hloov pauv. Qhov no tau thim rov qab rau kev txheeb xyuas tias tam sim no tsis tau dhau lub sijhawm xav tau los hloov qhov txuas
run_time_valid muaj tseeb thaum ob qhov pib_time_valid thiab nres_time_valid muaj tseeb. Kuv xav tias kuv tuaj yeem tsuas yog siv qhov ib txwm muaj thiab mob rau qhov no. Kuv nyuam qhuav tau nkag mus rau hauv cov khoom ntawm lambdas.
- platform: qauv
lub npe: "Pib Sijhawm Siv Tau"
id: pib_time_valid
lambda: |-
yog (id (homeassistant_time).now (). teev> id (gl_ft_start_hr)) {
rov muaj tseeb;
}
lwm tus yog (id (homeassistant_time).now (). teev == id (gl_ft_start_hr) &&
id (homeassistant_time).now (). feeb> id (gl_ft_start_mn)) {
rov muaj tseeb;
}
lwm tus yog (id (homeassistant_time).now (). teev == id (gl_ft_start_hr) &&
id (homeassistant_time).now (). feeb == id (gl_ft_start_mn) &&
id (homeassistant_time).now (). thib ob> = id (gl_ft_start_ss)) {
rov muaj tseeb;
}
lwm tus {
rov dag;
}
Kauj Ruam 9: Kauj Ruam 9: Tam sim no rau Qee Cov Ntawv Sau: 'Yuav Ua, lossis Tsis Yog: Yog Lo Lus Nug'
Hmm yuam kev tsab ntawv txiv leej tub!
Yog li yog tias kuv tau ntsaws qhov hloov pauv… lossis lub zog hauv tsev nyuam qhuav rov qab los, kuv xav kom lub ntsuas hluav taws xob paub seb nws txhais tau tias yuav tsum qhib lossis tawm thiab ua raws li. (yog peb txhua tus mus rau kev qhia ua yeeb yam)
Thawj tsab ntawv id: checkingstatuson, yog tshuaj xyuas seb peb puas tau xav kom ua thiab ua raws. Kuv kuj suav nrog tus chij thoob ntiaj teb nrog tus lej: taug qab, kom ntseeg tau tias tsab ntawv no tsuas yog ua haujlwm ib zaug thiab tsis cuam tshuam kuv lwm cov ntawv sau los ntawm kev ua lawv feem hauv kev ua si.
Qhov no muaj 3 thiab cov xwm txheej: kev xa tawm raug kaw, nws txhais tau tias yuav tsum nyob thiab kuv tseem tsis tau ua tiav kuv li. Qhov no yuav hloov pauv lwm cov ntawv sau ua haujlwm, qhib lub relay thiab teeb tsa tus chij taug qab.
Daim ntawv thib ob id: checkingstatusoff, tsuas yog qhov txawv ntawm thawj. Peb tsuas yog tshuaj xyuas seb peb puas yuav tsum kaw cov ntaub thaiv tam sim no. Tus chij taug qab rau qhov no yog taug qab
Kuv khiav ob tsab ntawv no hauv ntu 1 thib ob los tshuaj xyuas txhua ob.
Kauj Ruam 10: Kauj Ruam 10: Qee Cov Ntawv Sau Ntxiv
Ob yam ntxiv uas kuv xav ntxiv yog tias kuv hloov lub teeb tawm ntawm lub tank uas nws yuav hloov rov qab tom qab 5 vib nas this yog tias lub teeb txhais tau tias yuav nyob rau lub sijhawm ntawd. Tsis tas li, yog tias lub teeb raug kaw thiab kuv xav hloov nws kom pom kuv cov ntses thiab nws tau tawm ntawm nws lub sijhawm raws sijhawm, tias nws yuav hloov rau 5 feeb. Yog 5 feeb ntev txaus… Rov qab mus ua haujlwm.
Thawj tsab ntawv id: relayisoff yuav hloov lub teeb rau 5 feeb yog tias nws tau tawm sijhawm teem sijhawm thiab tom qab ntawd tua.
Daim ntawv thib ob id: relayison tau xyaum thim rov qab ntawm thawj zaug thiab yuav hloov lub teeb rov qab rau 5 vib nas this tom qab yog tias nws xav ua haujlwm. Leej twg hais tias koj tuaj yeem tua kuv lub teeb mister!
Nov yog qee cov ntaub ntawv ntxiv txog cov ntawv sau:
esphome.io/guides/automations.html
Qee cov ntaub ntawv ntxiv txog cov ntawv yog lawv tsis thaiv. Tshwj tsis yog tias koj tso sijhawm qeeb hauv lambda. Uh Tsis Yog Tsis Yog
Kauj Ruam 11: Kauj Ruam 11: Qee Qhov Kev Xav Thaum Kawg
Los ntawm tus pabcuam hauv tsev Kuv xav kom hloov mus ua ib yam nkaus li khawm.
Kuv tsis tau muab lub npe rau lub binary sensor lub zos hloov chaw raws li tsis xav tau pom nws raug thawb hauv tus pabcuam hauv tsev.
Kuv tsis tau sau lub npe rau kev hloov pauv raws li kuv xav siv cov ntawv sau los ua qhov hloov pauv los ntawm tus pabcuam hauv tsev.
Kuv tsim tus qauv hloov pauv nrog lub npe kom kuv tuaj yeem siv qhov ntawd los hloov los ntawm tus pabcuam hauv tsev. Nws yuav khiav kuv cov ntawv zoo ib yam li kev hloov hauv zos ntawm lub ntsaws.
Kuv tsis tau sim seb puas hloov kuv tus pabcuam hauv tsev yog tias lub ntsaws tseem yuav ua haujlwm raug. Kuv cia siab li ntawd. Kuv tau pom qee cov lus hais txog qee qhov teeb meem thaum poob kev sib txuas rau Tsev Pabcuam API.
Kuv vam tias qhov kev qhia me me no yuav pab koj thiab thov koj pab dawb los pab kuv ua kom zoo dua qub. Kuv tsis yog tus kws tshaj lij thiab kawm tau qeeb heev. Kuv tsuas yog xav txog qee yam uas kuv kawm paub yuav ua li cas thiaj tuaj yeem pab ib tus neeg tawm tsam tawm tsam kom paub nws.
Tam sim no los hloov lub sijhawm hauv tus pabcuam hauv tsev raws hnub tuaj thiab hnub poob …+ - ob peb
Pom zoo:
Raspberry Pi hauv Tsiaj qus! Ncua Sijhawm Sijhawm Nrog Lub Hwjchim Roj Teeb: 10 Kauj Ruam (nrog Duab)
Raspberry Pi hauv Tsiaj qus! Ncua Sijhawm Sijhawm Nrog Lub Hwjchim Roj Teeb: Kev Txhawb Siab: Kuv xav siv lub roj teeb uas siv lub koob yees duab Raspberry Pi los thaij duab ib-hnub nyob sab nraum zoov los tsim cov vis dis aus lub sijhawm ntev. Kuv daim ntawv thov tshwj xeeb yog sau cov av npog cog kev loj hlob tuaj rau lub caij nplooj ntoo hlav thiab lub caij ntuj sov
Siv DS1307 thiab DS3231 Lub Sijhawm Teev Sijhawm Sijhawm Nrog Arduino: 3 Kauj Ruam
Siv DS1307 thiab DS3231 Lub Sijhawm Caij Nyoog Sijhawm Nrog Arduino: Peb tseem tau txais kev thov yuav siv DS1307 thiab DS3231 lub sijhawm teev sijhawm nrog Arduino los ntawm ntau qhov chaw-yog li qhov no yog thawj ntawm ob ntu kev qhia yuav siv li cas. Txog qhov kev qhia Arduino no peb muaj ob lub sijhawm teev sijhawm ua haujlwm rau peb
Lub Sijhawm Teem Sijhawm Teem Sijhawm ntawm RaspberryPi-4: 6 Cov Kauj Ruam (nrog Duab)
Lub Sijhawm Teem Sijhawm Teem Sijhawm ntawm RaspberryPi-4: Hauv Cov Lus Qhia no peb yuav ua lub ntsej muag-paub lub sijhawm tiag tiag ntawm Raspberry Pi 4 nrog Shunya O/S siv Shunyaface Library. Koj tuaj yeem ua tiav qhov ntsuas pom ntawm 15-17 ntawm RaspberryPi-4 los ntawm kev ua raws cov lus qhia no
DIY LED Teeb - Niaj Hnub Teeb Meem Teeb Nrog Cov Chaw Taws Teeb: 8 Kauj Ruam (nrog Duab)
DIY LED Teeb - Niaj Hnub Teeb Mood Teeb Nrog Chaw Taws Teeb: Hauv kab lus no kuv yuav mus hla cov txheej txheem Kuv tau siv los tsim qhov no zoo heev pyramid zoo li tus LED Mood Teeb.Kuv siv maple rau cov qauv tseem ceeb thiab qee qhov mahogany txhav ntxiv rau lub zog. Rau lub teeb Kuv siv RGB LED teeb uas tuaj nyob hauv 16 ko taw
LED Teeb Teeb Duab Cwjmem: Cov Cuab Yeej rau Teeb Teeb Doodles: 6 Kauj Ruam (nrog Duab)
LED Teeb Teeb Lub Cwjmem: Cov Cuab Yeej rau Teeb Doodles: Kuv tus poj niam Lori yog tus neeg siv tsis tu ncua thiab kuv tau ua si nrog kev yees duab ntev ntev rau ntau xyoo. Kev tshoov siab los ntawm PikaPika pab pawg teeb pom kev zoo thiab yooj yim ntawm cov koob yees duab digital peb tau siv lub teeb duab kos duab kom pom tias peb tuaj yeem ua dab tsi