Hello
I have a Big Ass Fan which has an inbuilt motion sensor. The intent of the automation is when it’s between 21:00:00 & 22:00:00 if motion is detected the curtain closes. There is a small issue when the time condition is met at 21:00:00 the sensor changes status from Clear to Detected and closes the curtain. Is there any modification that could be made to automation to avoid the motion status changing?
alias: "Night Time: Bedroom Curtain Close"
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.bedroom_fan_occupancy
to: "on"
for:
hours: 0
minutes: 0
seconds: 15
condition:
- condition: state
entity_id: input_boolean.vacation_mode
state: "off"
- condition: time
after: "21:00:00"
before: "22:00:00"
weekday:
- sun
- sat
- fri
- thu
- wed
- tue
- mon
- condition: device
device_id: 0b2147f086c9bab661913ffccde508c5
domain: cover
entity_id: cover.bedroom_curtain
type: is_position
above: 1
action:
- device_id: 0b2147f086c9bab661913ffccde508c5
domain: cover
entity_id: cover.bedroom_curtain
type: set_position
position: 0
mode: single