pyhomebridge
1.0.0
Python Library pour contrôler un serveur Homebridge
Installez Homebridge-Config-UI-X sur votre Homebridge.
Assurez-vous d'exécuter Homebridge en mode insécurité. (Cela peut être modifié dans les paramètres Web dans le coin supérieur droit) Le contrôle de l'API n'est autorisé que dans ce mode. C'est commencer Homebridge avec le drapeau -i.
Paquet PYPI pour Pyhomebridge
pip3 install pyhomebridgeUtilisation du 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 ) Dans le dépôt, vous pouvez trouver un script Python à utiliser pour l'exécution de 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 Appareils actuellement pris en charge:
HomeScript par Menahishayan
Mit
Logiciel gratuit, enfer ouais!