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

fix: enable onOffCountdown for TS011F_with_threshold #9086

Merged
merged 1 commit into from
Mar 28, 2025

Conversation

petrkalos
Copy link
Contributor

@petrkalos petrkalos commented Mar 28, 2025

I have 2 _TZ3000_cayepv1a and countdown feature is working properly so enabling it for everyone.

  • If the state is off and set the countdown it will power on with a specific delay
  • If the state is on and set the countdown it will power off with a specific delay

image

Unfortunately I don't own any of the other devices and I am not sure if they support this feature.

This is my first PR here so please let know if there are any other testing steps I should be making.

@Koenkk Koenkk merged commit 63e418d into Koenkk:master Mar 28, 2025
3 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Mar 28, 2025

Thanks!

@petrkalos petrkalos deleted the fix/onOffCountdown branch March 28, 2025 16:42
@puttemanp
Copy link

Could this also be implemented for _TZ3000_uwkja6z1
This is a Nous A4Z dual power plug wich should support this function according to the Z2M device page. However it's not exposed.

@petrkalos
Copy link
Contributor Author

@puttemanp you should be able to add the same statement onOffCountdown: true, here and submit a pull request.

I'd strongly suggest testing it first though.
The way I did was the following

  • Get a shell in the z2q container docker exec -it z2q /bin/sh
  • Edit the tuya.js file (be careful this is a compiled js file, not the original ts so it should be around line 11316) and add the onOffCountdown parameter
  • Exit the container
  • Commit the change docker commit z2q koenkk/zigbee2mqtt:2.1.3_custom
  • Restart z2q container but now create it from your newly created tag 2.1.3_custom
  • You should now be able to see the entities and test them.

Perhaps @Koenkk knows a better way to test this.

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.

3 participants