From 0adedc32f35edb17ae7fea75c62d7ee91a133c5c Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Mon, 21 Jul 2025 14:02:10 -0400 Subject: [PATCH] Add automation for fridge door open notification in fridge.yaml, integrating ThinLg HACS for enhanced sensor support. This automation alerts family members if the fridge door remains open for over 5 minutes, ensuring timely action to prevent temperature issues. ThinQ LG integration #1165 --- config/packages/fridge.yaml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 config/packages/fridge.yaml diff --git a/config/packages/fridge.yaml b/config/packages/fridge.yaml new file mode 100644 index 00000000..964fea23 --- /dev/null +++ b/config/packages/fridge.yaml @@ -0,0 +1,38 @@ +#------------------------------------------- +# @CCOSTAN +# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig +# Support for LG Fridges (https://amzn.to/3lOYTCv) +# Added ThinLg HACS integration for Fridge sensors - https://github.com/ollo69/ha-smartthinq-sensors +#------------------------------------------- + +automation: + - alias: 'Fridge Door Open' + id: 2346efcd-e8a8-4e86-b5b6-43eBl1nkFr1dge95D00r0pen + mode: single + trigger: + - platform: state + entity_id: binary_sensor.refrigerator_door_open + to: 'on' + for: + minutes: 5 + condition: + - condition: state + entity_id: binary_sensor.refrigerator_door_open + state: 'on' + action: + - service: script.notify_engine + data: + title: 'Fridge Door Open' + value1: > + The fridge door has been open for more than 5 minutes. Please check and close the fridge door to avoid temperature issues. + who: 'family' + group: 'information' + + - wait_template: "{{ states.group.family.state == 'home' }}" + + - service: script.speech_engine + data: + value1: "Attention! The fridge door has been open for more than 5 minutes. Please close the fridge door." + + - delay: 00:30:00 + - event: event_fridge_door_open