added megarevo inverter definations #638
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added Megarevo Inverter Defination
(Mostly via solarman app pcap, so might not be 100% accurate)
Confirmed most registers in this commit working on 15KW 3 phase hybrid model (R15k3H) with Solarman V5 Wifi Logger, more fields to be added and validated.
Sidenote: A potential interesting V2G/V2H/V2L feature this can enable:
Still a PoC, but I am able to get the inverter to relatively safely? to connect and disconnect an EV to be used as energy storage battery, EV HV battery can both be charged and discharged via inverter, tested with GB/T 20234 connector (maybe this will work with ChaDeMo too? yet to be tested), inverter has issue detecting disconnected battery: when battery is disconnected, inverter still tries to energize battery bus with lethal DC voltage (tires to charge battery), this can be addressed by enabling BMS communication on the inverter to inject a fault so the inverter will stop putting voltage on battery bus, this can be done with the following so that the connector and cable can be removed safely:
USE PROPER PPE, THIS SETUP IS NOT 100% SAFE YET, DO NOT TRY THIS AT HOME
Inverter mode can also be changed to force charge the car HV battery via grid (storm watch mode) or only via PV (like Tesla's drive on sunshine), but was not able to write with the current HA_solarman service call, any help would be appreciated (maybe create an separate issue for this?).