Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

template "image" entity: cannot specify "/local/...." path for images #96212

Open
ildar170975 opened this issue Jul 9, 2023 · 9 comments
Open

Comments

@ildar170975
Copy link

ildar170975 commented Jul 9, 2023

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.

I am 100% sure that users should have the same way to specify a path to images here - as they do in other places of HA.
This could be not a bug - but an example of inconsistency.

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

@home-assistant
Copy link

home-assistant bot commented Jul 9, 2023

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (image) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of image can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign image Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


image documentation
image source
(message by IssueLinks)

@snozzlebert
Copy link

Same for changing the local_file camera to the template image platform. This is possible with the camera platform:

platform: local_file
name: QR code
file_path: <path to image file>

However it doesn't work with an image template. It can only reference an URL.

@ColColonCleaner
Copy link

Would very much like to see this resolved. Thanks for creating the issue!

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@ildar170975
Copy link
Author

up

@github-actions github-actions bot removed the stale label Oct 25, 2023
@Montreal666
Copy link

Montreal666 commented Nov 18, 2023

still an issue

@andorardo
Copy link

There is a community discussion about this here: https://community.home-assistant.io/t/2023-7-image-entity-local-image/588753

I found the problem persists whether I'm on an HTTP or HTTPS connection.

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@ildar170975
Copy link
Author

up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants