Check on Fridge temps and alerts us if it goes too hot. #869
This commit is contained in:
parent
3adc9670cd
commit
41fc4ec3e5
|
@ -0,0 +1,49 @@
|
|||
#-------------------------------------------
|
||||
# @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
|
||||
above: 50
|
||||
for:
|
||||
minutes: 20
|
||||
- platform: event
|
||||
event_type: event_fridge_still_hot_loop
|
||||
|
||||
condition:
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.blink_blink1_temperature
|
||||
above: 50
|
||||
|
||||
action:
|
||||
|
||||
- service: blink.blink_update
|
||||
|
||||
- service: script.notify_engine
|
||||
data_template:
|
||||
title: 'Check Fridge'
|
||||
value1: "Please check the fridge, the temperature has been {{ states('sensor.blink_blink1_temperature') }} for about 20 minutes."
|
||||
who: 'family'
|
||||
apns_id: 'information'
|
||||
|
||||
- wait_template: "{{ states.group.family.state == 'home' }}"
|
||||
|
||||
- service: script.speech_engine
|
||||
data_template:
|
||||
value1: >
|
||||
{{ [
|
||||
"Please check the fridge, the temperature has been {{ states('sensor.blink_blink1_temperature') }} for about 20 minutes."
|
||||
] | random }}
|
||||
|
||||
- delay: 00:10:00
|
||||
- event: event_fridge_still_hot_loop
|
|
@ -54,7 +54,7 @@ automation:
|
|||
entity_id: vacuum.carlo_neato
|
||||
to: 'error'
|
||||
- platform: event
|
||||
event_type: event_did_someone_help_neato
|
||||
event_type: event_did_someone_help_neato_loop
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
|
@ -89,4 +89,4 @@ automation:
|
|||
apns_id: 'information'
|
||||
|
||||
- delay: 00:20:00
|
||||
- event: event_did_someone_help_neato
|
||||
- event: event_did_someone_help_neato_loop
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 35 KiB |
Binary file not shown.
Before Width: | Height: | Size: 176 KiB After Width: | Height: | Size: 191 KiB |
Loading…
Reference in New Issue