bolliy / ioBroker.sun2000

iobroker adapter for read and write register data from Huawei SUN2000 inverter and LUNA2000 battery via modbus TCP
MIT License
18 stars 4 forks source link

Why changing something without user interaction? #16

Closed ansgarschulte closed 10 months ago

ansgarschulte commented 11 months ago

https://github.com/bolliy/ioBroker.sun2000/blob/5bf048e03a261e901d6807dc3f2995880b376367/main.js#L156C51-L156C51

Some question here:

  1. I have a LUNA2000 and my storageModel is 0?!
  2. Why do you change the config to this?
bolliy commented 11 months ago

It is the preparation for being able to obtain cheap stock market electricity via tibber on a time-controlled basis. But I will comment it out in the next version. You can easily switch the working mode from "TOU" to "maximum self-consuption" via the app. Then I don't understand the statement/question about storageModel 0? The storage/battery LUNA2000 has the value of storageModel 2.

ansgarschulte commented 11 months ago

I debugged the adapter locally with my storage... and I get a storageModel == 0 instead of 2. And I have a LUNA2000 connected.

image
bolliy commented 11 months ago

The modbus definition description (https://www.photovoltaikforum.com/core/attachment/315028-solar-inverter-modbus-interface-definitions-pdf/ Page 64) is written the value 2 in register 47089 for LUNA2000. Maybe something is configured incorrectly?

bolliy commented 10 months ago

Can I close the issue? This function is disabled in the current version.

ansgarschulte commented 10 months ago

yes