-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Conversation
reportable lowState for battery modernExtent
src/lib/modernExtend.ts
Outdated
@@ -454,6 +455,12 @@ export function battery(args?: BatteryArgs): ModernExtend { | |||
result.meta = meta; | |||
} | |||
|
|||
if (args.lowStatusReportingConfig) { | |||
const configure: Configure[] = result.configure || []; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/lib/modernExtend.ts
Outdated
@@ -2686,4 +2691,17 @@ export function bindCluster(args: {cluster: string | number; clusterType: "input | |||
return {configure, isModernExtend: true}; | |||
} | |||
|
|||
export function reportAttribute(args: { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Thanks! |
reportable lowState for battery modernExtent