Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105697

Why isn't this running?

$
0
0

I am trying to get my CCTV camera to alert me when it sees a person.

I have doods set up and working. My configuration.yaml file looks like this:

image_processing:
  - platform: doods
    scan_interval: 2
    url: "http://192.168.1.106:8080"
    detector: default
    source:
      - entity_id: camera.front_gate
      - entity_id: camera.back_yard
      - entity_id: camera.side_garden
      - entity_id: camera.back_gate

and then I have the following automation script for each of my cameras.

- id: "1620306986698"
  alias: Andriod - Alert Back yard
  description: ""
  trigger:
    - platform: state
      entity_id: image_processing.doods_back_yard
      attribute: total_matches
      from: "0"
  condition: []
  action:
    - service: notify.mobile_app_mat
      data:
        message: Back yard
        title: Person detected
        data:
          image: http://192.168.1.200:8123/local/doods_cam.jpg
          actions:
            - action: URI
              title: View live CCTV
              uri: lovelace/cctv
  mode: single

If I run the automation code manually it works as expected but it doesn’t seem to trigger automatically. I can see that my doods element is working because I can see the history of the entity that is changing when it sees someone.

What am i missing?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105697

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>