Skip to main content

KDOne Navien Home Network API Wrapper

Project description

KDOne Navien Home Network API Wrapper

경동원 나비엔 홈네트워크 API Wrapper

예제

pip install KDOne
from KDOne.api import KDOneAPI

kd_one = KDOneAPI(username='username', password='password')

# 단지 정보를 불러온다
kd_one.get_complexes()

kd_one.login(complex_id='12341234')
kd_one.get_certification_code()
# 로그인과 함께 월패드에 인증 코드가 전송된다

certify_number = input('인증번호를 입력하세요: ')
kd_one.certify(certify_number=certify_number)
kd_one.get_token()

# 로그인 후에는 아래와 같이 사용할 수 있다
from KDOne.models.device import DeviceType

devices = kd_one.get_devices(DeviceType.LIGHT)
kd_one.control_device(devices[0], status="On")
kd_one.control_device(devices[0], status="On")

# 엘리베이터 호출
kd_one.call_elevator()

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

kdone-1.0.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

KDOne-1.0.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file kdone-1.0.0.tar.gz.

File metadata

  • Download URL: kdone-1.0.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for kdone-1.0.0.tar.gz
Algorithm Hash digest
SHA256 15b1e71a32884457848c546b3d8d5324e7081e636efa5e445c92bf3572943501
MD5 548da9c4c23f8e969295ed8bfa64a9ba
BLAKE2b-256 92f8c4b5d5fae93fe585071322e6ff097536e0b3217af22b9f26e038fa50419f

See more details on using hashes here.

File details

Details for the file KDOne-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: KDOne-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for KDOne-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ccb2bcccc6798d863a9c7555a14ba196dee354b8fdccfa69a2ca788a2b3867a
MD5 5c79810fc7e398dc5492629e2f743764
BLAKE2b-256 9cf5c0ead9ac982a0ad98f7940697759b2a45fbf73a77ebf190d02e120d0bd94

See more details on using hashes here.

Supported by

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