Skip to content

This textual / aiomqtt python application listens to MQTT for energy information from Tasmota devices.

Notifications You must be signed in to change notification settings

norwood867/tpmtable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tasmota_power_monitor

This textual / aiomqtt python application listens to MQTT for energy information from Tasmota devices.

Configuring the Tasmota Device:

On the Tasmota device a rule is needed to generate the data. The rule can be added to the device via the web console and uses var1-4:

Rule3  
on energy#voltage!=%var1% do var1 %value% endon  
on energy#current!=%var2% do var2 %value% endon  
on energy#power!=%var3% do var3 %value% endon  
on energy#factor!=%var4% do var4 %value% endon 

More information is available on rules:https://tasmota.github.io/docs/Rules/.

Install required libraries

pip -i aiomqtt textual

Configure tpmtable.py

Add the information specific for the environment:

MQTT_HOST = 'fill in your mqtt host here'
MQTT_PORT = 'add your mqtt port here'
MQTT_USER = "name that user"  
MQTT_PASS = "password"  
CLIENT_ID = 'put your client id here'

Run

python tpmtable.py

Screen

Now split, the left is the powertable (for now) and the right is the log widget  
to dump mqtt messages that don't match, input or other stuff.

Input

command, right suggestions and up/down to scroll the list.

Special thanks to

vherolf for extending what I started. I've now included some of that extension into this update.
The textualize and aiomqtt developers, Yeah!

About

This textual / aiomqtt python application listens to MQTT for energy information from Tasmota devices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages