pbix / HA-solark-PV

Home Assistant integration for the SolArk PV Inverter
Apache License 2.0
36 stars 9 forks source link

Add in grid relay to know when on backup power #38

Closed edwardgarza closed 1 year ago

edwardgarza commented 1 year ago

solark's modbus guide is wrong here - it's actually 0 for disconnected and 1 for connected. the sunsynk modbus guide gets it right however

image

Open to opinions on if this should an int, string, or just a boolean

I toggled my grid connection a few times to test this change out