palazzem / econnect-python

API adapter used to control programmatically an Elmo alarm system
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

feat: support IESS Metronet system #111

Closed palazzem closed 10 months ago

palazzem commented 10 months ago

Related Issues

Proposed Changes:

Supports both Elmo e-Connect and IESS Metronet systems, by exposing their default URLS.

Usage:

from elmo.api.client import ElmoClient
from elmo.systems import ELMO_E_CONNECT, IESS_METRONET

# Connect to the default Elmo e-Connect system
client = ElmoClient()

# Explicitly connect to the Elmo e-Connect system
client = ElmoClient(base_url=ELMO_E_CONNECT)

# Connect to the IESS Metronet system
client = ElmoClient(base_url=IESS_METRONET)

Testing:

n/a

Extra Notes (optional):

n/a

Checklist