Skip to content

Home Assistant component to display random pictures from your Immich library.

Notifications You must be signed in to change notification settings

outadoc/immich-home-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Immich × Home Assistant GitHub Release GitHub Actions Workflow Status

This custom integration for Home Assistant allows you to display random pictures from your Immich instance right inside your dashboards.

What is Immich?

Immich is a "high performance self-hosted photo and video backup solution".
Find more on their website.

What is Home Assistant?

Home Assistant provides "open source home automation that puts local control and privacy first".
Find more on their website.

Installation

Install this component via HACS.

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

Restart Home Assistant once the integration has been installed.

What can I do with this project?

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:

type: panel
title: Photo frame
path: photo-frame
icon: mdi:image-frame
subview: true
cards:
  - type: picture-entity
    entity: image.immich_favorite_image
    show_state: false
    show_name: false
    aspect_ratio: "16:9"
    fit_mode: contain

You can then use this dashboard on a dedicated device in kiosk mode.

You could even display in onto a Nest Hub device with the Home Assistant Cast feature − you can finally say goodbye to Google Photos! 🎉

- service: cast.show_lovelace_view
  data:
    entity_id: media_player.<your-chromecast-device>
    dashboard_path: lovelace
    view_path: photo-frame

A Nest Hub 2 showing a cat picture, straight from Home Assistant

How does it work?

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.

These entities can be displayed using standard lovelace cards − for example, the picture, or picture-entity cards.

Example usage: a picture card showing a picture from Immich

Configuration

You can set up the Immich integration right from the web UI.

Open your Home Assistant instance and start setting up a new integration.

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.

'API Keys' section on the Immich account settings page

Exposing other albums

By default, only the "Favorites" album is exposed as an entity.

You can expose more albums on the integration's options page.

Warning

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.

A list of four image entities provided by the Immich integration