githubDante / deye-controller

DEYE Hybrid inverters library
MIT License
38 stars 7 forks source link

work mode #16

Open cnu80 opened 4 months ago

cnu80 commented 4 months ago

Hi, thanks for your project. I can set the prog table successfully.

Is it also possible to set the work mode ?

I checked the WritableRegisters but cannot find it. I want to switch between "Selling First" and "Zero Export to CT"

thanks

augonis commented 3 months ago

Hi, I have a similar requirement. I did some tests and found the register for setting the work mode (on a SUN-12K-SG04LP3) . It's address 142 and value is 0 for selling first, 1 for Zero export to Load and (I presume/haven't confirmed) 3 for Zero export to CT.

For now you can instantiate a register yourself like this WorkMode = IntWritable(address=142, low_limit=0, high_limit=2) and use it like usual.