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

Recent visitor image entity #88

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Recent visitor image entity #88

wants to merge 6 commits into from

Conversation

jhansche
Copy link
Owner

@jhansche jhansche commented Dec 17, 2024

Adds the recent visitor image entity, removing the need for workarounds like adding a generic camera with a template URL.

To test this PR pre-release version, go to Developer tools > Actions, and run:

action: update.install
data:
  version: pr/image-entity
target:
  entity_id: update.bird_buddy_update

@jhansche jhansche marked this pull request as ready for review December 17, 2024 00:49
@holman
Copy link

holman commented Jan 23, 2025

Would be nice to see this landed- just was trying to add a lovelace card showing my recent visitor, but that doesn't seem to be possible anymore? Generic cameras require URLs instead of templates, it seems, since I keep getting a "Relative URLs are not allowed" error message no matter how I format the quotes in the template string. Might be a bug with HA core itself, but in the meantime there doesn't seem to be a way to print the latest visitor image on-page, from what I can tell.

@jhansche
Copy link
Owner Author

I've been running the PR branch myself for a few weeks now. It's mostly working, but still has some quirks to figure out. Most notably it works great in response to real-time visits, but still has issues figuring out which image to use on initial startup.

If you want to try it out, just use the update.install service to install the branch name (pr/image-entity) as the version. I just don't think it's ready for release yet

As for the template camera issue, I've seen that before also, but iirc it only does that if the template doesn't currently evaluate to a full URL? Does the entity have an entity picture currently, and your template evaluates to a working URL when testing it in developer tools? I could be mistaken, since that screen only appears once, and once it's created there's no need to show it again.

@holman
Copy link

holman commented Jan 23, 2025

Eventually was able to get it to work- no idea how. The template was evaluating correctly to a full URL- 20th time was a charm for some reason, go figure, hah.

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

Successfully merging this pull request may close these issues.

2 participants