From 436139ede97034ac64624470d20705ea18cbe511 Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Fri, 30 Jan 2026 14:11:28 +0300 Subject: [PATCH] Prepare the integration for HACS installation --- README.md | 24 ++++++++++-------- .../immich_album_watcher}/README.md | 0 .../immich_album_watcher}/__init__.py | 0 .../immich_album_watcher}/binary_sensor.py | 0 .../immich_album_watcher}/button.py | 0 .../immich_album_watcher}/camera.py | 0 .../immich_album_watcher}/config_flow.py | 0 .../immich_album_watcher}/const.py | 0 .../immich_album_watcher}/coordinator.py | 0 .../immich_album_watcher}/icon.png | Bin .../immich_album_watcher/manifest.json | 12 +++++++++ .../immich_album_watcher}/sensor.py | 0 .../immich_album_watcher}/services.yaml | 0 .../immich_album_watcher}/strings.json | 0 .../immich_album_watcher}/text.py | 0 .../translations/en.json | 0 .../translations/ru.json | 0 hacs.json | 6 +++++ immich_album_watcher/manifest.json | 12 --------- 19 files changed, 32 insertions(+), 22 deletions(-) rename {immich_album_watcher => custom_components/immich_album_watcher}/README.md (100%) rename {immich_album_watcher => custom_components/immich_album_watcher}/__init__.py (100%) rename {immich_album_watcher => custom_components/immich_album_watcher}/binary_sensor.py (100%) rename {immich_album_watcher => custom_components/immich_album_watcher}/button.py (100%) rename {immich_album_watcher => custom_components/immich_album_watcher}/camera.py (100%) rename {immich_album_watcher => custom_components/immich_album_watcher}/config_flow.py (100%) rename {immich_album_watcher => custom_components/immich_album_watcher}/const.py (100%) rename {immich_album_watcher => custom_components/immich_album_watcher}/coordinator.py (100%) rename {immich_album_watcher => custom_components/immich_album_watcher}/icon.png (100%) create mode 100644 custom_components/immich_album_watcher/manifest.json rename {immich_album_watcher => custom_components/immich_album_watcher}/sensor.py (100%) rename {immich_album_watcher => custom_components/immich_album_watcher}/services.yaml (100%) rename {immich_album_watcher => custom_components/immich_album_watcher}/strings.json (100%) rename {immich_album_watcher => custom_components/immich_album_watcher}/text.py (100%) rename {immich_album_watcher => custom_components/immich_album_watcher}/translations/en.json (100%) rename {immich_album_watcher => custom_components/immich_album_watcher}/translations/ru.json (100%) create mode 100644 hacs.json delete mode 100644 immich_album_watcher/manifest.json diff --git a/README.md b/README.md index 77ac0a6..b724e8e 100644 --- a/README.md +++ b/README.md @@ -6,25 +6,29 @@ A collection of custom integrations for Home Assistant. | Integration | Description | Documentation | |-------------|-------------|---------------| -| [Immich Album Watcher](immich_album_watcher/) | Monitor Immich albums for changes with sensors, events, and face recognition | [README](immich_album_watcher/README.md) | +| [Immich Album Watcher](custom_components/immich_album_watcher/) | Monitor Immich albums for changes with sensors, events, and face recognition | [README](custom_components/immich_album_watcher/README.md) | ## Installation +### HACS Installation (Recommended) + +1. Open HACS in Home Assistant +2. Click on the three dots in the top right corner +3. Select **Custom repositories** +4. Add this repository URL: `https://git.dolgolyov-family.by/alexei.dolgolyov/haos-integrations` +5. Select **Integration** as the category +6. Click **Add** +7. Search for "Immich Album Watcher" in HACS and install it +8. Restart Home Assistant +9. Add the integration via **Settings** → **Devices & Services** → **Add Integration** + ### Manual Installation 1. Download or clone this repository -2. Copy the desired integration folder (e.g., `immich_album_watcher`) to your Home Assistant `custom_components` directory +2. Copy the `custom_components/immich_album_watcher` folder to your Home Assistant `config/custom_components` directory 3. Restart Home Assistant 4. Add the integration via **Settings** → **Devices & Services** → **Add Integration** -### HACS Installation - -1. Open HACS in Home Assistant -2. Go to **Integrations** → **Custom repositories** -3. Add this repository URL -4. Install the desired integration -5. Restart Home Assistant - ## Contributing Contributions are welcome! Please feel free to submit issues or pull requests. diff --git a/immich_album_watcher/README.md b/custom_components/immich_album_watcher/README.md similarity index 100% rename from immich_album_watcher/README.md rename to custom_components/immich_album_watcher/README.md diff --git a/immich_album_watcher/__init__.py b/custom_components/immich_album_watcher/__init__.py similarity index 100% rename from immich_album_watcher/__init__.py rename to custom_components/immich_album_watcher/__init__.py diff --git a/immich_album_watcher/binary_sensor.py b/custom_components/immich_album_watcher/binary_sensor.py similarity index 100% rename from immich_album_watcher/binary_sensor.py rename to custom_components/immich_album_watcher/binary_sensor.py diff --git a/immich_album_watcher/button.py b/custom_components/immich_album_watcher/button.py similarity index 100% rename from immich_album_watcher/button.py rename to custom_components/immich_album_watcher/button.py diff --git a/immich_album_watcher/camera.py b/custom_components/immich_album_watcher/camera.py similarity index 100% rename from immich_album_watcher/camera.py rename to custom_components/immich_album_watcher/camera.py diff --git a/immich_album_watcher/config_flow.py b/custom_components/immich_album_watcher/config_flow.py similarity index 100% rename from immich_album_watcher/config_flow.py rename to custom_components/immich_album_watcher/config_flow.py diff --git a/immich_album_watcher/const.py b/custom_components/immich_album_watcher/const.py similarity index 100% rename from immich_album_watcher/const.py rename to custom_components/immich_album_watcher/const.py diff --git a/immich_album_watcher/coordinator.py b/custom_components/immich_album_watcher/coordinator.py similarity index 100% rename from immich_album_watcher/coordinator.py rename to custom_components/immich_album_watcher/coordinator.py diff --git a/immich_album_watcher/icon.png b/custom_components/immich_album_watcher/icon.png similarity index 100% rename from immich_album_watcher/icon.png rename to custom_components/immich_album_watcher/icon.png diff --git a/custom_components/immich_album_watcher/manifest.json b/custom_components/immich_album_watcher/manifest.json new file mode 100644 index 0000000..c800775 --- /dev/null +++ b/custom_components/immich_album_watcher/manifest.json @@ -0,0 +1,12 @@ +{ + "domain": "immich_album_watcher", + "name": "Immich Album Watcher", + "codeowners": ["@alexei.dolgolyov"], + "config_flow": true, + "dependencies": [], + "documentation": "https://git.dolgolyov-family.by/alexei.dolgolyov/haos-integrations", + "iot_class": "cloud_polling", + "issue_tracker": "https://git.dolgolyov-family.by/alexei.dolgolyov/haos-integrations/issues", + "requirements": [], + "version": "1.2.0" +} diff --git a/immich_album_watcher/sensor.py b/custom_components/immich_album_watcher/sensor.py similarity index 100% rename from immich_album_watcher/sensor.py rename to custom_components/immich_album_watcher/sensor.py diff --git a/immich_album_watcher/services.yaml b/custom_components/immich_album_watcher/services.yaml similarity index 100% rename from immich_album_watcher/services.yaml rename to custom_components/immich_album_watcher/services.yaml diff --git a/immich_album_watcher/strings.json b/custom_components/immich_album_watcher/strings.json similarity index 100% rename from immich_album_watcher/strings.json rename to custom_components/immich_album_watcher/strings.json diff --git a/immich_album_watcher/text.py b/custom_components/immich_album_watcher/text.py similarity index 100% rename from immich_album_watcher/text.py rename to custom_components/immich_album_watcher/text.py diff --git a/immich_album_watcher/translations/en.json b/custom_components/immich_album_watcher/translations/en.json similarity index 100% rename from immich_album_watcher/translations/en.json rename to custom_components/immich_album_watcher/translations/en.json diff --git a/immich_album_watcher/translations/ru.json b/custom_components/immich_album_watcher/translations/ru.json similarity index 100% rename from immich_album_watcher/translations/ru.json rename to custom_components/immich_album_watcher/translations/ru.json diff --git a/hacs.json b/hacs.json new file mode 100644 index 0000000..d0bd4ce --- /dev/null +++ b/hacs.json @@ -0,0 +1,6 @@ +{ + "name": "Immich Album Watcher", + "homeassistant": "2024.1.0", + "render_readme": true, + "content_in_root": false +} diff --git a/immich_album_watcher/manifest.json b/immich_album_watcher/manifest.json deleted file mode 100644 index 0658adc..0000000 --- a/immich_album_watcher/manifest.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "domain": "immich_album_watcher", - "name": "Immich Album Watcher", - "codeowners": [], - "config_flow": true, - "dependencies": [], - "documentation": "https://github.com/your-repo/immich-album-watcher", - "iot_class": "cloud_polling", - "issue_tracker": "https://github.com/your-repo/immich-album-watcher/issues", - "requirements": [], - "version": "1.2.0" -}