Hi Everyone,
I need your help about automations. I’m not expert with HA I’ve two window sensor. If I’m not at home and one of the windows is open (i forgot the windows as open) I want to be notified. I can do this for a single window but what I want to do is get alerts no matter what window is open. I tried a lot of way but i could not. What’s wrong i dont know. My example automation is this;
alias: Example
description: ''
trigger:
- platform: state
entity_id: person.okan
to: not_home
condition:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.salon_pencere_sensoru_pencere
state: 'on'
- condition: or
conditions:
- condition: state
state: 'on'
entity_id: binary_sensor.giris_kapisi_kapi_sensoru_kapi
action:
- service: notify.mobile_app_okan_iphone
data:
message: Window is open!
mode: single
Very strange, looks like “or” is not working. I mean if one of window is open but another window is closed, not sent any notification. But normally should be if one of window is open it can be work, because i used “or” am i wrong? Please somebody check and help me about that?
Thanks in advance