Hi!
I’m trying to update a “local_file” camera image with a template.
This is how my “local_file” look like:
camera:
#################################
# Aircraft Latest Seen airplane #
#################################
- platform: local_file
file_path: http://192.168.1.10/path/path/aircraft_images/{{state_attr('sensor.aircraft_info_nearest_plane_data','icao24')}}.jpg
name: Aircaft Last Seen Plane image
And the path is updated when a automation is triggered:
service: local_file.update_file_path
data:
file_path: >-
http://192.168.1.10/path/path/aircraft_images/{{state_attr('sensor.aircraft_info_nearest_plane_data','icao24')}}.jpg
entity_id: camera.aircaft_last_seen_plane_image
But the logs say:
Logger: homeassistant.components.local_file.camera
Source: components/local_file/camera.py:103
Integration: local_file (documentation, issues)
First occurred: 17:58:32 (14 occurrences)
Last logged: 18:44:50
Could not read camera Aircaft Last Seen Plane image image from file: http://192.168.1.10/path/path/aircraft_images/4ab565.jpg
The file is there… What should I look for, any tips?