Skip to content

KSTAR: Reorganise registers into blocks of 125#393

Merged
StephanJoubert merged 1 commit into
StephanJoubert:mainfrom
frsantos:update_kstar_defintion
Sep 10, 2023
Merged

KSTAR: Reorganise registers into blocks of 125#393
StephanJoubert merged 1 commit into
StephanJoubert:mainfrom
frsantos:update_kstar_defintion

Conversation

@frsantos
Copy link
Copy Markdown
Contributor

@frsantos frsantos commented Sep 8, 2023

The new 1.5 version of the integration uses the pysolarman library which is stricter with the protocol. In this case, we were requesting more than 125 registers at a time, so it failed on the new update. So we need to restructure the requests to only request a max of 125 registers.

The new 1.5 version of the integration uses the pysolarman library which
is stricter with the protocol. In this case, we were requesting more
than 125 registers at a time, so it failed on the new update. So we
need to restructure the requests to only request a max of 125 registers.
@oxynatOr
Copy link
Copy Markdown

oxynatOr commented Sep 8, 2023

well, that is good to know.

thanks you for the heads up!

@frsantos frsantos changed the title Reorganise registers into 125 blocks Reorganise registers into blocks of 125 Sep 8, 2023
@frsantos frsantos changed the title Reorganise registers into blocks of 125 KSTAR: Reorganise registers into blocks of 125 Sep 9, 2023
@Jay66Bee
Copy link
Copy Markdown

Jay66Bee commented Sep 9, 2023

Thanks for your work.

So you've created a new config file that will work with the new integration or is this still a work in progress?

@frsantos
Copy link
Copy Markdown
Contributor Author

frsantos commented Sep 9, 2023 via email

@StephanJoubert StephanJoubert merged commit b107eed into StephanJoubert:main Sep 10, 2023
@frsantos frsantos deleted the update_kstar_defintion branch September 10, 2023 11:19
@Jay66Bee
Copy link
Copy Markdown

Jay66Bee commented Nov 15, 2023

The new 1.5.1 does not work on my KStar...

After numerous reboots, it now works.

Nice work. Thanks.

@Jay66Bee
Copy link
Copy Markdown

Can there be an update to include inverter time in the definitions?

I'd like to keep track for when the inverter time is out of sync so that I can update it.

I have automations that are dependent on exact timings.

Thanks.

@frsantos
Copy link
Copy Markdown
Contributor Author

Could be.

I think the inverter time is stored in the registers 3239 to 3244, but the doc says it's stored in BCD code (??). That means each part of the date/time is stored in a a different register, so a helper template would also be needed to merge all those numbers back into a date/time. That helper can't be included in the definition file.

image

@Jay66Bee
Copy link
Copy Markdown

I remember converting it to 24hr time when I used pysolarmanv5 to query the inverter before using the solarman integration. I just don't want to make a mess of the KStar definition now that it's in blocks of 125, which I don't really understand.

@bumlard
Copy link
Copy Markdown

bumlard commented May 13, 2024

Do you guys know how to WRITE values to the Kstar, specifically I'd love to be able set it to charge with different current values or not do anything at all. My hardware hack was using External relays and contactors but would much prefer to just control the inverter directly, I can do this from the solarman website but I cant user HA automations with the website which is why I have the separate contactors and relays. I was hoping there would be some enitities where I could enter values in or some sliders and toggles for the different modes etc.

@Jay66Bee
Copy link
Copy Markdown

Do you guys know how to WRITE values to the Kstar, specifically I'd love to be able set it to charge with different current values or not do anything at all. My hardware hack was using External relays and contactors but would much prefer to just control the inverter directly, I can do this from the solarman website but I cant user HA automations with the website which is why I have the separate contactors and relays. I was hoping there would be some enitities where I could enter values in or some sliders and toggles for the different modes etc.

You need the Solarman 1.5.1 integration to write to the inverter. That integration does not work for me so I have no experience of it as I still use 1.4.3

You can use pysolarmanv5 with a Python wrapper and write your own routines. I have not attempted that yet so I wouldn't know how to help you. Maybe someone else can on the pysolarmanv5 GitHub page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants