Open pohly opened 8 months ago
Looks like I need work_state_1
after all. The inverter is down again, with:
vr001 run_state ON
5038 work_state_1 None
5081 work_state_2 None
I power cycled the inverter. Now I get something other than None
:
vr001 run_state ON
5038 work_state_1 Run
5081 work_state_2 Stop
So it looks like it's only the "uninitialized" work state that isn't handled. Fixing the handling of None
in influxdb.py:64
such that missing values get skipped should be enough for me: then I can set up alerting with "unknown state for xxx minutes" as trigger.
I recently had an incident where a SunGrow SG15.RT entered "state: not initialized" (from its web interface) and no longer produced anything. Power cycling it fixed this. I now checked whether I can store that state in influxdb to set up some alerting solution.
I found "work_state_1" and "work_state_2" in the registers file and added that:
This didn't work. Debug output shows that only "work_state_1" is present, but with
None
as value:Then exporting to influxdb dies:
I suppose the influxdb code should handle
None
more gracefully.Not sure whether I really want
work_state_1
, though. Perhapsrun_state
is what I am looking for.