I have been using Pushsafer in Domoticz as it supports images in notifications. I wish to add a camera snapshot to the notification when the doorbell is rang or when someone enters the room. I’ve used this example:
I am using HA on a Linux server in a docker container. I just cannot seem to make it work, the icon and sound data variable work fine, but the picture is not being sent:
- alias: Send notification on doorbell
id: Send notification on doorbell
initial_state: 'on'
trigger:
- platform: state
entity_id: switch.deurbel
from: 'off'
to: 'on'
action:
- service: switch.turn_off
entity_id: switch.deurbel
- service: notify.pushsafer
data:
title: "Deurbel"
message: "Er wordt aangebeld"
data:
icon: "1"
sound: "17"
picture: {
path: "/tmp/hal.jpg"
}
The picture exists in the docker container:
-rwxrwxrwx 1 root root 186834 Jan 13 12:36 hal.jpg
I also tested to create the picture outside of the docker, in the OS. I also tried to add my Zoneminder url like this:
- alias: Send notification on doorbell
id: Send notification on doorbell
initial_state: ‘on’
trigger:- platform: state
entity_id: switch.deurbel
from: ‘off’
to: ‘on’
action: - service: switch.turn_off
entity_id: switch.deurbel - service: notify.pushsafer
data:
title: “Deurbel”
message: “Er wordt aangebeld”
data:
icon: “1”
sound: “17”
picture: {
path: “http://internalservername/zm/cgi-bin/zms?mode=single&monitor=1&user=XXX&pass=XXX”
}
- platform: state
The url works and is reachable within the container, just nothing is added to the Pushsafer notification.