Skip to content

Comments

[solarman] Add ability to write to Solarman registers#19408

Closed
san4esmc wants to merge 2 commits intoopenhab:5.0.xfrom
san4esmc:5.0.x
Closed

[solarman] Add ability to write to Solarman registers#19408
san4esmc wants to merge 2 commits intoopenhab:5.0.xfrom
san4esmc:5.0.x

Conversation

@san4esmc
Copy link
Contributor

[solarman] Add ability to write to Solarman registers

Description

Current binding implementation doesn't allow to change data in invertor - only reads data from it. At the same time there are sets of registers that can safely be manipulated to automate eletricity usage, etc.
By default all registers are treated as read-only unless other is directly stated in channel configuration, which should avoid any accidental writes.
To make channel writable you should add readOnly=false to channel configuration. I have also added one new invertor definition deye_sg01hp3 for Deye 30KWh High Volatage inverter, where this was tested. New channels introduced there are connected to Time Of Use functionality, including time periods, battery SOC, charge enabled.

Testing

Existing unit tests were adapted to refactored code.
To test updated binding you can download built jar here: https://mega.nz/file/jjAlAT4D#mFLoSH1T8NP36iZzJKroslgVaMFkOTtW1ve7hfJ7KnY

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/new-solarman-v5-binding-for-deye-sofar-and-other-type-of-solar-inverters/146112/97

@jlaur jlaur changed the title Add ability to write to Solarman registers [solarman] Add ability to write to Solarman registers Oct 1, 2025
@jlaur
Copy link
Contributor

jlaur commented Oct 1, 2025

@san4esmc - thanks for your contribution. Please retarget your PR towards the main branch and fix your sign-off.

@jlaur jlaur added the enhancement An enhancement or new feature for an existing add-on label Oct 1, 2025
@san4esmc san4esmc changed the base branch from 5.0.x to main October 1, 2025 17:37
@san4esmc
Copy link
Contributor Author

san4esmc commented Oct 1, 2025

@san4esmc - thanks for your contribution. Please retarget your PR towards the main branch and fix your sign-off.

I will create new PR - seems like simple change of target branch will not work here

@san4esmc san4esmc closed this Oct 1, 2025
@san4esmc
Copy link
Contributor Author

san4esmc commented Oct 1, 2025

@jlaur Created new one here #19420

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

Labels

enhancement An enhancement or new feature for an existing add-on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants