Skip to main content

Async Python client for the Verisure Italy alarm API

Project description

verisure-italy

Async Python client for the Verisure Italy alarm API.

Talks directly to customers.verisure.it/owa-api/graphql. Typed, async, Pydantic models for all request/response types. No Any, no dict soup. Pyright strict, zero errors.

Not affiliated with Verisure Group or Securitas Direct.

Installation

pip install verisure-italy

Usage

import aiohttp
from verisure_italy import VerisureClient, generate_device_id, generate_uuid

async with aiohttp.ClientSession() as session:
    client = VerisureClient(
        username="your@email.com",
        password="your-password",
        http_session=session,
        device_id=generate_device_id(),
        uuid=generate_uuid(),
        id_device_indigitall="",
    )

    # Login (may raise TwoFactorRequiredError)
    await client.login()

    # List installations
    installations = await client.list_installations()
    inst = installations[0]
    await client.get_services(inst)

    # Get alarm status (passive — no panel ping, no timeline entry)
    status = await client.get_general_status(inst)
    print(f"Alarm: {status.status}")  # D, B, A, E, P, T

    # Arm / disarm
    from verisure_italy import AlarmState, InteriorMode, PerimeterMode

    target = AlarmState(interior=InteriorMode.PARTIAL, perimeter=PerimeterMode.ON)
    result = await client.arm(inst, target)

    await client.disarm(inst)
    await client.logout()

Alarm States

State Interior Perimeter Proto
Disarmed OFF OFF D
Partial + Perimeter PARTIAL ON B
Total + Perimeter TOTAL ON A
Perimeter only OFF ON E
Partial PARTIAL OFF P
Total TOTAL OFF T

Home Assistant

Looking for the Home Assistant integration? See ha-verisure-italy on GitHub, or install via HACS.

License

MIT. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

verisure_italy-0.6.0.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

verisure_italy-0.6.0-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file verisure_italy-0.6.0.tar.gz.

File metadata

  • Download URL: verisure_italy-0.6.0.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for verisure_italy-0.6.0.tar.gz
Algorithm Hash digest
SHA256 fda2c6aa6da94709731a7175061e205393feb0dbc23ab2e974a669266b38d4fd
MD5 5315ba3d236847a96c606bb9be15dd0b
BLAKE2b-256 9b4c93d0e89d69d29639f2a24e1352f43ecd94e9344736014dbdacebd2112231

See more details on using hashes here.

File details

Details for the file verisure_italy-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: verisure_italy-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for verisure_italy-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f116ee92244ed9d1b0b373e3025726ce4de9b051b6a765551c183390b605596
MD5 534e08db00aacf47f2e2127f65b5f26a
BLAKE2b-256 52a50d4a678ebe3bb28b010a1564cc1e58af49247e3b427d28114c0be7a274ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page