zigpy / zha-device-handlers

ZHA device handlers bridge the functionality gap created when manufacturers deviate from the ZCL specification, handling deviations and exceptions by parsing custom messages to and from Zigbee devices.
Apache License 2.0
717 stars 665 forks source link

[Device Support Request] Xiaomi Smoke Detector #805

Closed 1800Zeta closed 2 years ago

1800Zeta commented 3 years ago

I am trying to get some additional functionality out of the smoke detector if possible please. There is already a handler which can be found at https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/xiaomi/mija/smoke.py

Would it be possible to get the additional entities presented? https://zigbee.blakadder.com/Xiaomi_JTYJ-GD-01LM_BW.html This lists Detector Sensitivity and Smoke Density

https://www.youtube.com/watch?v=EdezXlPoc4U This video shows the app initiating a self test. It would be nice to be able to issue a self test, and potentially set the sensitivity.

I've put the pairing debug log below. If I start viewing the clusters within Home Assistant, it looks like the information might be there, but I am not 100% sure. Things like the smoke density, I would be interested to see if I can have a pre-warning that the alarm will go off when density is say 0-10, then when it hits 11, presumably the alarm would go off.

Thank you in advance

2021-03-05 15:52:26 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e41000700aa00 2021-03-05 15:52:26 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0] 2021-03-05 15:52:26 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2021-03-05 15:52:26 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1741000800010001 2021-03-05 15:52:26 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17410025001e0022020000010272bc0b04010000070018700a0100204200afff219d2c00d8 2021-03-05 15:52:26 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [30, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xbc72>, 11, 260, 0, b'\x18p\n\x01\x00 B', 0, 175, 255, 33, 157, 44, 0, -40] 2021-03-05 15:52:26 DEBUG (MainThread) [zigpy.zcl] [0xbc72:11:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=112 command_id=Command.Report_Attributes> 2021-03-05 15:52:26 DEBUG (MainThread) [zigpy.zcl] [0xbc72:11:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=66>)]] 2021-03-05 15:52:26 DEBUG (MainThread) [zigpy.zcl] [0xbc72:11:0x0000] Attribute report received: app_version=66 2021-03-05 15:52:26 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xbc72>, ep: 11, profile: 0x0104, cluster_id: 0x0000, data: b'18700a01002042' 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c420012000b00039dd78705008d1500ffd1 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c43000c00050002eb37ffd1 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e44000700aa00 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0] 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1742000800010001 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1742002a0023002202fdff0002eb3700000013000c00fdeb379dd78705008d15008000afff219d2c00d2 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [35, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0xfffd>, 0, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, 0, 0, 19, b'\xfd\xeb7\x9d\xd7\x87\x05\x00\x8d\x15\x00\x80', 0, 175, 255, 33, 157, 44, 0, -46] 2021-03-05 15:52:27 INFO (MainThread) [zigpy_deconz.zigbee.application] New device joined: 0x37eb, 00:15:8d:00:05:87:d7:9d 2021-03-05 15:52:27 INFO (MainThread) [zigpy.application] Device 0x37eb (00:15:8d:00:05:87:d7:9d) joined the network 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy.zdo] [0x37eb:zdo] ZDO request ZDOCmd.Device_annce: [0x37EB, 00:15:8d:00:05:87:d7:9d, 128] 2021-03-05 15:52:27 INFO (MainThread) [zigpy.device] [0x37eb] Requesting 'Node Descriptor' 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy.util] Tries remaining: 2 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy.device] [0x37eb] Extending timeout for 0x38 request 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Sending Zigbee request with tsn 56 under 57 request id, data: b'38eb37' 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, ep: 0, profile: 0x0000, cluster_id: 0x0013, data: b'fdeb379dd78705008d150080' 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_request (18, 57, 0, <DeconzAddressEndpoint address_mode=2 address=0x37EB endpoint=0>, 0, <ZDOCmd.Node_Desc_req: 0x0002>, 0, b'8\xeb7', 2, 0) 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x12430019001200390002eb37000000020000030038eb370200 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x124300090002002239 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.api] APS data request response: [2, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, 57] 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e44000700aa00 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0] 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1744000800010001 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1744003a003300220200000102eb3701040100001c0018000a050042116c756d692e73656e736f725f736d6f6b650100200100afffae9c2c00d2 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [51, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, 1, 260, 0, b'\x18\x00\n\x05\x00B\x11lumi.sensor_smoke\x01\x00 \x01', 0, 175, 255, 174, 156, 44, 0, -46] 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy.application] Received frame on uninitialized device 00:15:8d:00:05:87:d7:9d (Status.NEW) for endpoint: 1 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy.device] [0x37eb] Received ZCL while uninitialized on endpoint id 1, cluster 0x0000 id, hdr: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=0 command_id=Command.Report_Attributes>, payload: b'\x05\x00B\x11lumi.sensor_smoke\x01\x00 \x01' 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy.device] [0x37eb] Uninitialized device command 'Command.Report_Attributes' args: [[Attribute(attrid=5, value=<TypeValue type=CharacterString, value=lumi.sensor_smoke>), Attribute(attrid=1, value=<TypeValue type=uint8_t, value=1>)]] 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy.device] [0x37eb] Found 'MijiaHoneywellSmokeDetectorSensor' quirk for 'lumi.sensor_smoke' model 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy.device] Canceling old initialize call 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for LUMI lumi.sensor_smoke (00:15:8d:00:05:87:d7:9d) 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'zhaquirks.xiaomi.mija.smoke.MijiaHoneywellSmokeDetectorSensor'> 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy.quirks.registry] Found custom device replacement for 00:15:8d:00:05:87:d7:9d: <class 'zhaquirks.xiaomi.mija.smoke.MijiaHoneywellSmokeDetectorSensor'> 2021-03-05 15:52:27 INFO (MainThread) [zigpy.device] [0x37eb] Was quickly initialized from 'zhaquirks.xiaomi.mija.smoke.MijiaHoneywellSmokeDetectorSensor' quirk 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x37EB:00:15:8d:00:05:87:d7:9d entering async_device_initialized - is_new_join: True 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] device - 0x37EB:00:15:8d:00:05:87:d7:9d has joined the ZHA zigbee network 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x37EB](lumi.sensor_smoke): started configuration 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:ZDO](lumi.sensor_smoke): 'async_configure' stage succeeded 2021-03-05 15:52:27 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, ep: 1, profile: 0x0104, cluster_id: 0x0000, data: b'18000a050042116c756d692e73656e736f725f736d6f6b6501002001' 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0000]: skipping channel configuration 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0001]: skipping channel configuration 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0500]: skipping IASZoneChannel configuration 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0019]: skipping channel configuration 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0000]: 'async_configure' stage succeeded 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0001]: 'async_configure' stage succeeded 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0500]: 'async_configure' stage succeeded 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0019]: 'async_configure' stage succeeded 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x37EB](lumi.sensor_smoke): completed configuration 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x37EB](lumi.sensor_smoke): stored in registry: ZhaDeviceEntry(name='LUMI lumi.sensor_smoke', ieee='00:15:8d:00:05:87:d7:9d', last_seen=1614959547.8274348) 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x37EB](lumi.sensor_smoke): started initialization 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:ZDO](lumi.sensor_smoke): 'async_initialize' stage succeeded 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0000]: 'async_initialize' stage succeeded 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0001]: 'async_initialize' stage succeeded 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0500]: 'async_initialize' stage succeeded 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0019]: 'async_initialize' stage succeeded 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x37EB](lumi.sensor_smoke): power source: Battery or Unknown 2021-03-05 15:52:27 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x37EB](lumi.sensor_smoke): completed initialization 2021-03-05 15:52:28 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e45000700aa00 2021-03-05 15:52:28 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0] 2021-03-05 15:52:28 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2021-03-05 15:52:28 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1745000800010001 2021-03-05 15:52:28 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1745004c004500220200000102eb3701040100002e0018010a01ff42280121ef0b03281e0421a80105211000062401000000000a2100000821041064200096230000000000afff279d2c00c3 2021-03-05 15:52:28 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [69, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, 1, 260, 0, b'\x18\x01\n\x01\xffB(\x01!\xef\x0b\x03(\x1e\x04!\xa8\x01\x05!\x10\x00\x06$\x01\x00\x00\x00\x00\n!\x00\x00\x08!\x04\x10d \x00\x96#\x00\x00\x00\x00', 0, 175, 255, 39, 157, 44, 0, -61] 2021-03-05 15:52:28 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=1 command_id=Command.Report_Attributes> 2021-03-05 15:52:28 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ValueError exception for: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=1 command_id=Command.Report_Attributes> payload: b'01ff42280121ef0b03281e0421a80105211000062401000000000a21000008210410642000962300000000' 2021-03-05 15:52:28 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] new data: b'18010a01ff42270121ef0b03281e0421a80105211000062401000000000a21000008210410642000962300000000' 2021-03-05 15:52:28 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=1 command_id=Command.Report_Attributes> 2021-03-05 15:52:28 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=65281, value=<TypeValue type=CharacterString, value=!� (!�!>)]] 2021-03-05 15:52:28 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] Attribute report received: 65281=!� (!�! 2021-03-05 15:52:28 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0001] Voltage mV: [Min]:2820 < [RAW]:3055 < [Max]:3100, Battery Percent: 84.0 2021-03-05 15:52:28 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, ep: 1, profile: 0x0104, cluster_id: 0x0000, data: b'18010a01ff42280121ef0b03281e0421a80105211000062401000000000a21000008210410642000962300000000' 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e46000700a600 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_CONFIRM|2: 166>, 0] 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c47000c00050002eb37ffd0 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_confirm (0,) 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x04460007000000 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x04460013000c00223902eb3700000000000000 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.api] APS data confirm response for request with id 57: 00 2021-03-05 15:52:29 WARNING (MainThread) [zigpy_deconz.zigbee.application] Unexpected transmit confirm for request id 57, Status: TXStatus.SUCCESS 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.api] Request id: 0x39 'aps_data_confirm' for <DeconzAddressEndpoint address_mode=ADDRESS_MODE.NWK address=0x37eb endpoint=0>, status: 0x00 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e47000700aa00 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0] 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c48000c00050002eb37ffd0 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1747000800010001 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1747002f002800220200000002eb37000000028011003800eb3702408037107f6400000064000000afff279d2c00cf 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [40, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 0, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, 0, 0, 32770, b'8\x00\xeb7\x02@\x807\x10\x7fd\x00\x00\x00d\x00\x00', 0, 175, 255, 39, 157, 44, 0, -49] 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy.zdo] [0x37eb:zdo] ZDO request ZDOCmd.Node_Desc_rsp: [<Status.SUCCESS: 0>, 0x37EB, NodeDescriptor(byte1=2, byte2=64, mac_capability_flags=128, manufacturer_code=4151, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=0, maximum_outgoing_transfer_size=100, descriptor_capability_field=0)] 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy.zdo] [0x37eb:zdo] Unsupported ZDO request:ZDOCmd.Node_Desc_rsp 2021-03-05 15:52:29 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, ep: 0, profile: 0x0000, cluster_id: 0x8002, data: b'3800eb3702408037107f64000000640000' 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e48000700aa00 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0] 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c49000c00050002eb37ffd2 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1748000800010001 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c4a000c00050002eb37ffd2 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17480036002f00220200000102eb370104010000180018020a050042116c756d692e73656e736f725f736d6f6b6500afff279d2c00d2 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [47, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, 1, 260, 0, b'\x18\x02\n\x05\x00B\x11lumi.sensor_smoke', 0, 175, 255, 39, 157, 44, 0, -46] 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=2 command_id=Command.Report_Attributes> 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=5, value=<TypeValue type=CharacterString, value=lumi.sensor_smoke>)]] 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] Attribute report received: model=lumi.sensor_smoke 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, ep: 1, profile: 0x0104, cluster_id: 0x0000, data: b'18020a050042116c756d692e73656e736f725f736d6f6b65' 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e49000700aa00 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0] 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1749000800010001 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x17490027002000220200000102eb3701040100050900190300000000ff000000afff279d2c00d2 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [32, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, 1, 260, 1280, b'\x19\x03\x00\x00\x00\x00\xff\x00\x00', 0, 175, 255, 39, 157, 44, 0, -46] 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0500] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=3 command_id=0> 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0500] ZCL request 0x0000: [<ZoneStatus.0: 0>, <bitmap8.0: 0>, 255, 0] 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0500] No handler for cluster command 0 2021-03-05 15:52:32 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0500]: Updated alarm state: ZoneStatus.0 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, ep: 1, profile: 0x0104, cluster_id: 0x0500, data: b'190300000000ff0000' 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e4a000700aa00 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0] 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x174a000800010001 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x174a004c004500220200000102eb3701040100002e0018040a01ff42280121ef0b03281e0421a80105211000062402000000000a2100000821041064200096230000000000afff279d2c00d2 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [69, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, 1, 260, 0, b'\x18\x04\n\x01\xffB(\x01!\xef\x0b\x03(\x1e\x04!\xa8\x01\x05!\x10\x00\x06$\x02\x00\x00\x00\x00\n!\x00\x00\x08!\x04\x10d \x00\x96#\x00\x00\x00\x00', 0, 175, 255, 39, 157, 44, 0, -46] 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=4 command_id=Command.Report_Attributes> 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ValueError exception for: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=4 command_id=Command.Report_Attributes> payload: b'01ff42280121ef0b03281e0421a80105211000062402000000000a21000008210410642000962300000000' 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] new data: b'18040a01ff42270121ef0b03281e0421a80105211000062402000000000a21000008210410642000962300000000' 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=4 command_id=Command.Report_Attributes> 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=65281, value=<TypeValue type=CharacterString, value=!� (!�!>)]] 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] Attribute report received: 65281=!� (!�! 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0001] Voltage mV: [Min]:2820 < [RAW]:3055 < [Max]:3100, Battery Percent: 84.0 2021-03-05 15:52:32 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, ep: 1, profile: 0x0104, cluster_id: 0x0000, data: b'18040a01ff42280121ef0b03281e0421a80105211000062402000000000a21000008210410642000962300000000' 2021-03-05 15:52:33 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e4b000700aa00 2021-03-05 15:52:33 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0] 2021-03-05 15:52:33 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2021-03-05 15:52:33 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x174b000800010001 2021-03-05 15:52:33 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x174b0026001f002202000001022f0c01040100030800184f0a0700211b0100afff279d2c00c6 2021-03-05 15:52:33 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [31, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0c2f>, 1, 260, 768, b'\x18O\n\x07\x00!\x1b\x01', 0, 175, 255, 39, 157, 44, 0, -58] 2021-03-05 15:52:33 DEBUG (MainThread) [zigpy.zcl] [0x0c2f:1:0x0300] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=79 command_id=Command.Report_Attributes> 2021-03-05 15:52:33 DEBUG (MainThread) [zigpy.zcl] [0x0c2f:1:0x0300] ZCL request 0x000a: [[Attribute(attrid=7, value=<TypeValue type=uint16_t, value=283>)]] 2021-03-05 15:52:33 DEBUG (MainThread) [zigpy.zcl] [0x0c2f:1:0x0300] Attribute report received: color_temperature=283 2021-03-05 15:52:33 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0c2f>, ep: 1, profile: 0x0104, cluster_id: 0x0300, data: b'184f0a0700211b01' 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c4c000c00050002eb37ffd6 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e4d000700aa00 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0] 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x174c000800010001 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x174c0027002000220200000102eb3701040100050900190500000000ff000000afff279d2c00d7 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [32, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, 1, 260, 1280, b'\x19\x05\x00\x00\x00\x00\xff\x00\x00', 0, 175, 255, 39, 157, 44, 0, -41] 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0500] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=5 command_id=0> 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0500] ZCL request 0x0000: [<ZoneStatus.0: 0>, <bitmap8.0: 0>, 255, 0] 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0500] No handler for cluster command 0 2021-03-05 15:52:35 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0500]: Updated alarm state: ZoneStatus.0 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, ep: 1, profile: 0x0104, cluster_id: 0x0500, data: b'190500000000ff0000' 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e4d000700aa00 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0] 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x174d000800010001 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x174d004c004500220200000102eb3701040100002e0018060a01ff42280121ef0b03281e0421a80105211000062403000000000a2100000821041064200096230000000000afff279d2c00d6 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [69, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, 1, 260, 0, b'\x18\x06\n\x01\xffB(\x01!\xef\x0b\x03(\x1e\x04!\xa8\x01\x05!\x10\x00\x06$\x03\x00\x00\x00\x00\n!\x00\x00\x08!\x04\x10d \x00\x96#\x00\x00\x00\x00', 0, 175, 255, 39, 157, 44, 0, -42] 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=6 command_id=Command.Report_Attributes> 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ValueError exception for: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=6 command_id=Command.Report_Attributes> payload: b'01ff42280121ef0b03281e0421a80105211000062403000000000a21000008210410642000962300000000' 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] new data: b'18060a01ff42270121ef0b03281e0421a80105211000062403000000000a21000008210410642000962300000000' 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=6 command_id=Command.Report_Attributes> 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=65281, value=<TypeValue type=CharacterString, value=!� (!�!>)]] 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] Attribute report received: 65281=!� (!�! 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0001] Voltage mV: [Min]:2820 < [RAW]:3055 < [Max]:3100, Battery Percent: 84.0 2021-03-05 15:52:35 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, ep: 1, profile: 0x0104, cluster_id: 0x0000, data: b'18060a01ff42280121ef0b03281e0421a80105211000062403000000000a21000008210410642000962300000000' 2021-03-05 15:52:36 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e4e000700aa00 2021-03-05 15:52:36 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0] 2021-03-05 15:52:36 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2021-03-05 15:52:36 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x174e000800010001 2021-03-05 15:52:36 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x174e0025001e0022020000010247520104010000070018510a0100205000afff279d2c00d8 2021-03-05 15:52:36 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [30, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x5247>, 1, 260, 0, b'\x18Q\n\x01\x00 P', 0, 175, 255, 39, 157, 44, 0, -40] 2021-03-05 15:52:36 DEBUG (MainThread) [zigpy.zcl] [0x5247:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=81 command_id=Command.Report_Attributes> 2021-03-05 15:52:36 DEBUG (MainThread) [zigpy.zcl] [0x5247:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=1, value=<TypeValue type=uint8_t, value=80>)]] 2021-03-05 15:52:36 DEBUG (MainThread) [zigpy.zcl] [0x5247:1:0x0000] Attribute report received: app_version=80 2021-03-05 15:52:36 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x5247>, ep: 1, profile: 0x0104, cluster_id: 0x0000, data: b'18510a01002050' 2021-03-05 15:52:38 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c4f000c00050002eb37ffd7 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e50000700aa00 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0] 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x174f000800010001 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x0e51000700aa00 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy_deconz.api] Device state changed response: [<DeviceState.128|APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 170>, 0] 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x174f00270020002a0200000102eb3701040100050900190700000000ff000000afff279d2c00d7 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [32, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|APSDE_DATA_INDICATION|2: 42>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, 1, 260, 1280, b'\x19\x07\x00\x00\x00\x00\xff\x00\x00', 0, 175, 255, 39, 157, 44, 0, -41] 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0500] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=7 command_id=0> 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0500] ZCL request 0x0000: [<ZoneStatus.0: 0>, <bitmap8.0: 0>, 255, 0] 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0500] No handler for cluster command 0 2021-03-05 15:52:39 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x37EB:1:0x0500]: Updated alarm state: ZoneStatus.0 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, ep: 1, profile: 0x0104, cluster_id: 0x0500, data: b'190700000000ff0000' 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy_deconz.api] Command Command.aps_data_indication (1, 1) 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy_deconz.uart] Send: 0x1750000800010001 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1750004c004500220200000102eb3701040100002e0018080a01ff42280121ef0b03281e0421a80105211000062404000000000a2100000821041064200096230000000000afff279d2c00d6 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [69, <DeviceState.APSDE_DATA_REQUEST_SLOTS_AVAILABLE|2: 34>, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, 1, 260, 0, b'\x18\x08\n\x01\xffB(\x01!\xef\x0b\x03(\x1e\x04!\xa8\x01\x05!\x10\x00\x06$\x04\x00\x00\x00\x00\n!\x00\x00\x08!\x04\x10d \x00\x96#\x00\x00\x00\x00', 0, 175, 255, 39, 157, 44, 0, -42] 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=8 command_id=Command.Report_Attributes> 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ValueError exception for: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=8 command_id=Command.Report_Attributes> payload: b'01ff42280121ef0b03281e0421a80105211000062404000000000a21000008210410642000962300000000' 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] new data: b'18080a01ff42270121ef0b03281e0421a80105211000062404000000000a21000008210410642000962300000000' 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=8 command_id=Command.Report_Attributes> 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] ZCL request 0x000a: [[Attribute(attrid=65281, value=<TypeValue type=CharacterString, value=!� (!�!>)]] 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0000] Attribute report received: 65281=!� (!�! 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy.zcl] [0x37eb:1:0x0001] Voltage mV: [Min]:2820 < [RAW]:3055 < [Max]:3100, Battery Percent: 84.0 2021-03-05 15:52:39 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x37eb>, ep: 1, profile: 0x0104, cluster_id: 0x0000, data: b'18080a01ff42280121ef0b03281e0421a80105211000062404000000000a21000008210410642000962300000000' 2021-03-05 15:52:42 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c51000c00050002eb37ffd6 2021-03-05 15:52:45 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c52000c00050002eb37ffd7 2021-03-05 15:52:48 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c53000c00050002eb37ffd4 2021-03-05 15:52:51 DEBUG (MainThread) [zigpy_deconz.uart] Frame received: 0x1c54000c00050002eb37ffd3

1800Zeta commented 3 years ago

Apparently this is a really good Hubitat driver: https://raw.githubusercontent.com/markus-li/Hubitat/release/drivers/expanded/zigbee-xiaomi-smoke-detector-expanded.groovy

I can see test within this although I am not sure on Groovy and how to convert to Python/zigpy

1800Zeta commented 3 years ago

Doing more digging, I can see what looks like the correct cluster to issue the test command to when using Manage Clusters option on the device. But when I attempt to issue the command it errors with ValueError: Wrong number of parameters for request, expected 2 argument(s).

Adminiuga commented 3 years ago

I don't know if ui handles multiple commands parameters. You would need to use service call, that can send multiple command params

1800Zeta commented 3 years ago

I have managed to get the test to work: service: zha.set_zigbee_cluster_attribute data: ieee: 00:15:8d:00:05:87:d7:9d endpoint_id: 1 cluster_id: 1280 attribute: 65521 value: 50397184 manufacturer: 4447 A few moments after issuing this command it beeps, same as pressing the manual test button.

nashant commented 3 years ago

I would very much like this too. The relevant Zigbee2MQTT code is here: https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/devices/xiaomi.js#L792-L804 https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/converters/fromZigbee.js#L5335-L5364 https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/converters/toZigbee.js#L1993-L2013

The sigpy/ZHA code is, apparently, here: https://github.com/zigpy/zha-device-handlers/blob/9c278b8f9c42a8d8f0c1d1b8dc3b137992f19981/zhaquirks/xiaomi/__init__.py#L185-L217

I've been suggested to add a PM2.5 cluster a la: https://github.com/zigpy/zigpy/blob/dev/zigpy/zcl/clusters/measurement.py#L332

I'm just not sure where to start

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

linust commented 2 years ago

Checked with the a test version. The capability is not there. Since this is one of the more afordable zigbee smoke detectors the capabilities described and researched in this thread has high value. Smart muting of alarms and using using multiple wireless smoke alarms as sirens for home alarm comes to mind.

Would prefer to keep this open. Unsure how I can assist in progressing the issue though.

1800Zeta commented 2 years ago

I am seeing more and more people in general asking questions about this smoke alarm. Have had a couple on my YouTube video where I unboxed and added it to Home Assistant. It would be good to get this sorted. Like @LinusT and @nashant I am unsure how to work with the files etc. I have read and read but struggling to get head around it all

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.