hi,
i have 4 windows, one controlled by xiaomi contact and rain sensor, when raining closed the windows and contact is off, send automation for closed all window(3), but i have other automation timer, open 3 windows 8:00 o’clock, the window with rain sensor is open all day, only closed if rain.
i am looking for some automation for don’t open the 3 windows 8:00 o’clock if the windows rain sensor is closed.
this is my automation
- id: ventanas 8:00
alias: ventanas 8:00 abre
trigger:
- at: 08:00:00
platform: time
- entity_id: binary_sensor.oficinaventana_contact
platform: state
to: 'off'
action:
- data: {}
entity_id: script.amanecer
service: script.toggle
but dont working, some help and sorry my english
thanks