Untitled

mail@pastecode.io avatar
unknown
plain_text
15 days ago
1.9 kB
5
Indexable
Never
alias: snapshots motion back
description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.aarlo_motion_back_door_cam
    from: null
  - platform: state
    entity_id:
      - image_processing.doods_aarlo_back_door_cam
    attribute: summary
condition: []
action:
  - action: image_processing.scan
    metadata: {}
    data: {}
    target:
      entity_id:
        - image_processing.doods_aarlo_back_door_cam
  - action: switch.turn_on
    metadata: {}
    data: {}
    target:
      entity_id:
        - switch.aarlo_snapshot_back_door_cam
        - switch.aarlo_snapshot_front_door_cam
  - action: switch.turn_off
    metadata: {}
    data: {}
    target:
      entity_id:
        - switch.aarlo_snapshot_front_door_cam
        - switch.aarlo_snapshot_back_door_cam
  - action: notify.lg_webos_tv_uh6150
    data:
      message: >-
        back door motion
        {{state_attr('image_processing.doods_aarlo_back_door_cam','summary') }}
      data:
        image: /local/doods/aarlo_back_door_cam_latest.jpg
  - action: notify.mobile_app_fold6
    metadata: {}
    data:
      message: >-
        back door motion
        {{state_attr('image_processing.doods_aarlo_back_door_cam','summary') }}
      data:
        image: /local/doods/aarlo_back_door_cam_latest.jpg
        clickAction: /lovelace-home
  - action: notify.alexa_media_kitchen_show
    metadata: {}
    data:
      message: >-
        back door motion
        {{state_attr('image_processing.doods_aarlo_back_door_cam','summary') }}
      data:
        image: /local/doods/aarlo_back_door_cam_latest.jpg
        clickAction: /lovelace-home/0
  - action: notify.asus_laptop
    metadata: {}
    data:
      message: >-
        back door motion
        {{state_attr('image_processing.doods_aarlo_back_door_cam','summary') }}
      data:
        image: /local/doods/aarlo_back_door_cam_latest.jpg
        clickAction: /lovelace-home/0
mode: single
Leave a Comment