Hello,
I am trying to attach an image from an image sensor in an iOS notification. I know how to do this with a local image when I send a picture of who is at my front door. My problem is that I don’t know how to include the image from an image sensor.
Specifically, when my Deebot throws an error, I would like to include the current map from the Ecovacs integration so I know where it got stuck. I know that there is an image.deebot_map sensor and that there is an attribute with a path to the image like this: /api/image_proxy/image.deebot_map?token=4723e8dd0dc94ec480d82e0ca06e884715ea2be4aee6ffa5d0419f2241123a05
but I don’t know how to translate that to YAML
the code that works for my doorbell looks like:
data:
message: Person detected at the front door
data:
subtitle: ""
image: /local/tmp/front_door.jpg
action: notify.my_devices
Any guidance would be appreciated. My first guess was something like:
data:
message: Deebot has an error
data:
subtitle: ""
image: {{ state_attr('image.deebot_map','entity_picture') }}
action: notify.my_devices
But, alas, that did not work.