Commit 8f229285 authored by Rob Connolly's avatar Rob Connolly

Implement openuv data in morning announcement.

parent 1f1f721a
......@@ -110,6 +110,20 @@ ffmpeg:
# scene.movie:
# expose: true
openuv:
api_key: !secret openuv_api_key
binary_sensors:
monitored_conditions:
- uv_protection_window
sensors:
monitored_conditions:
- current_ozone_level
- current_uv_index
- current_uv_level
- max_uv_index
- safe_exposure_time_type_1
- safe_exposure_time_type_2
# include entity files
input_boolean: !include entities/input_booleans.yaml
sensor: !include entities/sensors.yaml
......
......@@ -227,3 +227,5 @@ presence_option_template: >
{% endif %}
{% endif %}
openuv_api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
......@@ -60,6 +60,7 @@ script:
{% endif %}
It's currently {{states.sensor.dark_sky_summary.state}} and {{states.sensor.dark_sky_temperature.state|round}} degrees. The weather for the next 24 hours will be {{states.sensor.dark_sky_hourly_summary.state|replace(".", "")}}, with a high of {{states.sensor.dark_sky_daytime_high_temperature.state|round}} and a low of {{states.sensor.dark_sky_overnight_low_temperature.state|round}}.
The current average indoor temperature is {{ states.sensor.average_indoor_temperature.state }} degrees.
Sun protection is required between {{ states.binary_sensor.uv_protection_window.attributes.start_time.strftime("%-I:%M%p") }} and {{ states.binary_sensor.uv_protection_window.attributes.end_time.strftime("%-I:%M%p") }}. Today's max UV index is {{ states.sensor.max_uv_index.state|round(2) }}.
automation:
- alias: "Time to leave announcement"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment