Add support for grid voltage tracking#2
Conversation
Added the keys for the grid voltage in the SAJ inverters.
|
Hi, I think your code is not correct. I wanted to achieve the same, I think these are the correct lines, but I haven't got past this, I don't have experience in Python. Assumed this change would bring the sensors into Home Assistant right away (I modified the code inside the Docker container and HUP'd the HA process) Anyway, the line voltage values are around the current power value in status.php - counting from zero are the 25th, 27th and 29th items. So I think these would be the correct lines in the Python code (not sure what 11 is for), they need to be divided by 10 also: My guess is that the first number is a unique ID and the second one is obviously the index which csv column to check in the stats.php, but as I mentioned I'm not a coder, so some validation would be useful. Thanks, |
I'm pretty sure that's not the right way to post this, but I hope someone, probably the maintainer will read this. In addition to the above 3 lines in pysaj's __init.py, the Home Assistant SAJ integration's sensor.py also needs to be changed like this: --- sensor.py.orig 2021-06-07 23:07:40.125099310 +0200
After adding this and restarting HA I had the voltage sensors in my environment. But I implemented reading the sensors based on https://community.home-assistant.io/t/saj-solar-inverter/111932/47 and added json based sensors for the same at the same time, as a workaround. |
Added the keys for the grid voltage in the SAJ inverters.
This can be useful for debugging problems along with the local grid operators. When the grid-voltage becomes too high the solar-panels shut off. This happens regularly where I live. It would be nice to be able to log the voltage so this data can be shared with the needed parties if issues arise.