An open API service indexing awesome lists of open source software.

https://github.com/soulee-dev/kdone

Home automation with KDOne Home Network
https://github.com/soulee-dev/kdone

home-automation internet-of-things iot python

Last synced: about 1 month ago
JSON representation

Home automation with KDOne Home Network

Awesome Lists containing this project

README

        

# KDOne Navien Home Network API Wrapper
![PyPI - Version](https://img.shields.io/pypi/v/KDOne)
[![Publish Python Package to PyPI](https://github.com/soulee-dev/KDOne/actions/workflows/publish-to-pypi.yml/badge.svg)](https://github.com/soulee-dev/KDOne/actions/workflows/publish-to-pypi.yml)

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

https://github.com/user-attachments/assets/1b1550fb-e668-44c6-809b-49a7230c4f74

Python 라이브러리를 사용해서 엘리베이터 호출 - YouTube

## 예제

```shell
pip install KDOne
```

```python
from KDOne.api import KDOneAPI

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

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

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

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="Off")

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