Regarding the new “image” entity:
I am 100% sure that it should work with this:
template:
- image:
- name: test_image
url: '/local/images/test/pink.jpg'
w/o specifying http, https, ports etc - in case of locally stored images.
“Should” - means “from a noob user’s PoV”.
In all other places of HA we use either “/local/…” path or “http(s)://…” path when needed.
See no reason why the “image” entity is an exception.
input_boolean:
test_xxxxxxx:
test_xxxxxxx_2:
homeassistant:
customize:
input_boolean.test_xxxxxxx:
entity_picture: '/local/images/test/pink.jpg'
input_boolean.test_xxxxxxx_2:
entity_picture: 'https://design.home-assistant.io/images/logo.png'
Here is no difference, both paths are accepted.
It could be not a bug but a poor functionality.
opened 05:20PM - 09 Jul 23 UTC
integration: image
### The problem
In all other places (at least which I dealt with) a path to an … image may be defined both ways:
```
input_boolean:
test_xxxxxxx:
test_xxxxxxx_2:
homeassistant:
customize:
input_boolean.test_xxxxxxx:
entity_picture: '/local/images/test/pink.jpg'
input_boolean.test_xxxxxxx_2:
entity_picture: 'https://design.home-assistant.io/images/logo.png'
```
i.e. by using `/local/...` path or a full url.
For the new `image` entity I cannot do it:
```
template:
- image:
- name: test_image
url: '/local/images/test/pink.jpg'
- name: test_image_2
url: 'http://192.168.0.100:8123/local/images/test/pink.jpg'
```
Here the 1st image is not properly created, there is an error:
```
Error getting new image from /local/images/test/pink.jpg: Request URL is missing an 'http://' or 'https://' protocol.
```
### What version of Home Assistant Core has the issue?
2023.7
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant Container
### Integration causing the issue
Image
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/image/
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_