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

reportAttribute modernExtend #8965

Merged
merged 5 commits into from
Mar 12, 2025
Merged

reportAttribute modernExtend #8965

merged 5 commits into from
Mar 12, 2025

Conversation

kirovilya
Copy link
Contributor

reportable lowState for battery modernExtent

kirovilya and others added 2 commits March 10, 2025 21:27
reportable lowState for battery modernExtent
@@ -454,6 +455,12 @@ export function battery(args?: BatteryArgs): ModernExtend {
result.meta = meta;
}

if (args.lowStatusReportingConfig) {
const configure: Configure[] = result.configure || [];
Copy link
Owner

Choose a reason for hiding this comment

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

const result: ModernExtend = {exposes, fromZigbee, toZigbee, isModernExtend: true};
result.configure = []

to prevent creating a configure here and under percentageReporting

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -2686,4 +2691,17 @@ export function bindCluster(args: {cluster: string | number; clusterType: "input
return {configure, isModernExtend: true};
}

export function reportAttribute(args: {
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think this is used? Please remove

Copy link
Contributor Author

Choose a reason for hiding this comment

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

currently not used, but can be used along with/like bindCluster modernExtend https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/lib/modernExtend.ts#L2684C17

Copy link
Owner

Choose a reason for hiding this comment

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

If it is not used than I propose to remove it for now.

@Koenkk Koenkk merged commit 4d37030 into Koenkk:master Mar 12, 2025
5 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Mar 12, 2025

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