Hi all,
I have an issue. It seems that my automation does not trigger. I have an automation created to turn on my indoor cameras as soon as I or my wife are out of the house, and turn them on once one of us comes back home. The turn off works perfect, but the turn on does not work at all.
The components are TPLink Spot cameras that are triggered through API calls to IFTTT - both for on or off.
The scenario is simple - if my wife leaves the house (not_home from home) the automation should check if I am home and don’t turn on cameras. But if I also leave home, it should trigger and turn on the cameras.
Here is my automation script:
alias: Turn On Cameras
description: Turn the cameras on if no one is at home
trigger:
- entity_id: person.vlad_chiriloiu
from: home
platform: state
to: not_home
- entity_id: person.roxana_chiriloiu
from: home
platform: state
to: not_home
condition:
- condition: state
entity_id: person.vlad_chiriloiu
state: not_home
- condition: state
entity_id: person.roxana_chiriloiu
state: not_home
action:
- data:
entity_id: switch.kitchen_camera_control
entity_id: switch.kitchen_camera_control
service: switch.turn_on
- data:
entity_id: switch.kids_camera_control
entity_id: switch.kids_camera_control
service: switch.turn_on
- data:
entity_id: switch.livigroom_camera_control
entity_id: switch.livigroom_camera_control
service: switch.turn_on
- data:
entity_id: switch.office_camera_control
entity_id: switch.office_camera_control
service: switch.turn_on```