https://github.com/goruck/simple-energy-logger
MQTT client that logs energy consumption of Shelly Plugs.
https://github.com/goruck/simple-energy-logger
energy-monitor iot shelly-mqtt shelly-plugs
Last synced: 11 days ago
JSON representation
MQTT client that logs energy consumption of Shelly Plugs.
- Host: GitHub
- URL: https://github.com/goruck/simple-energy-logger
- Owner: goruck
- Created: 2023-01-08T16:08:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-18T03:17:20.000Z (over 3 years ago)
- Last Synced: 2025-02-25T23:13:05.192Z (over 1 year ago)
- Topics: energy-monitor, iot, shelly-mqtt, shelly-plugs
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simple-energy-logger
MQTT client that logs energy consumption of Shelly Plugs.
This is a MQTT client that logs energy consumption of devices plugged into
a Shelly Plug. Voltage, current, instantaneous active power, and total energy
consumed are logged to a csv file. The Plug must run a script that publishes
Switch.GetStatus status to a MQTT Broker. Have only tested Shelly PlugPlus US but other Shelly IoT devices should work.
Typical usage example:
* Configure Shelly Plug to run ```mqtt-switch-status-announce.js``` at boot up (i.e., enable the script) that publishes ```Switch.GetStatus``` status
to a MQTT Broker.
* In ```elogger.py```:
* Set ```BROKER``` to your MQTT Broker IP address.
* Set ```CSV_FILE_NAME``` to the file where you want to log the plug's data.
* Add a dict entry to ```APPLIANCE_TOPICS``` that maps your plug's MQTT topic
to the appliance name.
* Run MQTT logger client program: ```$ python3 elogger.py```