pyhomebridge
1.0.0
HomeBridge 서버를 제어하기위한 Python Library
HomeBridge에 HomeBridge-Config-Ui-X를 설치하십시오.
불안한 모드에서 HomeBridge를 실행하십시오. (이것은 오른쪽 상단 코너의 웹 설정에서 변경 될 수 있습니다) API 컨트롤은이 모드에서만 허용됩니다. 그것은 -i 플래그로 HomeBridge를 시작합니다.
Pyhomebridge 용 PYPI 패키지
pip3 install pyhomebridge파이썬 사용 :
from homebridge import HomeBridgeController
controller = HomeBridgeController ( host = "homebridge.local" , port = 80 , auth = "123-45-678" )
print ( controller . accessories )
controller . print_accessories ()
controller . accessory_exists ( "light_hallway" )
controller . get_value ( "light_hallway" )
controller . set_value ( "light_hallway" , True ) Repo에서는 CLI 실행에 사용할 Python 스크립트를 찾을 수 있습니다. control-homebridge.py
python3 control-homebridge.py --list
python3 control-homebridge.py --name light_hallway --off
# you will need to set url, port and code in the script
# or use the --server, --port, --auth options 현재 지원되는 장치 :
Menahishayan의 홈 스크립트
MIT
무료 소프트웨어, 헬 그래!