addiejanssen / domoticz-solaredge-modbustcp-plugin

A Domoticz plugin to collect data from SolarEdge power inverters over ModbusTCP.
MIT License
18 stars 6 forks source link

Why do we see different "users" in the "status" log? #1

Closed addiejanssen closed 4 years ago

addiejanssen commented 4 years ago

For some reason, we get different "users" in the "status" Log.

image

It has been reported by 2 users; need to see if we can replicate this.

addiejanssen commented 4 years ago

I have been trying to replicate this, but can't get it to show usernames; no matter what I do. I looked at the database and found that the data is stored in a table named "LightingLog". That table has a "User" column; but for my tests, never shows a value in that column.

It's another Domoticz-thingie; no clue why a subtype "sTypeTextStatus" ends up in a "LightingLog" table. Also interesting to see that there is no hardware type that looks anything like that table name.

It feels like a cosmetic issue; but it's ugly.... We need more information or some debugging from users that run into this. The users must have setup another device that is using that table as well. Will go back to the users in the Domoticz forum and will put this one on hold till we get additional information.

addiejanssen commented 4 years ago

After looking at the "LightingLog" table of the user that reported the issue, we found that the "User" column gets populated with values. Those values are not generated by the plugin; there is not even an option in the Python Update function to do so.

Looking at the values, it looks like the "User" is copied from the last record in the table. This would explain why there are different values; there were other scripts/plugins running that use the table as well.

For now, I will close the topic. Looks like a bug in Domoticz.