Replies: 2 comments 3 replies
-
These are three-phase definitions, but using the correct register & adapting the bits it might help you get to the answer Once you have a working sensor, a PR would be appreciated
SelectRWSensor(
178,
"Gen peak-shaving",
options={0b10 << 2: "Disable", 0b11 << 2: "Enable"},
bitmask=0b11 << 2,
),
SelectRWSensor(
178,
"Grid peak-shaving",
options={0b10 << 4: "Disable", 0b11 << 4: "Enable"},
bitmask=0b11 << 4,
), |
Beta Was this translation helpful? Give feedback.
3 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Kellerza,
Your work on this addon is much appreciated, everything works so well with HA to automate my parallel Sunsynk single-phase setup.
The only thing causing me grief is being able to toggle Grid Peak Shaving on and off.
I have added the custom sensor on Modbus register 293 to enable changing the wattage of Grid Peak shaving, but I've not been able to figure out how to do what's required to enable the toggle.
I understand it is on Modbus register 280 but this is a multi-bit register.
According to the doc it is bits 8-11 responsible for Grid Peak Shaving, with 0 being disabled and 1 being enabled.
I tried to understand how the timer is formatted for similar bitmask requirements but after a couple of hours of trial and error, I wasn't successful.
This causes an issue as the Sunsunk firmware won't export from the battery when Grid Peak Shaving is toggled on, regardless of the selling mode.
If you are able to help, or better yet add this function to the next release, that would be great!
Thanks
Beta Was this translation helpful? Give feedback.
All reactions