briis/securityspy

trigger to human or veichle don't work

Opened this issue · 1 comments

Hi, I'm trying to write an automation that sends a telegram notification when a Human is detected. I'm sure the code works because the "action" part works great on another automation. I think this integration has some problems. Or am I doing something wrong?

alias: Capture snapshot when person is detected
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.esterna_motion
    attribute: event_object
    to: human
# condition: []
action:
  - service: notify.nico
    data_template:
      message: "ripresa esterna"
      data:
        photo:
          - url: 'http://test.local:8000/image?cameraNxxxxxxxx'
            caption: "test human"  {{now().strftime("%d.%m.%y - %H:%M:%S")}}  

If I do external camera entity status update from tools and developers, it detects humans. But the automation code, which seems to be right, doesn't work.
Schermata 2024-02-28 alle 11 56 37