Ubiquiti mFi Power plugin for BitBar (see https://github.com/matryer/bitbar)
With this plugin you can turn sockets on Ubiquiti mFi Power products on/off and read their consumption (see https://www.ubnt.com/mfi/mpower).
The plugin supports multiple devices. In order to let them show up in BitBar you need to
- configure the plugin:
MFIPDEVS = [ { 'NAME': 'dev1', 'HOST': '192.168.1.44', 'USER': 'username', 'PASSWD': 'password' }, { 'NAME': 'dev2', 'HOST': '192.168.1.45', 'USER': 'username', 'PASSWD': 'password' }, ]
AND
- also name the sockets on the device (using the mFi software). Unnamed sockets will be ignored by the plugin!
NOTE: The python requests package v2.x (see http://docs.python-requests.org/en/master) is needed to function for this plugin.