First i used an updated pushover.py to be able to send attachments, see here; https://community.home-assistant.io/t/pushing-images-with-pushover-3-0/40667/17?u=bigben
Than I use this:
- alias: Bezoeker
trigger:
platform: state
entity_id: binary_sensor.voordeurh_line_crossing
to: 'on'
action:
- service: notify.pushover_ha
data_template:
message: 'Bezoeker om {{now().strftime("%H:%M %d-%m-%Y")}}'
data:
title: "Home Assistant"
data:
priority: 0
sound: intermission
file:
url: http://username:password@ip:port/Streaming/channels/1/picture