Skip to main content

aiosynologysrm

PyPI Python Release Date Downloads
PyPI Python versions GitHub release date PyPI downloads
CI License Typed Issues Discussions
CI License Checked with mypy GitHub issues GitHub discussions
aiosynologysrm

A Python library that reads what your Synology router knows: its own state, the devices on your network, and over time DHCP, Wi-Fi, firewall and more. It talks to the router's Web API (Synology Router Manager, SRM) and never changes a setting.

It is built as a foundation for integrations such as Home Assistant, but works in any asyncio program.

Using Home Assistant? Synology SRM Router is the integration built on this library: your routers and access points as devices with WAN, clients per Wi-Fi band, DHCP, firewall rules with their hits and USB storage, and device trackers that know which router, access point and radio each client uses. Install it from HACS; no code needed.

Unofficial. Not affiliated with, endorsed by or supported by Synology Inc. "Synology" and "SRM" are trademarks of Synology Inc.

Documentation: aiosynologysrm.eize.dev

Which devices work?

✅ Tested RT2600ac and MR2200ac with SRM 1.3.2
🟡 Expected to work RT6600ax, WRX560, RT1900ac with SRM 1.3 (not confirmed yet)
❔ Unknown SRM 1.2 and older
❌ Not in scope Synology NAS (DSM), other vendors' routers, changing settings

Router and standalone access point are tested; mesh setups are in scope but not tested yet (help wanted). If the router lacks a feature, the library raises SrmUnsupportedError instead of guessing. Details and how to report your model: Compatibility.

Quick start

You need Python 3.12 or newer and an SRM administrator account: only administrator accounts are tested (SRM 1.3.2). A dedicated account per application is a good idea.

The library only reads, but the account it uses can change everything on the router: keep the password safe, and prefer certificate pinning over ssl=False (how). Each failed login counts towards SRM's auto block. After a wrong password, a missing two-factor code or a block, the client stops logging in by itself until you call login() again; after other login errors it pauses automatic logins for 30 seconds, doubling up to 15 minutes.

pip install aiosynologysrm
import asyncio

import aiohttp

from aiosynologysrm import SrmClient

# SRM ships a self-signed certificate: pin its fingerprint (see "Getting started" in the
# documentation for how to read it once and confirm it, and how to verify a Let's Encrypt
# certificate by its name instead).
FINGERPRINT = "<the router's SHA-256 fingerprint, hex>"


async def main() -> None:
    async with aiohttp.ClientSession() as session:
        async with SrmClient(
            "192.0.2.1",
            "admin-user",
            "secret",
            session=session,
            ssl=aiohttp.Fingerprint(bytes.fromhex(FINGERPRINT)),
        ) as client:
            info = await client.get_system_info()
            print(info.model, info.firmware_ver)

            devices = await client.get_network_devices()
            for device in devices.devices:
                if device.is_online:
                    print(device.mac, device.hostname, device.connection)


asyncio.run(main())

Documentation

Roadmap

Planned work is grouped in milestones: the next release, reports from devices the maintainer does not have, and a stable API (1.0) later.

Contributing

Reports with your router model and SRM version help most. See CONTRIBUTING.md; for security issues SECURITY.md.

License

MIT. Provided "as is", without warranty of any kind. The icon and header images are CC BY 4.0; their source is in eizedev/brand.

Metadata

Release files for aiosynologysrm 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiosynologysrm 0.9.0
File Size Uploaded Provenance Actions
aiosynologysrm-0.9.0.tar.gz 225.3 kB With provenance Details for aiosynologysrm-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aiosynologysrm 0.9.0
File Interpreter ABI Platform Actions
aiosynologysrm-0.9.0-py3-none-any.whl Python 3 none any Details for aiosynologysrm-0.9.0-py3-none-any.whl

Total release size: 268.2 kB

Release files / aiosynologysrm-0.9.0.tar.gz

Download URL aiosynologysrm-0.9.0.tar.gz
Size 225.3 kB
Tags Source
SHA-256 checksum
How to use checksums
188ef8897eaddc4aa8619a582e5a221527c219b6629fb4a04a92359d4051b850
BLAKE2b-256 checksum
How to use checksums
5a61a6ac2b9333f01c20bb52d4b2dc625c3f7a60be099e95cb2abea67f751613
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / aiosynologysrm-0.9.0-py3-none-any.whl

Download URL aiosynologysrm-0.9.0-py3-none-any.whl
Size 42.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2fe888a598bf3932f8195a2de23ee491edee3b52e7e1d0935eeee7220acbf49
BLAKE2b-256 checksum
How to use checksums
5ecd366ece8a687204091967d738e244d554167e91b23e1960f3d803d9634f3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for aiosynologysrm 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aiosynologysrm-0.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page