zha-device-handlers: [BUG] Siren TS0216 exposed entities doesn't work

I have a siren that looks like this:

https://zigbee.blakadder.com/Tuya_TS0216.html

The siren was recognized by zha. The on / off switch works as well as the tamper switch. In the home assistant, I have some entities with functions such as the alarm type, the volume, the strobe function, but they do not work. The only way to change the volume is from the device itself. How can I activate these features in my device management?

siren

Device signature:

{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=512, server_mask=11264, maximum_outgoing_transfer_size=512, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0403",
      "in_clusters": [
        "0x0000",
        "0x000a",
        "0x0500",
        "0x0502",
        "0xef01"
      ],
      "out_clusters": [
        "0x0019"
      ]
    }
  },
  "manufacturer": "_TYZB01_0wcfvptl",
  "model": "TS0216",
  "class": "zigpy.device.Device"
}

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 34 (2 by maintainers)

Most upvoted comments

Hello @javicalle! Will there be a quirk for siren support in terms of volume and duration? Do you need anything more from me?

David, the switch that apears in HA is created by the ZHASiren, isn’t it?

Yes

No there are no logs when using squawk service. Only “Warning device warn” is working just to turn on siren.

What is ‘squawk’?

In Z2M the device has a custom command, but I have not reviewed yet.

It’s an OOTB ZCL command.

Ok. 😃 Now i see that signature is changed. Device is working the same way i told you in my previous comment. Changing clusters i can change device volume and duration.

Hello! I use conbee 2 and ZHA. I changed my logger to:

logger:
  default: info
  logs:
    homeassistant.core: debug
    homeassistant.components.zha: debug
    bellows.zigbee.application: debug
    bellows.ezsp: debug
    zigpy: debug
    zigpy_deconz.zigbee.application: debug
    zigpy_deconz.api: debug
    zigpy_xbee.zigbee.application: debug
    zigpy_xbee.api: debug
    zigpy_zigate: debug
    zigpy_znp: debug
    zhaquirks: debug

My log file is massive because i use a lot of zigbee devices. So i try to filter log results using “TS0216” and “_TYZB01_0wcfvptl” Below are filtered results.

	Line  1339: 2022-10-24 13:29:23.918 DEBUG (MainThread) [zigpy.appdb] [0xf228:1:0x0000] Attribute id: 4 value: _TYZB01_0wcfvptl
	Line  1955: 2022-10-24 13:29:23.950 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for _TYZB01_0wcfvptl TS0216 (::::::)
	Line  2759: 2022-10-24 13:29:24.331 DEBUG (MainThread) [zigpy.appdb] [0xf228:1:0x0000] Attribute id: 4 value: _TYZB01_0wcfvptl
	Line  2949: 2022-10-24 13:29:24.784 DEBUG (MainThread) [zigpy_deconz.zigbee.application] device: 0xf228 - _TYZB01_0wcfvptl TS0216, FFD=True, Rx_on_when_idle=True
	Line  3545: 2022-10-24 13:29:25.035 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] [0xF228](_TYZB01_0wcfvptl TS0216) restored as 'available', last seen: 0:00:58 ago, consider_unavailable_time: 7200 seconds
	Line  1505: 2022-10-24 13:17:39.949 DEBUG (MainThread) [zigpy.appdb] [0xf228:1:0x0000] Attribute id: 5 value: TS0216
	Line  2125: 2022-10-24 13:17:40.282 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for _TYZB01_0wcfvptl TS0216 (:::::)
	Line  3065: 2022-10-24 13:17:41.365 DEBUG (MainThread) [zigpy.appdb] [0xf228:1:0x0000] Attribute id: 5 value: TS0216
	Line  3372: 2022-10-24 13:17:42.275 DEBUG (MainThread) [zigpy_deconz.zigbee.application] device: 0xf228 - _TYZB01_0wcfvptl TS0216, FFD=True, Rx_on_when_idle=True
	Line  3954: 2022-10-24 13:17:42.546 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] [0xF228](_TYZB01_0wcfvptl TS0216) restored as 'available', last seen: 0:03:00 ago, consider_unavailable_time: 7200 seconds
	Line  4090: 2022-10-24 13:17:42.559 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF228](TS0216): started initialization
	Line  4091: 2022-10-24 13:17:42.559 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xF228:ZDO](TS0216): 'async_initialize' stage succeeded
	Line  6159: 2022-10-24 13:17:42.647 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF228](TS0216): power source: Mains
	Line  6160: 2022-10-24 13:17:42.647 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF228](TS0216): completed initialization
	Line  6233: 2022-10-24 13:17:42.653 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF228](TS0216): started initialization
	Line  6234: 2022-10-24 13:17:42.653 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0xF228:ZDO](TS0216): 'async_initialize' stage succeeded
	Line 15714: 2022-10-24 13:18:32.019 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF228](TS0216): power source: Mains
	Line 15715: 2022-10-24 13:18:32.019 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF228](TS0216): completed initialization
	Line 16495: 2022-10-24 13:19:09.546 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF228](TS0216): Device seen - marking the device available and resetting counter
	Line 16496: 2022-10-24 13:19:09.546 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF228](TS0216): Update device availability -  device available: True - new availability: True - changed: False
	Line 26079: 2022-10-24 13:20:36.546 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF228](TS0216): Device seen - marking the device available and resetting counter
	Line 26080: 2022-10-24 13:20:36.546 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xF228](TS0216): Update device availability -  device available: True - new availability: True - changed: False

I also download diagnostics from the device:

zha-26ec3139cb678489c574327ee16f28bc-_TYZB01_0wcfvptl TS0216-7e99fe56646d5cec7de410aa3312bee8.json.txt

Is there a way to filter the results you need? I also can upload entire log file if you need it.