jake wrote: ↑Friday 02 April 2021 13:57
Update 02-04-201: DzVents version of the script, with additional functionality, can be found on
GitHub!
Please test the new published version. Also, please help with suggestions how to handle GitHub for modifications
Hi Jake,
Going to try out your latest script. Created the devices and variables as explained in the source. Just copied your source into the event editor and changed the names to my P1 Meter Names. Switched it on and saved and off it went. Good job.
Just two questions.
I cannot get rid of a load on loglines.
Code: Select all
2021-04-06 16:01:39.048 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648214;0;120"
2021-04-06 16:01:40.062 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648214;0;123"
2021-04-06 16:01:41.048 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648214;0;124"
2021-04-06 16:01:42.056 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648214;0;123"
2021-04-06 16:01:43.115 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648214;0;120"
2021-04-06 16:01:44.071 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648214;0;128"
2021-04-06 16:01:45.050 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648214;0;129"
2021-04-06 16:01:46.068 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648214;0;132"
2021-04-06 16:01:47.060 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648214;0;135"
2021-04-06 16:01:48.044 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648214;0;134"
2021-04-06 16:01:49.062 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648214;0;140"
2021-04-06 16:01:50.080 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648214;0;153"
2021-04-06 16:01:51.075 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648215;0;160"
2021-04-06 16:01:52.062 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648215;0;165"
2021-04-06 16:01:53.089 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648215;0;175"
2021-04-06 16:01:54.069 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648215;0;172"
2021-04-06 16:01:55.081 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648215;0;179"
2021-04-06 16:01:56.061 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648215;0;174"
2021-04-06 16:01:57.085 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648215;0;171"
2021-04-06 16:01:58.053 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648215;0;169"
2021-04-06 16:01:59.084 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648215;0;168"
2021-04-06 16:02:00.065 Status: dzVents: Info: Handling events for: "Power", value: "4055887;3431466;2522893;5648215;0;161"
Changed line 54 to
level = domoticz.LOG_ERROR but still a lot of lines. Actually, I would like to see only a log line in case of an ERROR.
Also the interval is ever 1/10th second as you can see on the time stamp. Line 26 the scriptinterval = 60
Second question.
Why are reading the produced power from the P1 Meter and not directly from the inverter?
Thanks for al your work on this script, keep you updated on my experiences