outadoc / immich-home-assistant

Home Assistant component to display random pictures from your Immich library.
19 stars 7 forks source link

'All Photos' entity not loading any photos #6

Open eglen opened 4 weeks ago

eglen commented 4 weeks ago

The other entities such as "Random Favourite Image" and "Shared" albums are working fine, but I'd like to make use of the 'All Photos'' entity. I'm fairly new to HA so not sure where to look for more details but found this in the logs:

This error originated from a custom integration.

Logger: custom_components.immich.image
Source: custom_components/immich/image.py:107
integration: Immich (documentation, issues)
First occurred: May 26, 2024 at 2:30:23 PM (4215 occurrences)
Last logged: 9:11:21 PM

No assets are available

For reference: image

vs

image

Thanks for building this! Appreciate any guidance or help you can offer.

eglen commented 4 weeks ago

I just realised I may have made an 'All Photos' album that never had any photos in it and I subsequently deleted because I couldn't find a way to add all my photos in it easily.

That may change this in to a feature request or question of how to go about creating an entity in HA that always has all my photos in it without having to maintain an album for that.

eglen commented 3 weeks ago

Answered my own question - this currently only supports albums, but there's a random asset API from Immich that I should be able to work in to the current scheme. Will try to take some time to work on it.