AirVisual - Home Assistant
文章推薦指數: 80 %
Using the AirVisual Cloud API TheairvisualsensorplatformqueriestheAirVisualcloudAPIforairqualitydata.Datacanbecollectedvialatitude/longitude,bycity/state/country,orfromanAirVisualNode/Prounit. UsingtheAirVisualCloudAPI AirVisualAPIkeyscanbeobtainedhere.Notethattheplatformwasdesignedusingthe“Community”package;the“Startup”and“Enterprise”packagekeysshouldcontinuetofunction,butactualresultsmayvary(ornotworkatall). TheCommunityAPIkeyisvalidfor12monthsafterwhichitwillexpire.YoumustthengobacktotheAirVisualwebsite,deleteyouroldkey,createanewonefollowingthesamestepsandupdateyourconfigurationwiththenewkey. The“Community”APIkeyislimitedto10,000callspermonth.InordertoaccommodateusingthesameAPIkeyformultiplegeographies,theairvisualintegrationwillautomatically“re-level”thetimebetweenAPIcallssoastonotoverrunthecalllimit. Forexample: Oneinstanceoftheintegration:APIcallsevery5minutes Twoinstancesoftheintegration:APIcallsevery10minutes etc. UsinganAirVisualNode/ProUnit TheintegrationcancommunicatetoNode/Prounitsoverthelocalnetwork.YouwillneedtheIPaddress/hostnameoftheunitanditsSambapassword(whichcanbefoundontheunit;instructionshere). Configuration AddingAirVisualtoyourHomeAssistantinstancecanbedoneviatheuser interface,byusingthisMybutton: Manualconfigurationsteps IftheaboveMybuttondoesn’twork,youcanalsoperformthefollowingsteps manually: BrowsetoyourHomeAssistantinstance. InthesidebarclickonConfiguration. Fromtheconfigurationmenuselect:Integrations. Inthebottomright,clickonthe AddIntegrationbutton. Fromthelist,searchandselect“AirVisual”. Followtheinstructiononscreentocompletethesetup. DeterminingtheCity/State/Country Inadditiontousinglatitudeandlongitude,theAirVisualintegrationmaybeconfiguredtouseacity/state/countrycombination.Toeasilydeterminethepropervaluesforaparticularlocation,usetheAirVisualregiondirectory.Onceyoubrowsetotheparticularcityyouwant,takenoteofthebreadcrumbtitle,whichisoftheformcountry>state/region>city. Forexample,SaoPaulo,BrazilshowsabreadcrumbtitleofBrazil>SaoPaulo>SaoPaulo.Thus,thevaluestouseintheUIwouldbe: City:SaoPaulo State:SaoPaulo Country:Brazil SensorTypes CloudAPI Whenconfigured,theplatformwillcreatethreesensorsforeachairqualitystandard: AirQualityIndex Description:Thissensordisplaysanumericairqualityindex(AQI),ametricfortheoverall“health”oftheair. ExampleSensorName:sensor.chinese_air_quality_index ExampleSensorValue:32 Explanation: AQI Status Description 0-50 Good Airqualityisconsideredsatisfactory,andairpollutionposeslittleornorisk 51-100 Moderate Airqualityisacceptable;however,forsomepollutantstheremaybeamoderatehealthconcernforaverysmallnumberofpeoplewhoareunusuallysensitivetoairpollution 101-150 UnhealthyforSensitiveGroups Membersofsensitivegroupsmayexperiencehealtheffects.Thegeneralpublicisnotlikelytobeaffected 151-200 Unhealthy Everyonemaybegintoexperiencehealtheffects;membersofsensitivegroupsmayexperiencemoreserioushealtheffects 201-300 Veryunhealthy Healthwarningsofemergencyconditions.Theentirepopulationismorelikelytobeaffected 301+ Hazardous Healthalert:everyonemayexperiencemoreserioushealtheffects AirPollutionLevel Description:ThissensordisplaystheassociatedStatus(fromtheabovetable)forthecurrentAQI. SampleSensorName:sensor.us_air_pollution_level ExampleSensorValue:Moderate MainPollutant Description:Thissensordisplaysthepollutantwhosevalueiscurrentlyhighest. SampleSensorName:sensor.us_main_pollutant ExampleSensorValue:PM2.5 Explanation: Pollutant Symbol MoreInfo Particulate(<=2.5μm) PM2.5 EPA:ParticulateMatter(PM)Pollution Particulate(<=10μm) PM10 EPA:ParticulateMatter(PM)Pollution Ozone O EPA:OzonePollution SulpherDioxide SO2 EPA:SulfurDioxide(SO2)Pollution CarbonMonoxide CO EPA:CarbonMonoxide(CO)PollutioninOutdoorAir Node/Pro Node/Prounitswillcreateavarietyofsensors: AirQualityIndex(AQI) BatteryLevel CarbonDioxide(CO2) Humidity Particulate(<=0.1μm)(PM0.1) Particulate(<=2.5μm)(PM2.5) Particulate(<=10μm)(PM10) Temperature VolatileOrganicCompounds(VOC) Helpustoimproveourdocumentation Suggestanedittothispage,orprovide/viewfeedbackforthispage. Edit Providefeedback Viewpendingfeedback TheAirVisualintegrationwasintroducedinHomeAssistant0.53, andit'susedby 806activeinstallations. ItsIoTclassisCloudPolling. YoucanfindthesourceforthisintegrationonGitHub. Categories Health Onthispage UsingtheAirVisualCloudAPI UsinganAirVisualNode/ProUnit Configuration DeterminingtheCity/State/Country SensorTypes CloudAPI Node/Pro
延伸文章資訊
- 1AirVisual API | 值得信賴的即時空氣污染數據和空氣品質預報
AirVisual 整合全球地面監測網站資料,為您提供準確可靠的空氣品質資訊 ... 專業客戶支持. 專屬API 支持小組為您隨時提供幫助,快速無縫將數據接入您的應用程式中。
- 2API - AirVisual Air Quality Data - IQAir
當地空氣質量天氣數據準確播報 · 啟用AirVisual API只需三步 · 可供選擇的服務方案.
- 3Airvisual - APIList.fun
API list is proudly brought to you by apilayer, a leader in B2B APIs including weatherstack, medi...
- 4安全- 家庭助理- 新利luck18网址备用
安全. 这 安全 传感器平台查询安全空气质量数据的云API。数据可以通过纬度/经度,城市/州/国家/地区或来自空中节点/专业单位。 使用空中云API. 可以获得AirVisual API ...
- 5AirVisual API: How To Use the API with Free API Key | RapidAPI
The AirVisual Advantage - 8,000 stations worldwide Air pollution is a global problem - we ... api...