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

Tuya Siren TS0601 by _TZE204_hcxvyxa5 #3228

Closed
Martijnsx opened this issue Jun 25, 2024 · 2 comments · Fixed by #3361
Closed

Tuya Siren TS0601 by _TZE204_hcxvyxa5 #3228

Martijnsx opened this issue Jun 25, 2024 · 2 comments · Fixed by #3361
Labels
Tuya Request/PR regarding a Tuya device

Comments

@Martijnsx
Copy link

Problem description

Hi, i have this new tuya siren. Is it possible to add support to it to ZHA?

It is a cheap and small siren but for its size loud.

TS0601 by _TZE204_hcxvyxa5

Solution description

A quirk? Or a normal implementation?

I do not know how to make a quirk.

Screenshots/Video

Screenshots/Video

[Paste/upload your media here]

![-1494153273-1897807682](https://github.com/zigpy/zha-device-handlers/assets/99689761/e812b55f-df92-4c41-8e61-895c4fd6dec0)

Device signature

Device signature
[Paste the device signature here]

Diagnostic information

Diagnostic information
[Paste the diagnostic information here]

Logs

Logs
[Paste the logs here]

Custom quirk

Custom quirk
[Paste your custom quirk here]

Additional information

No response

@TheJulianJES TheJulianJES added the Tuya Request/PR regarding a Tuya device label Jun 26, 2024
@TheOddPerson
Copy link

Same as issue #3255
However more information provided the other device request

@JAKAMI99
Copy link

JAKAMI99 commented Sep 25, 2024

Working!

At first, I enabled custom quirks in the configuration.yaml in home assistant because I didn't want to wait for the :main update.
zha: enable_quirks: true custom_quirks_path: /config/zha_quirks/

Then I downloaded the custom quirk:
➜ zha_quirks wget https://raw.githubusercontent.com/zigpy/zha-device-handlers/5c993588c79b7708f9ecfc8ad893df6e51d97924/zhaquirks/tuya/ts0601_siren.py

I rebooted, removed and added the _TZE204_hcxvyxa5 device.

Now the device has a switch. If turned on, the device makes a siren noise for ~500ms and turns off again,

Trough "manage zigbee device" I could change some settings by choosing cluster "TuyaMCUSiren" through the attributes

  • alarm_duration (id: 0x0267) sets the alarm duration in seconds.
  • The volume can be changed trough volume (id: 0x0474) by setting the value to 0(low) , 1(medium) or to 2(high)
  • The melody can be set trough melody (id: 0x0466) where the value can be from 0 to 36 (37 seems to be a duplicate with 0) which varies from classical songs like "Für Elise" (24) to notification ish/doorbell sounds (11) to the three alarm siren sounds (0-2) where 0 is the most alarm one, but they really have a big cheap toy vibe 👶

Melody (dropdown-menu), volume (dropdown-menu) and duration (slider) should be added to the GUI, so everyone can access it.

Thanks for the quick implementation! ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tuya Request/PR regarding a Tuya device
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants