Une libraire python pour interroger facilement Domoticz

En fouinant la doc python pour un futur projet avec Domoticz je suis tombé sur le travail de Erik Askheim qui à crée une libraire python nommé pymoticz pour interroger Domoticz. https://github.com/EirikAskheim/pymoticz

Cela permet d’un seul coup et facilement de passer à on/off , d’avoir un etat … sans se préoccuper de l »API JSON.

N.B : Toutes les fonctions de l’API ne sont pas implémentées,on ne gère que des on/off, dimmables et  retour d’etat

Voici la liste complète de ce que sait faire pymoticz.

pymoticz list [–host=<host>] [–names]
pymoticz test
pymoticz status <id> [–host=<host>]
pymoticz on <id> [–host=<host>]
pymoticz off <id> [–host=<host>]
pymoticz dim <id> <level> [–host=<host>]

Lire la suite

Pour toute question technique concernant cet article, veuillez utiliser les forum situés à https://easydomoticz.com/forum/