TS0216 Siren thinks its a Smoke Alarm, limited entities via ZHA

TLDR - I’m hoping this is a variant to an alarm already in the system and can be added so more entities are made available, currently only ias_zone status shown.

Backgound
Purchased a couple of ZigBee “Smart Siren’s” from [Banggood.com] in Jan 2021 (https://www.banggood.com/Zigbees-Smart-Sensor-Wireless-WiFi-Linkage-Smart-Sound-And-Light-Alarm-Horn-Siren-Remote-Controller-Smart-Module-p-1758665.html?cur_warehouse=CN&rmmds=search)

On the box they are listed as model MIR-SR100-TY (Virtually unheard of, 1 search result in google)

Setup
Using a ConBee II USB stick I can pair the devices and the model is shown as TS0216, manufacture _TYZB01_0wcfvptl


(ieee masked)

Related
This is a slight variation to _TYZB01_a5tf0bpl noted in a couple posts also calling thier device a TS0216.

Tuya siren(TS0216) doesn’t expose options to Home Assistant · Issue #4510 · dresden-elektronik/deconz-rest-plugin (github.com)

Deconz integration doesnt expose options for tuya zigbee siren · Issue #47297 · home-assistant/core (github.com)

The problem?
The number of entities listed were smaller than expected, like a way to trigger the alarm, silence it, see if the status was armed.

Research
I found the 07-5123-06-zigbee-cluster-library-specification.pdf (zigbeealliance.org) Page 8-28, section 8.4 IAS WD.

I was able to trigger via NodeRed an alarm and silence it using the warning_device_warn service via the zha domain, however many of the options available didn’t work i.e. siren / strobe levels, squawk and modes that weren’t 0 or 1 (on or off).


(ieee masked)

Data:

{
    "ieee": "84:71:27:ff:fe:xx:xx:a1",
    "mode": 1,
    "duration": 60,
    "intensity": 1,
    "level": 3,
    "strobe": 3,
    "duty_cycle": 50
}

The Squawk Mode didn’t work at all and no strobe blinking observed.

There is some yaml configuration someone posted that helped confirm I was using the correct values, No entities in zigbee tuya siren with ZHA - Configuration / Zigbee - Home Assistant Community (home-assistant.io)

I found warning device warn and warning device squawk was built into HA via the Dev tools today. Sadly the device isn’t responding to anything other than mode 0 or 1 on warning mode:

The ask / the request / the requirements?
I am hopeful the device TS0216 which has been previously integrated Tuya Sound and Flash Siren (TS0216) Zigbee compatibility (blakadder.com) can have this additional manufacture code _TYZB01_0wcfvptl added to a known list of alias?

My theory is the entities warning mode, strobe status, siren level, strobe duty cycle, strobe level, squawk mode, squawk level may show up?

Apologies if this is extremely naïve and disrespectful to the developers who work hard, often for free to make many devices show up in HA. I appreciate this is 1 of 100’s of new devices that show up every day and I am happy to provide more information on device details, cluster attributes, debug logs, complete user testing and contribute to documentation.

May be the device is hardware limited and will never do more than on or off. Or it really is a smoke alarm mislabelled? (haven’t tried burning anything… yet)

Let me know if you have any ideas or suggestions? Join the thread if you have the same device and looking for similar functionality, let the team know it is worth the time and energy for more than just me.

Note: Prefer not to try zigbee to mqtt, I have so many devices connected viz ZHA and they all work great, just these alarms.

ZHA just recently added support for Zigbee IAS Alarm Control Panel as a device type so would make sense that IAS Warning Device Type in order to be able to build a Zigbee IAS (Intruder Alarm System).

Also, it was only in the very latest Home Assistant release that introduced siren as an entity in HA, and so far I believe support for this new entity has just been added to the Z-Wave JS integration, see:

https://www.home-assistant.io/blog/#siren

https://developers.home-assistant.io/docs/core/entity/siren/

https://www.home-assistant.io/integrations/siren/

Suggest try posting this question to GitHub - zigpy/zha-device-handlers as a feature request.

…or maybe better post to Discussions · zigpy/zha-device-handlers · GitHub as a discussion there(?).

Regardless, if it’s just an issue with mislabeling then issue will be in GitHub - zigpy/zha-device-handlers

1 Like

FYI, siren platform has now been to a few other integrations as well which could be used as reference:

https://github.com/home-assistant/core/pulls?q=siren

https://github.com/home-assistant/core/pull/57780

https://github.com/home-assistant/core/pull/57780

https://github.com/home-assistant/core/pull/53400

siren, number, and weather has all also been added to base platform list

https://github.com/home-assistant/core/pull/54665

and siren support for available tones provided as a dic has been added as well:

https://github.com/home-assistant/core/pull/54198

FYI, support for siren entities in ZHA integration component now also added to Home Assistant’s core:

https://github.com/home-assistant/core/pull/60920

https://community.home-assistant.io/t/zha-integration-to-use-siren-entity-platform-for-zigbee-sirens-doorbells-and-chimes/343075

Should make it into HA 2021.12 release https://rc.home-assistant.io/blog/2021/12/03/release-202112/

Update: It did make it into the 2021.21 release so if your device is not seen as a siren (even after remove and re-join it) then it need that specific device will probably need a custom quirk in ZHA Device Handlers, see → https://www.home-assistant.io/integrations/zha#zha-exception-and-deviation-handling

Also see https://community.home-assistant.io/t/zha-integration-to-use-siren-entity-platform-for-zigbee-sirens-doorbells-and-chimes/343075