GithubHelp home page GithubHelp logo

sam2kb / immich-home-assistant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from outadoc/immich-home-assistant

0.0 0.0 0.0 3.59 MB

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

Python 100.00%

immich-home-assistant's Introduction

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

immich-home-assistant's People

Contributors

outadoc avatar ivieb avatar lzstealth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.