i recently started exploring SmartHome stuff. After buying a Pi 3, an Aeon stick and a Fibaro wall plug and playing around with those, it is now time for some real project:
The idea is to control power usage of my MacBook using domoticz. MacOS provides a command line utility called "pmset" for reporting (and setting) some power management data. As a first step, i developed the attached script, which updates a text widget on the domoticz server using battery data from my Mac. The script is running on the Mac and receives PM data from the pmset command as follows:
Code: Select all
pmset -g pslog|ReportBattery.py
I do not yet fully understand the problem of creating and running python plugins on the Pi (bogus library configuration along the line Domoticz->Python3->Boost and maybe more). Until then, i will use domoticz in mixed-manual-automatic mode: monitoring the text device and from time to time (when nobody is expecting it

Have fun!
Achim K.