@Jon87 wrote:
Hi there,
I’m having trouble with setting up push notifications which send an image using information from a sensor attribute in the url.
It’s for a image based off a camera event so the image event ID needs to be passed into the url so that the correct image is picked up.
Here’s my automation which doesn’t work;
data: image: >- http://domain.com/?view=image&eid={{state_attr('sensor.front_garden_alerts', 'eventid')}}&fid=objdetect message: 'Motion Detected {{state_attr(''sensor.front_garden_alerts'', ''name'')}}' title: Motion Detected
No the odd thing is, the message section comes through ok, the attribute is resolved correctly and I get the camera info.
Also, If I change the attribute info in the url to a static eventID I get the picture through with the message.
Also, also, in the developer template if I copy my url there with the sensor attribute in, it resolves correctly and give me the correct url which when I visit, gives me the camera image.So a lot of things are working as they should be, but I get no image when I have the sensor attribute to resolve the eventID in the url. I don’t get any errors in the logs either.
Anyone done something similar and worked around this?
Thanks for the help!
Jon
Posts: 1
Participants: 1