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
- Host: GitHub
- URL: https://github.com/soulee-dev/kdone
- Owner: soulee-dev
- License: mit
- Created: 2024-11-14T18:04:23.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-14T14:02:13.000Z (5 months ago)
- Last Synced: 2025-02-15T03:04:08.056Z (3 months ago)
- Topics: home-automation, internet-of-things, iot, python
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 26
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KDOne Navien Home Network API Wrapper

[](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 KDOneAPIkd_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 DeviceTypedevices = 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()
```