@@ -207,7 +207,9 @@ def _pv_energy_total(key: str, models: list[EntitySpec], name: str, source_entit
207
207
addresses = [
208
208
ModbusAddressesSpec (input = [11002 ], models = Inv .H1_G1 | Inv .KH_PRE119 ),
209
209
ModbusAddressesSpec (holding = [31002 ], models = Inv .H1_G1 | Inv .H1_LAN | Inv .KH_119 | Inv .H3_SET ),
210
- ModbusAddressesSpec (holding = [39280 , 39279 ], models = Inv .H1_G2 ),
210
+ # This is techincally a 32-bit register on the G2, but it doesn't appear to actually write the upper word,
211
+ # which means that negative values are represented incorrectly (as 0x0000FFFF etc)
212
+ ModbusAddressesSpec (holding = [39280 ], models = Inv .H1_G2 ),
211
213
],
212
214
name = "PV1 Power" ,
213
215
)
@@ -252,7 +254,9 @@ def _pv_energy_total(key: str, models: list[EntitySpec], name: str, source_entit
252
254
addresses = [
253
255
ModbusAddressesSpec (input = [11005 ], models = Inv .H1_G1 | Inv .KH_PRE119 ),
254
256
ModbusAddressesSpec (holding = [31005 ], models = Inv .H1_G1 | Inv .H1_LAN | Inv .KH_119 | Inv .H3_SET ),
255
- ModbusAddressesSpec (holding = [39282 , 39281 ], models = Inv .H1_G2 ),
257
+ # This is techincally a 32-bit register on the G2, but it doesn't appear to actually write the upper word,
258
+ # which means that negative values are represented incorrectly (as 0x0000FFFF etc)
259
+ ModbusAddressesSpec (holding = [39282 ], models = Inv .H1_G2 ),
256
260
],
257
261
name = "PV2 Power" ,
258
262
)
0 commit comments