Skip to content

Implement hardware GPIO pulse counter API#314

Open
jpbede wants to merge 2 commits into
romasku:mainfrom
jpbede:hardware-pulse-counting
Open

Implement hardware GPIO pulse counter API#314
jpbede wants to merge 2 commits into
romasku:mainfrom
jpbede:hardware-pulse-counting

Conversation

@jpbede
Copy link
Copy Markdown

@jpbede jpbede commented Jan 31, 2026

This is the first PR in a series of PRs implementing power monitoring and reporting. I've split them into multiple PRs to make review easier.

This PR now implements hardware GPIO pulse counter APIs. Currently, they are not used anywhere and only work on Telink. They are no-op for Silabs as I lack hardware to test them.

@HobboRobin
Copy link
Copy Markdown

How is this going ? I have plenty of devices to test and experiment with. I am also Happy to help or learn. Flashing to the new Firmware was easy and all BSEED Light Switches i have are working fine :)
I have 3 networks of each over 100 Devices to Update and Test :D

@andrei-lazarov
Copy link
Copy Markdown
Collaborator

Hello! Here we are waiting for a review from Romasku.
The tuya-zigbee-switch project grew fast and became more difficult to maintain than initially planned 😬

@HobboRobin
Copy link
Copy Markdown

Hello! Here we are waiting for a review from Romasku. The tuya-zigbee-switch project grew fast and became more difficult to maintain than initially planned 😬

That sounds already great. When i can i would be happy to help. I am not to stupid in programming :D
It grew so fast because it is working good and is well documented. So just for all of you. Good Job :)

@MissMusic
Copy link
Copy Markdown

I'm also really interested in this. I have a few _TZ3000_kqvb5akv devices i got to get additional power monitoring, but after installing just one I realized they have bad firmware that report link status 5 times a second, bogging down the Zigbee network entirely, and ended up here looking for a better firmware.

@andrei-lazarov
Copy link
Copy Markdown
Collaborator

andrei-lazarov commented May 17, 2026

@MissMusic please open an issue on Koenkk/zigbee2mqtt and provide debug logs. Try to capture and potentially identify the unwanted messages. Maybe it can be prevented.
Devices rarely "report link status". They usually report something else, and link quality comes as a parameter.
Or at least we can update the docs about the issue.

@MissMusic
Copy link
Copy Markdown

MissMusic commented May 17, 2026

@andrei-lazarov When searching online all I found was that nothing could be done outside of updating the device firmware if no settings on the device level to change the behavior is supported.
Either way, I will report it to make it a known issue.
Already found it reported:
Koenkk/zigbee2mqtt#31522

@elmr91
Copy link
Copy Markdown

elmr91 commented May 23, 2026

Waiting for the power monitor feature to be implemented on Romasku firmware, I fixed the _TZ3000_kqvb5akv spamming behavior using this firmware:
https://github.com/slacky1965/tuya_mini_relay_zrd

It performs very well and fixed the exact same problem. @MissMusic, you may give it a try.
But I would switch to generic Romasku firmware when power monitor feature will be integrated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants