TawfikDaim / home_automation

home automation user stories
0 stars 0 forks source link

Motion detection by camera/frigate #89

Open TawfikDaim opened 5 days ago

TawfikDaim commented 5 days ago

   -  maindoor:
     ffmpeg:
       inputs:
         - path: rtsp://admin:Newipad1@192.168.1.103:554/Steaming/Channels/101
           roles:
             - rtmp
             - detect
     motion:
       mask:
         - 2373,0,1928,627,0,573,0,0 

This is better than adding motion mask outside all camera, as each camera will have different region of interest.

N.B. a better option was to use the person count as a trigger for automation but unfortnately this does only work when there is sufficient light conditions so it totally fails at night.

TawfikDaim commented 5 days ago

This automation is currently under testing to see if motion triggers will work. Ideally when a motion is detected it should send a whatsapp message.

alias: motion detected at main door by camera/frigate
description: ""
triggers:
  - trigger: state
    entity_id:
      - switch.maindoor_motion
    to: "on"
conditions: []
actions:
  - data:
      message: Motion detected at main door
      target: 120363318337012938@g.us
    action: notify.greenapi
mode: single