Tuya flash and alarm siren not exposed properly in ZHA

Advice on a zigbee device please : Tuya flash and siren device TS0216 exposes one sensor ‘Ias_zone’ when connected via ZHA in HA. When using Zigbee2MQTT, it has two configurable states - siren level (0-100) and siren on/off. I cant use Z2MQTT anymore (long story - but essentially ZHA is much more stable and faster) - so I need this device to be usable via ZA.
Im assuming this device needs a custom_quirk - (I see its in the zigbee-herdsman library as used by zigbee2Mqtt already)…Can this device be reconfigured to expose the siren volume, and siren on/off ?

{
  "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_a5tf0bpl",
  "model": "TS0216",
  "class": "zigpy.device.Device"
}
1 Like

FYI, support for siren entities in ZHA integration component was now 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/ )

Woo hoo !
I note the debug info in the link is for a different tuya Siren device - so heres hoping it works for the ones I have !

booo… guess it didnt make it !

I also note Orvibo seems deprecated … somewill show me the error of my ways - but I count see it in the release notes… (sorry completely off topic !)

FYI, Add support for siren entities in ZHA by dmulcahey · Pull Request #60920 · home-assistant/core · GitHub 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