#Camera recording based if someones home

1 messages · Page 1 of 1 (latest)

quick tangle
#

Hello, I am trying to make an automation to make my Reolink camera to record only if everyone is not home and if at least one is home it will stop recording stuff.
(its me, my dad and my mom)

I am not sure how to setup the triggers and conditions.
Any help?

quick tangle
#
description: >-
  Controls two specific switches, turning them on when no one is home and off
  when someone arrives.
triggers:
  - trigger: numeric_state
    entity_id:
      - zone.home
    attribute: persons
    below: 1
    id: Away
  - trigger: numeric_state
    entity_id:
      - zone.home
    attribute: persons
    above: 0
    id: At Home
conditions: []
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - Away
        sequence:
          - type: turn_on
            device_id: 437ad3c98481f9d1f0e5b8fb459037dc
            entity_id: e66b2b68480756ab914fbffea6286eb1
            domain: switch
          - type: turn_on
            device_id: 437ad3c98481f9d1f0e5b8fb459037dc
            entity_id: 1ae0c7ff2516d2d6d1ee4118f0af654e
            domain: switch
          - type: turn_on
            device_id: 437ad3c98481f9d1f0e5b8fb459037dc
            entity_id: 16f2a01fe21bd6849621db8e94e25675
            domain: switch
      - conditions:
          - condition: trigger
            id:
              - At Home
        sequence:
          - type: turn_off
            device_id: 437ad3c98481f9d1f0e5b8fb459037dc
            entity_id: e66b2b68480756ab914fbffea6286eb1
            domain: switch
          - type: turn_off
            device_id: 437ad3c98481f9d1f0e5b8fb459037dc
            entity_id: 1ae0c7ff2516d2d6d1ee4118f0af654e
            domain: switch
          - type: turn_off
            device_id: 437ad3c98481f9d1f0e5b8fb459037dc
            entity_id: 16f2a01fe21bd6849621db8e94e25675
            domain: switch
mode: single
#

actually i just made this, what do you guys think?

warped pebble
#

Yeah, looks fine 🙂