pyhomebridge
1.0.0
Perpustakaan Python untuk mengontrol server homebridge
Pasang homebridge-config-ui-x di homebridge Anda.
Pastikan Anda menjalankan homebridge dalam mode tidak aman. (Ini dapat diubah di pengaturan web di sudut kanan atas) Kontrol API hanya diizinkan dalam mode ini. Itu mulai homebridge dengan bendera -i.
Paket PYPI untuk Pyhomebridge
pip3 install pyhomebridgePenggunaan Python:
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 ) Dalam repo Anda dapat menemukan skrip Python untuk digunakan untuk eksekusi CLI. 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 Perangkat yang Didukung Saat Ini:
Homescript oleh Menahishayan
Mit
Perangkat lunak gratis, neraka ya!