Hello,
I have an issue I can’t overcome.
I have an automation which deactivates the Synology Home Mode.
As for now, it works quite well. It deactivates it as soon as both persons have left the house.
However, since I hooked up the camera to Synology Surveillance Station it triggers regularly when there is sun coming in. I’m flooded with false alarms.
So I bought an Aquara FP2 and would like to add it to the existing automation.
So what it is supposed to do is:
Deactivate Home Mode if both persons are out of house (as it is now) AND if there is presence detected.
I don’t understand where I should put the FP2 in.
I had it in the triggers part and in the conditions part as additional AND.
None of those work.
Here is how it looks with triggers:
alias: Surv On
description: ""
trigger:
- platform: state
entity_id:
- person.xxx
from: home
to: not_home
- platform: state
entity_id:
- person.yyy
from: home
to: not_home
- platform: state
entity_id:
- binary_sensor.presence_sensor_fp2_04aa_presence_sensor_1
from: "off"
to: "on"
condition:
- condition: and
conditions:
- condition: state
entity_id: person.xxx
state: not_home
- condition: state
entity_id: person.yyy
state: not_home
action:
- type: turn_off
device_id: xxxxx
entity_id: xxxxx
domain: switch
mode: restart
And this was my attempt thought the conditions:
alias: Surv On
description: ""
trigger:
- platform: state
entity_id:
- person.xxx
from: home
to: not_home
- platform: state
entity_id:
- person.yyy
from: home
to: not_home
condition:
- condition: and
conditions:
- condition: state
entity_id: person.xxx
state: not_home
- condition: state
entity_id: person.yyy
state: not_home
- condition: state
entity_id: binary_sensor.presence_sensor_fp2_04aa_presence_sensor_1
state: "on"
action:
- type: turn_off
device_id: xxxxxxx
entity_id: xxxxxxx
domain: switch
mode: restart
Could you help me out here?
What am I missing?
Why is this not turning off Home Mode?
Edit: now that I wrote that, could you tell me how I’d go about deactivating it “temporary”?
I have a working automation which turns on Home Mode as soon as one of the persons is at home again, but I’d handle that as a separate off-switch. Would that be possible by combining both examples above? If they work…
Thanks for reading.