2020-09-06 17:44:40 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
# @CCOSTAN
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
|
|
# Support for Blink Cameras (https://amzn.to/3lOYTCv)
|
|
|
|
#-------------------------------------------
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
### Automations
|
|
|
|
##############################################################################
|
|
|
|
automation:
|
|
|
|
- alias: 'Fridge Temp Watch'
|
|
|
|
id: 2346efcd-e8a8-4e86-b5b6-43eBl1nkFr1dge95f
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.blink_blink1_temperature
|
2024-11-11 04:41:35 +00:00
|
|
|
above: 60
|
2020-09-06 17:44:40 +00:00
|
|
|
for:
|
|
|
|
minutes: 20
|
|
|
|
- platform: event
|
|
|
|
event_type: event_fridge_still_hot_loop
|
|
|
|
|
|
|
|
condition:
|
|
|
|
- condition: numeric_state
|
|
|
|
entity_id: sensor.blink_blink1_temperature
|
2024-11-11 04:41:35 +00:00
|
|
|
above: 60
|
2020-09-06 17:44:40 +00:00
|
|
|
|
|
|
|
action:
|
|
|
|
|
|
|
|
- service: script.notify_engine
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2020-09-06 17:44:40 +00:00
|
|
|
title: 'Check Fridge'
|
2020-09-08 17:30:27 +00:00
|
|
|
value1: "Please check the fridge, the temperature has been {{ states('sensor.blink_blink1_temperature') }} degrees for at least 20 minutes."
|
2020-09-06 17:44:40 +00:00
|
|
|
who: 'family'
|
2023-11-17 22:16:41 +00:00
|
|
|
group: 'information'
|
2020-09-06 17:44:40 +00:00
|
|
|
|
|
|
|
- wait_template: "{{ states.group.family.state == 'home' }}"
|
|
|
|
|
|
|
|
- service: script.speech_engine
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2020-09-12 02:23:54 +00:00
|
|
|
value1: "Please check the fridge, the temperature has been {{ states('sensor.blink_blink1_temperature') }} degrees for at least 20 minutes."
|
|
|
|
no_fridge: 1
|
2020-09-06 17:44:40 +00:00
|
|
|
|
2020-09-08 17:30:27 +00:00
|
|
|
- delay: 00:30:00
|
2020-09-06 17:44:40 +00:00
|
|
|
- event: event_fridge_still_hot_loop
|