Hi:
Relative but not total Homeassistant Noob, with a mental block about YAML syntax.
I have an LG Fridge connected to ThinQ, and I have both the HACS SmartThinQ LGE Sensors and the new official LG ThinQ integrations installed.
I would like to be notified if the door if the fridge is left open for some time. I have tried a couple approaches but neither really works properly:
APPROACH 1:
alias: Notify Fridge Open
description: to DWXr
triggers:
- entity_id:
- binary_sensor.lgfridge_door_open
- binary_sensor.lgthinqfridge_door
for:
hours: 0
minutes: 0
seconds: 25
trigger: state
from: "off"
conditions: []
actions:
- data:
message: Fridge or Freezer door left open
title: Fridge or Freezer door left open
action: notify.mobile_app_myphone
- action: notify.myemail_gmail_com
metadata: {}
data:
message: FRIDGE DOOR LEFT OPEN!
target: [email protected]
mode: single
APPROACH 2:
alias: LG Fridge Notification
description: to myphone
triggers:
- entity_id:
- event.lgthinqfridge_notification
trigger: state
from: null
conditions: []
actions:
- data:
message: >-
LG ThinQ Fridge Notification: New state is {{
states('event.lgThinQFridge.notification') }}
title: Fridge or Freezer State change
data: {}
action: notify.mobile_app_myphone
- action: notify.myemail_gmail_com
data:
message: >-
LG ThinQ Fridge Notification: New state is {{
states('event.lgThinQFridge.notification') }}
target: [email protected]
mode: single
Approach 1 “sort of” works, but also randomly sends notifications even when the fridge is not touched. Approach 2 doesn’t seem to work at all.
I confess I do not really understand what I am doing. I’ve written a bunch of automations but frequently need help.
Help?