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

[Feature request]: OWON PC 321 - Add clear measurement data #23695

Closed
Lacrymal3 opened this issue Aug 22, 2024 · 4 comments
Closed

[Feature request]: OWON PC 321 - Add clear measurement data #23695

Lacrymal3 opened this issue Aug 22, 2024 · 4 comments
Labels
feature request Feature request stale Stale issues

Comments

@Lacrymal3
Copy link

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.
image

Thank you in advance.

Describe the solution you'd like

Add a push button.
image

Describe alternatives you've considered

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'),

Additional context

Datasheet (clear measurement data - sheet 12) :
PC321 zha clusters and attributes v1.2.4.pdf

@Lacrymal3 Lacrymal3 added the feature request Feature request label Aug 22, 2024
@Koenkk
Copy link
Owner

Koenkk commented Aug 22, 2024

Looks good, could you make a pull request for this?

@Lacrymal3
Copy link
Author

Alright, i'm trying to make a pull request

@Lacrymal3
Copy link
Author

Pull request :
Koenkk/zigbee-herdsman-converters#7895

Copy link
Contributor

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

@github-actions github-actions bot added the stale Stale issues label Dec 13, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request stale Stale issues
Projects
None yet
Development

No branches or pull requests

2 participants