zha-device-handlers: Tuya siren still not working on RPi4

Ok I achieved to test my quirk, and now my device is working, see the result : zha I will try to make a pull request soon, it is just a tiny change in the siren.py file.

_Originally posted by @CharlieBailly in https://github.com/zigpy/zha-device-handlers/issues/648#issuecomment-754956900_

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 31 (13 by maintainers)

Most upvoted comments

I just upgraded to Home Assistant Core 2022.6.7 (+ latest ZHA), removed and re-added this device, and am still having issues. Like @juhanjuku mentioned above, the on/off switch on the siren entity does not do anything and both the temperature and humidity sensors are Unknown. Has anyone been able to get this device to work or any suggestions on where to start?

The device signature is below:

{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0403",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0006",
        "0x0402",
        "0x0405",
        "0xef00"
      ],
      "out_clusters": [
        "0x0003",
        "0x0019"
      ]
    }
  },
  "manufacturer": "_TZE200_d0yu2xgi",
  "model": "TS0601",
  "class": "zhaquirks.tuya.ts0601_siren.TuyaSiren2"
}

Humidity and temperature sensors show ‘Unknown’ On_off switch does nothing. With ‘Manage clusters’ I can’t read any attribute. Not sure if I make service call from developers tools correctly, but no response to ‘siren.turn_on’

2021-12-14_202027

I’m ready to make any tests if you can advise me what to do

I have finally succeeded to run custom quirk ts0601_siren. For start I didn’t changed anything in original quirk except adding class TuyaSiren3(TuyaSiren) After deleting and rejoining my siren I see in log: [0xD1B9:1:0x0006]: bound ‘on_off’ cluster: Status.SUCCESS [0xD1B9:1:0x0405]: bound ‘humidity’ cluster: Status.SUCCESS [0xD1B9:1:0x0402]: bound ‘temperature’ cluster: Status.SUCCESS but then comes error: Error handling ‘_save_attribute’ event with (80:4b:50:ff:fe:04:74:f8, 1, 0, 4, ‘_TZE200_d0yu2xgi’) params: FOREIGN KEY constraint failed siren.log

I’m running core-2021.11.2 on Rasperry Pi4 For me TS0601 by _TZE200_d0yu2xgi is still not working image