UNPKG

homebridge-mqtt-power-consumption-log-tasmota

Version:

Plugin to HomeBridge optimized for work with Itead Sonoff POW hardware with firmware Sonoff-Tasmota via MQTT with log data to file. Partially emulate Elgato Eve Energy. Measure used power and write data to log text files.

52 lines (39 loc) 1.18 kB
{ "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154" }, "description": "This is an example configuration file. You can use this as a template for creating your own configuration file.", "platforms": [], "accessories": [ { "accessory": "mqtt-power-consumption-log-tasmota", "name": "NAME OF THIS ACCESSORY", "url": "mqtt://MQTT-ADDRESS", "username": "MQTT USER NAME", "password": "MQTT PASSWORD", "topics": { "statusGet": "stat/sonoff/POWER", "statusSet": "cmnd/sonoff/power", "energyGet": "tele/sonoff/ENERGY", "stateGet": "tele/sonoff/STATE" }, "onValue": "ON", "offValue": "OFF", "outletInUseBy": "current", "outletInUseCurrent": "0.01", "totalPowerResetBy": "month", "activityTopic": "tele/sonoff/LWT", "activityParameter": "Online", "startCmd": "cmnd/sonoff/TelePeriod", "startParameter": "15", "patchToSave":"/root/.homebridge/", "savePeriod": "15", "manufacturer": "ITEAD", "model": "Sonoff TH", "serialNumberMAC": "MAC OR SERIAL NUMBER" } ] }