Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ignore): Added descriptions and support 1-3 phase variants of ZJSBL7-100Z #5856

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

octa22
Copy link
Contributor

@octa22 octa22 commented Jun 7, 2023

this PR adds descriptions for exposed values and exposes power consumption on the each phase besides the overall power consumption.
there are more variants of ZJSBL7-100Z (1,2,3 phase) and therefore it rather checks if there is data of the power consumption on the each phase.

@@ -4676,6 +4676,15 @@ const fromZigbee1 = {
}
if (dp === dataPoints.hochActivePower) {
result.power = (value[2] | value[1] << 8) / 10;
if (value.length > 3) {
result.power_1 = (value[5] | value[4] << 8) / 10;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you rename these to e.g. power_l1? (add l)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure. done

…BL7-100Z

Signed-off-by: Ondrej Pecta <opecta@gmail.com>
@Koenkk Koenkk merged commit beee574 into Koenkk:master Jun 8, 2023
@Koenkk
Copy link
Owner

Koenkk commented Jun 8, 2023

Thanks!

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.

2 participants