We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
Sorry for my English.
I have a proposal for a modification to add a reset command for the counters of the OWON PC321 clamp meter.
Thank you in advance.
Add a push button.
Attached is the modified code (you need to replace .txt with .js.): PC321.txt
The modifications :
const tzLocal = { PC321_clearMetering: { key: ['clear_metering'], convertSet: async (entity, key, value, meta) => { const endpoint = meta.device.getEndpoint(1); const group = 0xFFE0; const command = 0x00; const payload = {}; await endpoint.command(group, command, payload, {disableDefaultResponse: true}); meta.logger.info(`Sent clear command to ${entity.ieeeAddr}`); }, }, };
toZigbee: [tzLocal.PC321_clearMetering],
e.enum('clear_metering', ea.SET, ['Clear']).withDescription('Clear measurement data'),
Datasheet (clear measurement data - sheet 12) : PC321 zha clusters and attributes v1.2.4.pdf
The text was updated successfully, but these errors were encountered:
Looks good, could you make a pull request for this?
Sorry, something went wrong.
Alright, i'm trying to make a pull request
Pull request : Koenkk/zigbee-herdsman-converters#7895
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days
No branches or pull requests
Is your feature request related to a problem? Please describe
Hello,
Sorry for my English.
I have a proposal for a modification to add a reset command for the counters of the OWON PC321 clamp meter.
Thank you in advance.
Describe the solution you'd like
Add a push button.
Describe alternatives you've considered
Attached is the modified code (you need to replace .txt with .js.):
PC321.txt
The modifications :
toZigbee: [tzLocal.PC321_clearMetering],
e.enum('clear_metering', ea.SET, ['Clear']).withDescription('Clear measurement data'),
Additional context
Datasheet (clear measurement data - sheet 12) :
PC321 zha clusters and attributes v1.2.4.pdf
The text was updated successfully, but these errors were encountered: