OctoPrint-Tasmota icon indicating copy to clipboard operation
OctoPrint-Tasmota copied to clipboard

Issue With Power Monitoring With Blank IDX

Open jneilliii opened this issue 11 months ago • 1 comments

          I found out the problem!

I opened the energy_data.db using 'DB Browser for SQLite.exe' (https://sqlitebrowser.org/dl/) and noticed the value of 'idx' was empty in the entire column. Since 'idx' was left blank/empty to make the Tasmota switch to work.

'Index Index of the relay, specifically used for multiple plug relay devices. Leave blank for single relay devices.'

So I manually edited the column for the field 'idx' to '1' in the db. Also, for some reason, the 'total' field was also blank so made it all to '0'. Then I pushed it back to the same location in the pi. (~/.octoprint/data/tasmota/energy_data.db).

After a refresh, Voilà the graph worked!

I'm sure you can fix this issue! Please help with the same.

image image

Thanks.

Originally posted by @esrpradeep in https://github.com/jneilliii/OctoPrint-Tasmota/issues/18#issuecomment-1665884834

jneilliii avatar Aug 04 '23 16:08 jneilliii