Skip to content

Add mask to rule 1 and rule 3#340

Merged
StephanJoubert merged 1 commit into
StephanJoubert:mainfrom
NemesisXB:mask_rule_1_3
Jul 19, 2023
Merged

Add mask to rule 1 and rule 3#340
StephanJoubert merged 1 commit into
StephanJoubert:mainfrom
NemesisXB:mask_rule_1_3

Conversation

@NemesisXB
Copy link
Copy Markdown
Contributor

  • Update deye_hybrid.yaml to use mask for time of use enable registers

I have a DEYE 8kW inverter and for some of the registers where a 0 or 1 is expected, mine does not return a 0 or a 1, resulting in a LOOKUP string as the state of the enity. I saw however that bit 0 in those registers is the bit of interest. This PR adds a mask to the unsigned rules (1 & 3) so you can mask the required bit or bits. A possible further improvement can be adding a shift, so you can mask a bit or bits in the middle of the register value and shift it down (this has not been added in this PR)

- Update deye_hybrid.yaml to use mask for time of use enable registers
@Quintinvw
Copy link
Copy Markdown

Works like a charm. Thanks. Also have a 8 kW Deye.

@StephanJoubert StephanJoubert merged commit 5db34c2 into StephanJoubert:main Jul 19, 2023
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.

3 participants