Cov txheej txheem:

NEST Koj Cov Kub Kub Qub: 4 Kauj Ruam (nrog Duab)
NEST Koj Cov Kub Kub Qub: 4 Kauj Ruam (nrog Duab)

Video: NEST Koj Cov Kub Kub Qub: 4 Kauj Ruam (nrog Duab)

Video: NEST Koj Cov Kub Kub Qub: 4 Kauj Ruam (nrog Duab)
Video: Cas Tsis Xaiv Koj - R-Lin Thoj New Song Original By Zaj Dub [Official MV] 2023 2024, Hlis ntuj nqeg
Anonim
Image
Image
Thermostat Ua Haujlwm Li Cas
Thermostat Ua Haujlwm Li Cas

Cov cua sov hauv kuv lub tsev yog tej zaum zoo li lub tsev nws tus kheej. Nws yog kwv yees li 30 xyoo, uas zoo nyob rau hauv cov nqe lus ntawm tsev xyoo, tab sis zoo nkauj npaum li cas nyam nyob rau hauv cov dej khov hnub nyoog kom deb li deb raws li kev siv tshuab muaj kev txhawj xeeb. Muaj 2 qhov teeb meem tseem ceeb nrog kev daws teeb meem kev lag luam:

  • txwv tsis pub tus nqi
  • khoom raws li kev pabcuam

Peb txhua tus nco qab tias muaj dab tsi tshwm sim rau Revolv thiab kuv tsis mob siab rau qhov tshwm sim rau kuv thaum nruab nrab lub caij ntuj no. Nrog qhov xav hauv siab, kuv nthuav qhia koj nrog qhov tsis txaus ntseeg saib tab sis ua haujlwm zoo NEST-Zoo ib yam rau koj lub ntsuas sov qub. Tsis txhob txhawj xeeb, Kuv tab tom npaj rau lub thawv ntawv zoo dua yuav ntxiv sai sai no!

Nta:

  • muaj peev xwm siv lub ntsuas sov uas twb muaj lawm (yog tias tus poj niam yws txog nws)
  • kev nkag mus deb
  • TSEV hom
  • qhov ntsuas kub pom zoo
  • Ua haujlwm nrog Alexa

Tsis ntev (saib ntawm no kom hloov tshiab)

  • Google Tsev
  • Google daim ntawv qhia hnub
  • Ntau yam Sensors
  • Radiator tswj
  • IFTT kev koom ua ke
  • Tasker txhawb nqa
  • Kev thov
  • Qhov zoo tshaj plaws saib qhov thaiv

Kauj Ruam 1: Tus ntsuas sov ua haujlwm li cas

Thermostat Ua Haujlwm Li Cas
Thermostat Ua Haujlwm Li Cas
Thermostat Ua Haujlwm Li Cas
Thermostat Ua Haujlwm Li Cas

Cov ntsuas cua sov yuav txuas nrog HIGH VOLTAGE! Tsis txhob sim ua ib yam tshwj tsis yog tias koj ua kom ntseeg tau tias lub kaw lus kaw lawm. Koj tuaj yeem ua phem rau koj tus kheej thiab ua rau puas tsuaj rau cov khoom siv sib txuas. Xav txog kev sab laj nrog kws kho hluav taws xob tsim nyog kom ntseeg tau tias koj muaj kev nyab xeeb

Honeywell thermostat yog phab ntsa mounted chav, powered los ntawm lub ntsiab (Sonoff pib xav tau min 90V, kuv lub Circuit Court muaj 230V). Lub npov txuas nrog rau chav tswj hwm tseem ceeb (uas yog lub npov zoo dua) thiab nws xa lub teeb liab thaum qhov kub tau qis dua qib phiaj. Thaum koj lub tsev yuav txawv, txoj hauv kev feem ntau yuav zoo ib yam. Yog tias koj muaj 3 lub xov tooj thiab tsis muaj xov tooj cua txuas ntawm chav nyob-phab ntsa-qhov no yog kev qhia rau koj.

Kuv paub tias 3-xaim ntsuas cua sov ua haujlwm li cas hauv txoj cai, uas tsis txwv kuv los ntawm tshuab lub fuse los ntawm kev luv 2 xov hlau los ntawm kev sib tsoo! Kuv muaj 3 xaim txuas nrog chav tsev (nrog 4th yog lub ntiaj teb). Kuv lub ntsuas sov Honeywell tsis yog wireless, yog li hloov lub teeb liab, Kuv tuaj yeem siv Sonoff Basic. Nws yog lub sijhawm coj nws sib nrug thiab pom tias lub teeb liab xa mus rau chav tsev li cas.

  1. (xiav) - Hauv av
  2. (daj) - teeb liab, thaum rub siab ua kom sov
  3. tsis siv
  4. (liab) - cov xaim nyob siv los rub lub teeb liab siab

Txhawm rau ua tiav kuv lub hom phiaj, Kuv yuav tsum tau luv luv cov xov tooj nyob nrog lub teeb liab xaim thaum kuv xav kom kuv lub cua sov qhib. Yog tias koj muaj qhov ntsuas sov sib xws sib xws, koj muaj hmoo vim Sonoff Basic yuav txaus los ua qhov dag.

Kauj Ruam 2: Npaj Sonoff Basic Npaj

Npaj Sonoff Basic Npaj
Npaj Sonoff Basic Npaj
Npaj Sonoff Basic Npaj
Npaj Sonoff Basic Npaj
Npaj Sonoff Basic Npaj
Npaj Sonoff Basic Npaj

Ua ntej peb pib txuas cov xov hlau, peb yuav tsum ntxiv lub ntsuas kub (DHT11) rau qhov sib tov. Nco ntsoov tias koj muaj Tasmota firmware flashed rau koj lub Sonoff ntaus ntawv (Kuv muaj cov ntawv qhia tau zoo heev ntawm no) thiab koj Tasmota-enabled Sonoff tau teeb tsa kom raug (kuj tseem tau npog los ntawm kuv). Tam sim no, txhua yam koj tau tso tseg yog txuas DHT11 lub sensor rau Sonoff thiab teeb tsa nws rau qhov ntsuas kub.

DHT11 los nrog 3 tus pin wired: Teeb liab - GPIO14Vcc - 3.3VGND - GND

Kuv poked lub qhov los ntawm, Kuv tsis thab nrog nws zoo li tam sim no, txhua yam kuv xav tau yog qhov pov thawj ntawm lub tswv yim thiab kev lees paub. Kuv yuav ua qhov zoo thiab ci ntsa iab ib zaug thaum kuv lub tshuab luam ntawv 3D tuaj txog. Kuv tau them nyiaj tshwj xeeb rau yuav ua li cas kuv xaim Sonoff, raws li kuv yuav tsum ua kom ntseeg tau tias cov xov tooj nyob txuas rau lub xov tooj liab ntawm lwm qhov kawg ntawm Sonoff ntaus ntawv. Chav Honeywell muaj lub zog tiv thaiv (R) ua rau sab hauv uas txwv qhov tam sim no. Thaum lub Circuit Court raug tiv thaiv los ntawm 3A fuse, Nws yog qhov ntse kom phim tib qhov kev tiv thaiv rau kev tiv thaiv ntxiv. Thaum kuv tau npaj cov xov hlau, nws yog lub sijhawm tig lub zog tseem ceeb tawm thiab xaim Sonoff rov qab.

Sonoff Tasmota - Honeywell ntsuas cua

INPUT Live - 4th davhlau ya nyob twg

INPUT GND - 1st davhlau ya nyob twg GND

OUTPUT teeb liab - Qhov davhlau ya nyob twg thib ob

Kuv tau hais ua ntej tias tam sim no, Kuv yuav tsis nyuab siab txog qhov zoo li no. Tus poj niam tau ntseeg thiab kuv tuaj yeem tsom mus rau kev ua haujlwm thiab tshem tawm cov kab uas yuav tshwm sim. Qhov zoo yog tias lub ntsuas cua sov qub tseem ua haujlwm. Yog tias kuv tig nws, nws yuav hla Sonoff Tasmota raws li ib qho. Qhov no yuav tsum yog thaub qab zoo rau txhua qhov xwm txheej tsis tau xav txog.

Kauj ruam 3: NodeRED

NodeRED
NodeRED
NodeRED
NodeRED
NodeRED
NodeRED

Thov nco ntsoov tias cov vis dis aus tuaj yeem muaj NodeRed cov lus qhia qub, Kuv tab tom ua haujlwm tas li txhim kho kev tsim qauv. Nov yog cov kev hloov pauv me me thiab cov ntawv kab ntawv tau khaws tseg

Kuv tuaj hla qhov kev tsim online no. Nws zoo nkaus li zoo, txawm li cas los xij ntawm kev tshuaj xyuas ze, lub cuab yeej tsis haum rau NodeRED. Nws xav tau 5 qhov kev them nyiaj los teeb tsa, uas tsuas yog tsis yog li cas ntawm cov qauv zoo ib yam ua haujlwm. Nws coj kuv qee lub sijhawm los txheeb xyuas txoj hauv kev zoo tshaj plaws ntawm kev xa tag nrho cov ntaub ntawv ntawd los hloov kho cov cuab yeej thiab ua kom nws ua haujlwm tau zoo. Kuv paub tseeb nrog lub sijhawm Kuv yuav siv sijhawm ntau dua ntawm kev tsim qauv yog li kuv tuaj yeem thawb txhua qhov xav tau hloov tshiab nrog ib qho khoom siv nkaus xwb. Txog tam sim no, nws yog dab tsi.

Kub kwj

DHT11 tshaj tawm txhua X vib nas this rov qab rau NodeRED server. Kuv nce qhov zaus no los ntawm Tasmota lub console. Tsuas yog khiav cov lus txib kom teeb tsa zaus hauv sec:

TelePeriod Teeb lub sijhawm telemetry nruab nrab ntawm 10 thiab 3600 vib nas this

Qhov no tau ua tiav feem ntau rau kev sim, vim kuv tsis xav tos ob peb feeb kom pom tias kuv qhov kev kho kab laum puas ua haujlwm. Khaws zaus ntau yuav ua rau cua sov kub ntau dua rau lub sijhawm luv, yog li tsis txhob teeb nws mus rau 10 vib nas this rau lwm yam tshaj li kev ntsuas lub hom phiaj. MQTT node rub cov ntaub ntawv los ntawm:

sonoff/xov tooj/SENSOR

thiab khaws cov ntaub ntawv muaj txiaj ntsig tshaj plaws hauv cov khoom hauv qab no:

msg.payload. DHT11. Txoj kev kub ntxhov msg.payload. DHT11. Qhov av

Txhawm rau txwv qhov ua yuam kev, Kuv tau ntxiv qhov du ntawm qhov nruab nrab qhov txiaj ntsig thiab hloov kho qhov sib txawv ntws: NodeRED:

Function Node - Hloov kho 'TempAmbient'

flow.set ('TempAmbient', msg.payload. DHT11. Temperature); xa rov qab;

Hloov tshiab

Kuv txiav txim siab tias 5 vib nas this yog qhov ua kom zoo dua tshiab, yog li kuv tabtom thawb txhua qhov xav tau qhov txiaj ntsig nrog qhov zaus no. Tsuas yog qhov tshwj xeeb yog tus swb, uas rau qhov laj thawj pom tseeb teb tam sim.

Txhua qhov ntawm qhov sib thooj xa cov nyiaj them nrog cov ncauj lus tau muab rau lub zes-zoo ib yam widget.

  • xim (cua sov | txias*| tawm & hvac_state)
  • nplooj (tseeb | tsis tseeb & has_leaf)
  • nyob deb (muaj tseeb | tsis tseeb & nyob deb)
  • Ambient temp (naj npawb & ambient_temperature)
  • Lub hom phiaj kub (naj npawb & phiaj_temperature)

*tsis siv

NodeRED: Function Node - Widget Update

xim

x = flow.get ('TempTarget'); // targetz = flow.get ('TempAmbient'); // ib puag ncig

yog (z = x) {

flow.set ('cua sov', "tawm"); flow.set ('cua sovSwitch', "OFF"); } msg.payload = z; msg.topic = "ambient_temperature"; rov qab msg;

nplooj

x = flow.get ('TempAmbient'); yog (x> 17 && x <23) {flow.set ('nplooj', muaj tseeb); msg.payload = muaj tseeb; msg.topic = "has_leaf"; rov qab msg; } lwm {flow.set ('nplooj', tsis tseeb); msg.payload = tsis tseeb; msg.topic = "has_leaf"; rov qab msg; }

Tshem tawm cov xim

x = flow.get ('deb'); yog (x === muaj tseeb) {msg.topic = "hvac_state"; msg.payload = "tawm"; rov qab msg; }

msg.topic = "hvac_state";

msg.payload = flow.get ('HeatState');

rov qab msg;

Nyob deb

x = flow.get ('deb'); yog (x === muaj tseeb) {flow.set ('heatingSwitch', "OFF"); flow.set ('cua sov', "tawm"); }

msg.topic = "nyob deb";

msg.payload = flow.get ('deb'); rov qab msg;

Lub Hom Phiaj Temp

yog (msg.topic === "hloov tshiab") {msg.topic = "target_temperature"; msg.payload = flow.get ('TempTarget'); rov qab msg; }

yog (msg.command === "SetTargetTemperatureRequest") {

flow.set ('deb', tsis tseeb); msg.topic = "phiaj_temperature"; flow.set ('TempTarget', msg.payload); }

yog (msg.topic === "slider") {

flow.set ('deb', tsis tseeb); msg.topic = "phiaj_temperature"; flow.set ('TempTarget', msg.payload); }

yog (msg.command === "GetTemperatureReadingRequest") {}

rov qab msg;

Raws li koj pom, Kuv tau xaiv tawm rau qhov sib txawv ntws, yog li kuv tuaj yeem rov nco tau tus nqi txhua lub sijhawm. Kuv muaj qhov debug ntws uas pib nyeem tag nrho cov txiaj ntsig khaws tseg.

  • 'TempAmbinet' - khaws cia qhov ntsuas tam sim no
  • 'TempTarget' - tuav lub hom phiaj temp
  • 'Nplooj ntawv' - qhia nplooj yog xav tau
  • 'Nyob deb' - qhia tawm cov xwm txheej yog xav tau
  • 'Cua sov' - hloov xim ntawm cov zaub
  • 'HeatingSwitch' - tswj lub xeev ntawm kev xa tawm.

Qhov kev sib tw tau ua kom ntseeg tau tias cov ntaub ntawv raug hloov tshiab ntawm "hloov tshiab" thiab thaum thov los ntawm lwm txoj kev (Alexa, thiab lwm yam). Qhov no yog vim li cas koj yuav pom cov xwm txheej sib txawv hauv JavaScript. Txhua lub sijhawm qhov txiaj ntsig tau hloov kho tshiab, xa mus rau qhov sib txawv ntws thiab cov cuab yeej tau rov ua dua tshiab.

Swb

Kev sim qhia tawm tias yuav tsum tau hloov kho qhov hloov tshiab ntxiv (slider thawb lub ntsuas kub). Slider xa cov nyiaj them (tus lej) nrog cov ncauj lus cuam tshuam slider) thaum nws tau txav mus. Nyob rau sab saum toj ntawm qhov no, Kuv xav kom tus swb kom nkag mus rau qhov raug yog tias muaj ntau lub vev xaib cuam tshuam hauv qhov chaw. Txhawm rau ua qhov no, txhua 5 vib nas this kuv tsuas hloov kho txoj haujlwm slider rau qhov ntsuas kub tam sim no.

NodeRED: Function Node - Hloov tshiab slider '

msg.payload = flow.get ('TempTarget'); xa rov qab;

Relay tswj

Tus tswj kev xa xov yog qhov yooj yim, nws yuav siv (tam sim no) ob lub tswv yim. Alexa qhov tseeb | tsis tseeb thiab kev cuam tshuam uas ua raws qhov hloov tshiab rau "cua sov Hloov" ntws sib txawv. Tsis tas yuav xav tau kev nqis tes ua tam sim, yog li rau qhov yooj yim, nws ua haujlwm zoo ib yam li 5sec hloov kho zaus raws li qhov seem ntawm qhov ntws.

Kev xa xov txuas nrog MQTT. Node tshaj tawm ON | OFF cov lus txib rau lub ncauj lus:

sonoff/cmnd/POWER1

Txoj haujlwm ua haujlwm lees paub qhov tseeb | tsis raug los ntawm Alexa thiab tseem hloov pauv lub xeev ntawm kev tawm tswv yim raws li 'cua sovSwitch' ntws sib txawv.

NodeRED: Function Node - Tswj Relay '

yog (msg.command === "TurnOffRequest") {msg.payload = "OFF"; rov qab msg; }

yog (msg.command === "TurnOnRequest") {

msg.payload = "YOG"; flow.set ('TempTarget', 21); rov qab msg; } yog (msg.topic === "hloov tshiab") {msg.payload = flow.get ('heatingSwitch'); } rov qab msg;

Alexa kev koom ua ke

Nov yog thawj lub cuab yeej uas kuv yuav tsum tau tig "pib lees paub". Es tsis txhob cia li xav tias yuav teb kuv tau tsim ib qho raws li kuv xav tau lub peev xwm los nug txog qhov ntsuas kub. Hauv txoj ntsiab cai, msg.payload = muaj tseeb | qhia tsis tseeb yog tias qhov kev thov tau ua tiav, thiab cov qauv pom ntawm no ua tus so. Yog tias koj tshiab rau Alexa thiab NodeRed, nco ntsoov nyeem qhov no.

Kuv txiav txim siab kom dhau qhov kev lees paub cais (Kuv paub qhov no tsis yog txoj hauv kev zoo tshaj plaws) kom tuaj yeem tswj nws txhua qhov me ntsis zoo dua. Kom raug txhua qhov lus teb yuav tsum tau muab tom kawg ntawm cov lus txib. Mine yog pheej hmoo tsis rov ua yuam kev yog tias qhov no tshwm sim. Nco tseg, kom ua tau zoo ib yam, Kuv tsuas yog hloov kho qhov hloov pauv, thaum lub voj voos tshiab, thawb qhov txiaj ntsig tshiab hla mus rau tus widget.

NodeRED: Function Node - Txheej Txheem Alexa Teb '

// Tus ntsuas cua sov lub hom phiaj yog dab tsi (msg.command === "GetTemperatureReadingRequest") {x = flow.get ('TempTarget'); msg.extra = {"temperatureReading": {"value": x}, "applianceResponseTimestamp": Hnub Tshiab (). toISOString ()}; msg.payload = muaj tseeb; rov qab msg; } // Teeb tsa qhov kub kom (tsis qis dua 10 lossis ntau dua 30) yog (msg.command === "SetTargetTemperatureRequest") {yog (msg.payload 30) {var range = {min: 10.0, max: 30.0} msg.payload = tsis tseeb; msg.extra = ntau; } lwm {msg.extra = {targetTemperature: {tus nqi: msg.payload}}; msg.payload = muaj tseeb; } rov qab msg; } // Qhib nws yog tias (msg.command === "TurnOnRequest") {msg.payload = muaj tseeb; flow.set ('deb', tsis tseeb); flow.set ('TempTarget', 21); rov qab msg; } // Tua nws tawm yog tias (msg.command === "TurnOffRequest") {msg.payload = muaj tseeb; flow.set ('deb', muaj tseeb); rov qab msg;

Kauj ruam 4: Xaus

Xaus
Xaus

Yog tias koj nthuav tawm NodeRED dashboard rau WAN tag nrho cov cua sov tuaj yeem tswj tau nyob deb. Kuv xav kom koj nyeem cov kab lus hauv qab no kom nrawm nrog NodeRED thiab NodeRED kev nyab xeeb.

  • NodeRED rau cov pib tshiab
  • NodeRED kev nyab xeeb

Ib qho ntxiv, yog tias koj xav tau txais kev ceeb toom txog qhov hloov tshiab rau txoj haujlwm no - txiav txim siab ua raws kuv ntawm lub platform uas koj xaiv:

  • Facebo tau ok
  • Tau txais
  • Instagram
  • Koj yog

Thiab yog tias koj xav zoo li yuav kuv kas fes lossis txhawb kuv txoj hauv kev txuas ntxiv mus:

  • Paypal
  • Patreon

Kuv vam tias koj tau txaus siab rau txoj haujlwm!

Pom zoo: