Skip to content

genka13/py2n-intercom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py2n-intercom

Async Python client for the 2N IP intercom HTTP API (/api/*) and related RTSP endpoints.

This library is designed to be consumed by the Home Assistant 2n_intercom integration, but can be used standalone.

Supported devices / firmware

  • 2N IP Style
  • 2N IP Verso 2
  • 2N IP One
  • Firmware: 2.5+ (tested on 3.x)

Install

pip install py2n-intercom

Quick example

import aiohttp
from py2n_intercom import Py2NClient

async def main():
    async with aiohttp.ClientSession() as session:
        client = Py2NClient(session, base_url="https://10.13.23.21", username="admin", password="***", auth_method="digest")
        info = await client.async_get_device_info()
        print(info)

Development

Home Assistant developers can test the library in editable mode:

pip install -e .

Publish is expected to be automated via GitHub Actions on tags.

About

Async Python client for the 2N IP intercom HTTP API and related RTSP endpoints

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages