Home Assistant custom component combining multiple OpenWeatherMap API calls
Use HACS to install it.
Copy the files to their proper location
configuration.yaml
:
sensor:
- platform: openweathermap_all
api_key: YOUR_API_KEY
latitude: YOUR_LATITUDE
longitude: YOUR_LONGITUDE
YOUR_API_KEY
: API key to use with the service. You can obtain yours at OpenWeatherMap.
YOUR_LATITUDE
, YOUR_LONGITUDE
: coordinates of the desired location.
Currently, the following sensors are created by this integration:
- sensor.owm_pollution_ammonia_nh3
- sensor.owm_pollution_carbon_monoxide_co
- sensor.owm_pollution_coarse_particles_pm10
- sensor.owm_pollution_fine_particles_pm2_5
- sensor.owm_pollution_nitrogen_dioxide_no2
- sensor.owm_pollution_nitrogen_monoxide_no
- sensor.owm_pollution_overall_air_quality
- sensor.owm_pollution_ozone_o3
- sensor.owm_pollution_sulphur_dioxide_so2
- sensor.owm_ultraviolet_index
- sensor.owm_pollution_forecast
More are coming in the future as the API, my free time and my skills allow. :)
Sample screenshot of sensors (using mini-graph-card)
Sample screenshot of sensors (using apexcharts-card)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.