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

Add DDF + Button Map for _TZ3000_ja5osu5g Tuya Smart Button #6977

Merged
merged 2 commits into from May 16, 2023
Merged

Add DDF + Button Map for _TZ3000_ja5osu5g Tuya Smart Button #6977

merged 2 commits into from May 16, 2023

Conversation

Xyaren
Copy link
Contributor

@Xyaren Xyaren commented May 15, 2023

My Try at a DDF for a smart button I recently bought:

https://de.aliexpress.com/item/1005005238316199.html?spm=a2g0o.order_list.order_list_main.11.49a15c5fjVVmas&gatewayAdapt=glo2deu

This is a single button, battery powered (button cell).

The button has two modes, you can switch between them by 3xPressing the button very fast.

Scenario Mode

image

Single Press
Double Press
Long Press

I added the button events for this mode. They are working very reliable.

Remote Mode

image

Not very much info yet.

Single Press to turn on, double to turn off.

When on: press and hold to dim.
It seems to increase, then decrease and cycle again.
I was not able to identify a "start" event for dimming, although a "LEVEL_CONTROL STOP" event was sent.

Single press when on: Seems to cycle between 4 Presets of Level & Color Control based on the received button events (When on) I have no dimmable light to test this using a direct binding.
Could also just be some kind of Tuya-Magic.
The button can be bound directly to a plug to control on/off (tested)

Notes

Testing is quite challenging. When playing aroung with bindings, I managed to put the button in some kind of state, that prevented the mode switch by 3x pressing the button.
Even after re-pairing this state remained.
Only after I brute-force played around with the unbinding in the GUI I managed to revert it backt to its initial behaviour.

@Xyaren
Copy link
Contributor Author

Xyaren commented May 15, 2023

In case this PR is not enough or is going to be abandoned for whatever reason I just created #6979 with all the details

@Xyaren Xyaren marked this pull request as ready for review May 15, 2023 21:14
@manup manup added this to the v2.22.1-beta milestone May 16, 2023
@manup manup linked an issue May 16, 2023 that may be closed by this pull request
@manup manup merged commit 257dec2 into dresden-elektronik:master May 16, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TS004F _TZ3000_ja5osu5g Tuya Smart Button
2 participants