|
1 | | -# Immich integration for Home Assistant |
| 1 | +# Immich × Home Assistant   |
2 | 2 |
|
3 | | -This custom integration for Home Assistant allows you to display random pictures from your Immich instance inside Home Assistant. |
| 3 | +This custom integration for Home Assistant allows you to display random pictures from your Immich instance right inside your dashboards. |
4 | 4 |
|
5 | | -The pictures will be provided under an `image` entity, which should work with other Home Assistant components, like the `picture` card. |
| 5 | +### What is Immich? |
6 | 6 |
|
7 | | -A random image will be fetched every 5 minutes. |
8 | | -The images are selected from your Favorites on your Immich instance. |
| 7 | +Immich is a "high performance self-hosted photo and video backup solution". |
| 8 | +[Find more on their website](https://immich.app). |
| 9 | + |
| 10 | +### What is Home Assistant? |
| 11 | + |
| 12 | +Home Assistant provides "open source home automation that puts local control and privacy first". |
| 13 | +[Find more on their website](https://www.home-assistant.io). |
| 14 | + |
| 15 | +## Installation |
| 16 | + |
| 17 | +Install this component _via_ [HACS](https://hacs.xyz). |
| 18 | + |
| 19 | +[](https://my.home-assistant.io/redirect/hacs_repository/?repository=immich-home-assistant&category=Integration&owner=outadoc) |
| 20 | + |
| 21 | +Restart Home Assistant once the integration has been installed. |
| 22 | + |
| 23 | +## What can I do with this project? |
| 24 | + |
| 25 | +As a suggestion, you could use this integration to create a picture frame. You can create a "pane" dashboard, and display your picture entity inside of it: |
| 26 | + |
| 27 | +```yaml |
| 28 | +type: panel |
| 29 | +title: Photo frame |
| 30 | +path: photo-frame |
| 31 | +icon: mdi:image-frame |
| 32 | +subview: true |
| 33 | +cards: |
| 34 | + - type: picture-entity |
| 35 | + entity: image.immich_favorite_image |
| 36 | + show_state: false |
| 37 | + show_name: false |
| 38 | + aspect_ratio: "16:9" |
| 39 | + fit_mode: contain |
| 40 | +``` |
| 41 | +
|
| 42 | +You can then use this dashboard on a dedicated device in kiosk mode. |
| 43 | +
|
| 44 | +You could even display in onto a Nest Hub device with the [Home Assistant Cast](https://www.home-assistant.io/integrations/cast/#home-assistant-cast) feature − you can finally say goodbye to Google Photos! 🎉 |
| 45 | +
|
| 46 | + |
| 47 | +
|
| 48 | +## How does it work? |
| 49 | +
|
| 50 | +The integration can provide multiple `image` entities, which each correspond to an album. Each entity will switch to a new random image every 5 minutes. |
| 51 | + |
| 52 | +These entities can be displayed using standard lovelace cards − for example, the `picture`, or `picture-entity` cards. |
| 53 | + |
| 54 | +<img src="assets/entity-card.png" width="600" alt="Example usage: a picture card showing a picture from Immich"> |
| 55 | + |
| 56 | +## Configuration |
| 57 | + |
| 58 | +You can set up the Immich integration right from the web UI. |
| 59 | + |
| 60 | +[](https://my.home-assistant.io/redirect/config_flow_start/?domain=immich) |
| 61 | + |
| 62 | +You will need to enter your instance's URL and an API key. You can generate it from your Account Settings, on your Immich instance. |
| 63 | + |
| 64 | +<img src="assets/immich-api-key.png" width="600" alt="'API Keys' section on the Immich account settings page"> |
| 65 | + |
| 66 | +### Exposing other albums |
| 67 | + |
| 68 | +By default, only the "Favorites" album is exposed as an entity. |
| 69 | + |
| 70 | +You can expose more albums on the integration's options page. |
| 71 | + |
| 72 | +> [!WARNING] |
| 73 | +> Exposing many albums might consume a lot of resources on your Home Assistant machine, and will also increase the number of calls to your Immich instance. |
| 74 | + |
| 75 | +<img src="assets/entity-list.png" width="600" alt="A list of four image entities provided by the Immich integration"> |
0 commit comments