You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
2.5 KiB
57 lines
2.5 KiB
######################################################################
|
|
# @CCOSTAN - Follow Me on X
|
|
# For more info visit https://www.vcloudinfo.com/click-here
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
# -------------------------------------------------------------------
|
|
# Blink Cameras - Motion snapshots and alerts via Blink integration - Blink camera monitoring and notifications. https://amzn.to/3lOYTCv.
|
|
# Centralizes the Blink Cameras - Motion snapshots and alerts via Blink integration package configuration and helpers.
|
|
# -------------------------------------------------------------------
|
|
# Notes: Automations
|
|
######################################################################
|
|
automation:
|
|
- alias: 'Fridge Temp Watch'
|
|
id: 2346efcd-e8a8-4e86-b5b6-43eBl1nkFr1dge95f
|
|
mode: single
|
|
trigger:
|
|
- platform: numeric_state
|
|
entity_id: sensor.blink_blink1_temperature
|
|
above: 60
|
|
for:
|
|
minutes: 20
|
|
- platform: event
|
|
event_type: event_fridge_still_hot_loop
|
|
|
|
condition:
|
|
condition: or
|
|
conditions:
|
|
- condition: numeric_state
|
|
entity_id: sensor.blink_blink1_temperature
|
|
above: 60
|
|
|
|
- condition: state
|
|
entity_id: binary_sensor.refrigerator_door_confirmed_open
|
|
state: 'on'
|
|
|
|
action:
|
|
- service: script.notify_engine
|
|
data:
|
|
title: 'Check Fridge'
|
|
value1: >
|
|
{% if trigger.platform == 'numeric_state' %}
|
|
The Blink camera temperature sensor has detected {{ states('sensor.blink_blink1_temperature') }} degrees for over 20 minutes.
|
|
{% elif is_state('binary_sensor.refrigerator_door_confirmed_open', 'on') %}
|
|
The SmartThinQ fridge door sensor is still confirmed open, and the Blink camera temperature is {{ states('sensor.blink_blink1_temperature') }} degrees.
|
|
{% else %}
|
|
The fridge is still hot after the previous alert. The fridge temperature is {{ states('sensor.blink_blink1_temperature') }} degrees.
|
|
{% endif %}
|
|
who: 'family'
|
|
group: 'information'
|
|
|
|
- service: script.speech_engine
|
|
data:
|
|
value1: "Please check the fridge. The Blink camera temperature is {{ states('sensor.blink_blink1_temperature') }} degrees. {% if is_state('binary_sensor.refrigerator_door_confirmed_open', 'on') %}The SmartThinQ fridge door sensor is confirmed open.{% endif %}"
|
|
no_fridge: 1
|
|
|
|
- delay: 00:30:00
|
|
- event: event_fridge_still_hot_loop
|