Keyerror p1_current after upgrade #55
Replies: 10 comments 14 replies
-
Small update. It appears the error started a bit earlier, when I upgraded domoticz to 2022.2 |
Beta Was this translation helpful? Give feedback.
-
Hi Addie, |
Beta Was this translation helpful? Give feedback.
-
Hi Addie, Thanks for your advice. I didn't know the version conflicts could be an issue. I assumed the dependencies were nicely managed by pip. It is strange though that domoticz starts correctly 1 out of 3-4 times. And then it stays up solidly. It is only an issue during startup.
|
Beta Was this translation helpful? Give feedback.
-
Hi Addie, |
Beta Was this translation helpful? Give feedback.
-
I have a separate rpi3 with a brand new SD card and a fresh install running with the exact same symptoms. So that eliminates the SD card corruption theory, I think. |
Beta Was this translation helpful? Give feedback.
-
Hi Addie, I might be on to something. Or at least it is an observation. Could this be a bottleneck issue or overload issue on the modbus side? or are messages confused? (I have no idea how modbus works to be honest, never dug in.) Regards, Bert |
Beta Was this translation helpful? Give feedback.
-
Hi Addie, I have been experimenting a bit tonight. I discovered that adding a configurable delay in the plugin at the start has no effect. It has something to do with having two instances of the plugin. I assume I am a special case with two solaredge inverters. Regards, Bert Haverkamp |
Beta Was this translation helpful? Give feedback.
-
Hi Addie, I tried to compile domoticz the past few days. After figuring out my cache was not big enough that succeeded :-) |
Beta Was this translation helpful? Give feedback.
-
Hi Addie, I went digging into potential problems in asyncio in python last night. Found some interesting disucssions on open bugs with threading. But I am not sure if they are related. That raised a question from my side. What hardware do you run on and what python version? Regards, Bert |
Beta Was this translation helpful? Give feedback.
-
Hi Addie, Regards, Bert |
Beta Was this translation helpful? Give feedback.
-
Hi Addie,
I thought this christmas break was a good idea to update my domoticz a bit.
Your plugin was one of the things to update. I am running your plugin to great satisfaction for a long time now.
I updated it with a simple git pull. After starting domoticz back up,
In the log got the error: KeyError: 'p1_current' (longer snippet of my /var/log/syslog below)
Probably it is related to what I saw in your log, renaming from p1 to l1. But I don't know how to solve this.
Are there some steps to do in the database?
Regards,
Bert
Dec 21 14:49:20 joulebox domoticz[12136]: domoticz: Solar panels attic: _plugin.onHeartbeat()
Dec 21 14:49:20 joulebox domoticz[12136]: 2022-12-21 14:49:20.133 #33[1;31mError: Solar panels attic: _plugin.onHeartbeat()#33[0;0m
Dec 21 14:49:20 joulebox domoticz[12136]: domoticz: Solar panels attic: File "/var/www/domoticz/plugins/domoticz-solaredge-modbustcp-plugin-backup/plugin.py", line 358, in onHeartbeat
Dec 21 14:49:20 joulebox domoticz[12136]: 2022-12-21 14:49:20.133 #33[1;31mError: Solar panels attic: File "/var/www/domoticz/plugins/domoticz-solaredge-modbustcp-plugin-backup/plugin.py", line 358, in onHeartbeat#033[0;0m
Dec 21 14:49:20 joulebox domoticz[12136]: domoticz: Solar panels attic: m.update(inverter_values[unit[Column.MODBUSNAME]], inverter_values[unit[Column.MODBUSSCALE]])
Dec 21 14:49:20 joulebox domoticz[12136]: 2022-12-21 14:49:20.133 #33[1;31mError: Solar panels attic: m.update(inverter_values[unit[Column.MODBUSNAME]], inverter_values[unit[Column.MODBUSSCALE]])#33[0;0m
Dec 21 14:49:20 joulebox domoticz[12136]: domoticz: Solar panels attic: KeyError: 'p1_current'
Beta Was this translation helpful? Give feedback.
All reactions