Skip to content

Instantly share code, notes, and snippets.

@ExeQue
Last active December 25, 2021 16:52
Show Gist options
  • Save ExeQue/6b796cceceac31322c0ab049fb634dfd to your computer and use it in GitHub Desktop.
Save ExeQue/6b796cceceac31322c0ab049fb634dfd to your computer and use it in GitHub Desktop.
Home Assistant - Outdoor Icy Windows Nofitication
blueprint:
name: Notify - Icy Windows Notification
description: Send a notification when there's risc of icy windows on cars
domain: automation
source_url: https://gist.github.com/ExeQue/6b796cceceac31322c0ab049fb634dfd
input:
temp_sensor:
name: Temperature Sensor
description: The sensor to base the automation on
selector:
entity:
domain: sensor
device_class: temperature
trigger_temp:
name: Trigger Temperature
description: Temperature at which to trigger the automation
default: 0
selector:
number:
min: -30
max: 100
trigger_time:
name: Time of day to trigger the automation
description: When would you like to get notified?
default: '07:00:00'
selector:
time:
notification_title:
name: Notification title (Optional)
description: 'Default: "Warning - Icy Windows"'
default: Warning - Icy Windows
notification_message:
name: Notification message (Optional)
description: 'Default: "Theres a risc of icy windows on the car"'
default: "There's a risc of icy windows on the car"
notify_device:
name: Device to notify
description: Device needs to run the official Home Assistant app to receive
notifications
selector:
device:
integration: mobile_app
trigger:
platform: time
at: !input 'trigger_time'
condition:
- condition: numeric_state
entity_id: !input 'temp_sensor'
below: !input 'trigger_temp'
variables:
temp_sensor: !input 'temp_sensor'
temperature: '{{ states(temp_sensor) }}'
trigger_temp: !input 'trigger_temp'
notify_device: !input 'notify_device'
notification_title: !input 'notification_title'
notification_message: !input 'notification_message'
action:
- domain: mobile_app
type: notify
device_id: !input 'notify_device'
title: '{{ notification_title }}'
message: '{{ notification_message }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment