###################################################################### # @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: template value_template: > {% set door = states.binary_sensor.refrigerator_door_open %} {{ states('binary_sensor.refrigerator_door_open') == 'on' and door is not none and (as_timestamp(now()) - as_timestamp(door.last_changed)) > 360 }} action: - service: script.notify_engine data: title: 'Check Fridge' value1: > {% set door = states.binary_sensor.refrigerator_door_open %} {% set door_open = states('binary_sensor.refrigerator_door_open') == 'on' and door is not none and (as_timestamp(now()) - as_timestamp(door.last_changed)) > 360 %} {% if trigger.platform == 'numeric_state' %} The Blink camera temperature sensor has detected {{ states('sensor.blink_blink1_temperature') }} degrees for over 20 minutes. {% elif door_open %} The SmartThinQ fridge door sensor is still 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: > {% set door = states.binary_sensor.refrigerator_door_open %} {% set door_open = states('binary_sensor.refrigerator_door_open') == 'on' and door is not none and (as_timestamp(now()) - as_timestamp(door.last_changed)) > 360 %} Please check the fridge. The Blink camera temperature is {{ states('sensor.blink_blink1_temperature') }} degrees. {% if door_open %}The SmartThinQ fridge door sensor is open.{% endif %} no_fridge: 1 - delay: 00:30:00 - event: event_fridge_still_hot_loop