I have two door sensors (aqaras). I have one attached to my back door and one attached to my aircon (it is a wall hung unit). I want to get a notification (via the home assistant ios app on my phone) when the aircon is on (ie the aircon sensor is “open”) and the back door is open.
It ran the first time when I tested it I received the notifications. Even though I have closed both sensors and opened them again, I have yet to receive any other notifications. Any ideas what I am doing wrong? Below is my automation script:-
- id: '1635414627791'
alias: Notify when door is open and aircon is on
description: ''
trigger:
- type: opened
platform: device
device_id: 335c4df678f50a2891b76107ad9eade4
entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_acbc7507_on_off
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
id: DoorOpenTooLong
- type: opened
platform: device
device_id: 19339859d4d94085b07f9088b4e3d301
entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_on_off
domain: binary_sensor
id: AirConOn
condition:
- condition: and
conditions:
- condition: trigger
id: DoorOpenTooLong
- condition: trigger
id: AirConOn
action:
- service: notify.mobile_app_the_iphone
data:
message: Aircon is on and the door is open
title: CLOSE THE GOD DAMN DOOR
mode: queued
max: 10