I have used two conditions for my Garage door. If it’s open for more than 5 mins then send notification
However, when I add another condition with Or, it’s failing. Is it because all conditions need to be true ?
How to get this working then ?
alias: 'Notify: Garage door open'
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.zone_9
for:
hours: 0
minutes: 5
seconds: 0
to: 'on'
condition:
- condition: time
before: '08:00:00'
after: '18:00:00'
weekday:
- sun
- sat
- fri
- thu
- wed
- tue
- mon
- condition: or
conditions:
- condition: time
before: '17:00:00'
after: '09:00:00'
weekday:
- fri
- thu
- wed
- tue
- mon
action:
- service: notify.mobile_app_pixel_4_xl
data:
title: Warning!
message: Garage door is open
mode: single