A Home Assistant custom integration for managing packages on Synology NAS devices - update entities for DSM firmware, installed packages, and Docker containers, plus switch entities for Docker compose project control.
Note
This integration was almost entirely AI-coded (Claude). It has automated tests and works against a real NAS, but it has not had a thorough line-by-line human review. Use at your own risk, review it before trusting it on your system, and please report any issues.
- DSM Firmware Updates - see available DSM versions and trigger upgrades
- Package Updates - track and install updates for all installed Synology packages
- Container Updates - detect and apply Docker container image updates via Container Manager, with support for compose projects grouped as single entities
- Compose Project Switches - start and stop Docker compose projects from Home Assistant
- Security Advisor Scan - a button to trigger a Security Advisor scan on demand (also run automatically after a package upgrade)
- Task Scheduler Tasks - each user-defined task is a sub-device with a Run button and Last run, Next run, Last result, and Last exit code sensors (boot-up/shutdown tasks get the sensors only)
- Devices - all entities sit on one NAS device (model, serial, DSM version, link to DSM); each compose project is a sub-device holding its switch and update entity
Or manually add as a custom repository:
- Open HACS in Home Assistant
- Click the three dots menu → Custom repositories
- Add
https://github.com/alexives/home-assistant-synology-managerwith category "Integration" - Search for "Synology Manager" and install
- Restart Home Assistant
- Add the integration via Settings → Devices & Services → Add Integration
Copy custom_components/synology_manager to your HA custom_components directory.
The integration is configured via the UI. You'll need:
- NAS hostname or IP address
- Port (default: 5001 for HTTPS)
- Admin username and password
- OTP code if 2FA is enabled
Synology doesn't detect updates for ghcr.io / lscr.io images itself, so for those
it just rebuilds from whatever image is already on disk, so a newer one only gets
applied if it has already been pulled. If you use those registries, the easiest fix is
to set up a couple of Synology Task Scheduler tasks (Control Panel → Task Scheduler
→ Create → Scheduled Task → User-defined script, run as root, e.g. daily) to keep
those images current without filling up the disk:
Pull task - pull the latest image for every running compose-project container on those registries:
docker ps --filter "label=com.docker.compose.project" --format '{{.Image}}' | grep -E '^(ghcr\.io|lscr\.io)/' | sort -u | xargs -I{} docker pull {}Cleanup task - keep the 4 newest images per repository and remove older ones (prevents disk filling up with superseded images):
docker images --format '{{.Repository}} {{.ID}} {{.CreatedAt}}' | grep -E '^(ghcr\.io|lscr\.io)/' | sort -k1,1 -k3,3r | awk '{count[$1]++; if (count[$1] > 4) print $2}' | xargs -r docker rmi 2>/dev/nullSchedule the pull task before the cleanup task.
- Home Assistant 2026.9+ (for sub-devices)
- DSM 7.0+
- Admin account on the NAS
- Container Manager installed (for container update and switch entities)