2019-04-17 22:46:06 +00:00
|
|
|
#########################################################################################
|
|
|
|
# @Author: Suresh Kalavala
|
|
|
|
# @Date: 09/13/2017
|
2022-12-03 16:28:12 +00:00
|
|
|
# @Description: This Season sensor is used in the voice notifications to notify of Pollen
|
2019-04-17 22:46:06 +00:00
|
|
|
# levels ONLY during Spring - because I am allergic to spring pollen ;)
|
|
|
|
# There you have it!!!
|
|
|
|
#
|
|
|
|
# Possible Season values are: Spring, Summer, Autumn, and Winter
|
|
|
|
#########################################################################################
|
|
|
|
|
|
|
|
homeassistant:
|
|
|
|
|
|
|
|
###############################################################################
|
2022-12-03 16:28:12 +00:00
|
|
|
# _ _ _
|
|
|
|
# /\ | | | | (_)
|
|
|
|
# / \ _ _| |_ ___ _ __ ___ __ _| |_ _ ___ _ __ ___
|
2019-04-17 22:46:06 +00:00
|
|
|
# / /\ \| | | | __/ _ \| '_ ` _ \ / _` | __| |/ _ \| '_ \/ __|
|
|
|
|
# / ____ \ |_| | || (_) | | | | | | (_| | |_| | (_) | | | \__ \
|
|
|
|
# /_/ \_\__,_|\__\___/|_| |_| |_|\__,_|\__|_|\___/|_| |_|___/
|
2022-12-03 16:28:12 +00:00
|
|
|
#
|
2019-04-17 22:46:06 +00:00
|
|
|
###############################################################################
|
|
|
|
automation:
|
|
|
|
- alias: Season Change Notification
|
|
|
|
initial_state: true
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.season
|
|
|
|
condition:
|
|
|
|
- condition: template
|
|
|
|
value_template: '{{ trigger.from_state.state | lower != "unknown" }}'
|
|
|
|
action:
|
2022-12-03 16:28:12 +00:00
|
|
|
- service: script.notify_family
|
2022-12-05 00:02:34 +00:00
|
|
|
data:
|
2022-12-03 16:28:12 +00:00
|
|
|
message: >
|
|
|
|
Good bye {{ trigger.from_state.state }}, and Say Hello to {{ trigger.to_state.state }}!
|
|
|
|
notify_options:
|
|
|
|
- telegram
|
|
|
|
- tv
|