From ba34f9ab72eca5706e16ad6afd21bd8545428564 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sun, 5 May 2019 19:19:18 +0000 Subject: [PATCH] Add air quality sensors --- appdaemon/dashboards/Weather.dash | 10 ++- appdaemon/dashboards/weather_air_quality.yaml | 68 +++++++++++++++++++ 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 appdaemon/dashboards/weather_air_quality.yaml diff --git a/appdaemon/dashboards/Weather.dash b/appdaemon/dashboards/Weather.dash index 06237f1..8c166cd 100644 --- a/appdaemon/dashboards/Weather.dash +++ b/appdaemon/dashboards/Weather.dash @@ -4,7 +4,7 @@ widget_dimensions: [120, 120] widget_size: [1, 1] widget_margins: [5, 5] columns: 7 -rows: 7 +rows: 9 global_parameters: use_comma: 0 precision: 1 @@ -38,6 +38,11 @@ label_daily: text: 5 Day Forecast widget_style: "background: MEDIUMSLATEBLUE;" +label_air_quality: + widget_type: label + text: Air Quality + widget_style: "background: MEDIUMSLATEBLUE;" + # Layout layout: - include: header @@ -47,5 +52,8 @@ layout: - current_icon, current_temperature, current_feels_like, current_humidity, current_precipitation, current_precipitation_intensity, current_precipitation_accumulation - label_today(7x1) - today_icon, today_high_temperature, today_low_temperature, today_humidity, today_precipitation, today_precipitation_intensity, today_precipitation_accumulation + - include: weather_air_quality + - label_air_quality(7x1) + - cold_flue_forecast, allergy_index_today, allergy_index_tomorrow, allergy_index_forecast, asthma_index_today, asthma_index_tomorrow, asthma_index_forecast - label_hourly(6x1), nav_weather_hourly - label_daily(6x1), nav_weather_5day diff --git a/appdaemon/dashboards/weather_air_quality.yaml b/appdaemon/dashboards/weather_air_quality.yaml new file mode 100644 index 0000000..3f6bb5a --- /dev/null +++ b/appdaemon/dashboards/weather_air_quality.yaml @@ -0,0 +1,68 @@ +# Per pollen.com ha docs +#low: 0-2.4 +#low/medium: 2.5-4.8 +#medium: 4.9-7.2 +#medium/high: 7.3 - 9.6 +#high: 9.7-12 + +label_medical_bag: + widget_type: navigate + dashboard: Weather_Hourly + icon_inactive: mdi-medical-bag + widget_style: "background: DARKSLATEBLUE;" + +allergy_index_today: + widget_type: gauge + entity: sensor.allergy_index_today + title: Allergy Index Today + max: 12 + min: 0 + units: "" + +allergy_index_tomorrow: + widget_type: gauge + entity: sensor.allergy_index_tomorrow + title: Allergy Index Tomorrow + max: 12 + min: 0 + units: "" + +allergy_index_forecast: + widget_type: gauge + entity: sensor.asthma_index_forecasted_average + title: Allergy Forecast + max: 12 + min: 0 + units: "" + +asthma_index_today: + widget_type: gauge + entity: sensor.asthma_index_today + title: Asthma Today + max: 12 + min: 0 + units: "" + +asthma_index_tomorrow: + widget_type: gauge + entity: sensor.asthma_index_tomorrow + title: Asthma Tomorrow + max: 12 + min: 0 + units: "" + +asthma_index_forecast: + widget_type: gauge + entity: sensor.asthma_index_forecasted_average + title: Asthma Forecast + max: 12 + min: 0 + units: "" + +cold_flue_forecast: + widget_type: gauge + entity: sensor.cold_flu_forecasted_average + title: Cold/Flue Forecast + max: 12 + min: 0 + units: ""