Through AI, google and a couple of Web sites i have blundered my way to getting Birdnet-PI to push an MQTT notification in JSON to HA. I then have a template to split some of the attributes into seperate sesnors that i can display on my dashboard. The problem is with the Image attribute. i currenty hace this
- name: "Birdnet Image"
state: >
{% set data = states('sensor.birdnet_sightings') | from_json | default({}) %}
{{ data.Image if data.Image else 'https://rhett.cc/assets/img/2025-01-12-o2-temp2025-01-12-Birdnet-Pi-to-Home-Assistant-Integration/Pasted-image-20250112171020.png' }}
But i cannot find anyway to get the image sesnor to show the current image. Im currently trying this
image: “{{ state_attr(‘sensor.birdnet_sightings’, ‘Image’) }}”
But nothing works. Is there an easier way?