Unknown status when using zigate + xiaomi aqara switch

Hello everyone,

I’m a beginner in Home Assistant (came from Jeedom’s world) and I wan’t to use my wireless aquara wireless double switchs (the one with the batteries).
I’m on a RPi 3 B+ and I am using the ZHA integration.
I let the default configuration of the buttons (no cluster changed)
My zigate firmware is 3.1c.

My Zigate successfully permit the switch in its network but for no reason I have an unknown status for the buttons (not the battery) as you can see:
home-assistant-unknown

I checked in the logs if the communication with the zigbee and the buttons worked well and there is the result:

2020-05-01 23:43:33 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 80020019c30001040006020102c048020000181d0a0000100100001000de
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8002 b'0001040006020102c048020000181d0a0000100100001000' LQI:222
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler [0, 260, 6, 2, 1, <Address address_mode=ADDRESS_MODE.NWK address=0xc048>, <Address address_mode=ADDRESS_MODE.NWK address=0x0000>, b'\x18\x1d\n\x00\x00\x10\x01\x00\x00\x10\x00']
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy.zcl] [0xc048:2:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=29 command_id=Command.Report_Attributes>
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy.zcl] [0xc048:2:0x0006] ZCL request 0x000a: [[<Attribute attrid=0 value=<TypeValue type=Bool, value=Bool.true>>, <Attribute attrid=0 value=<TypeValue type=Bool, value=Bool.false>>]]
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy.zcl] [0xc048:2:0x0006] Attribute report received: on_off=Bool.true, on_off=Bool.false
2020-05-01 23:43:33 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event zha_event[L]: device_ieee=00:15:8d:00:02:6e:bd:44, unique_id=00:15:8d:00:02:6e:bd:44:2:0x0006, endpoint_id=2, cluster_id=6, command=attribute_updated, args=attribute_id=0, attribute_name=on_off, value=Bool.true>
2020-05-01 23:43:33 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event zha_event[L]: device_ieee=00:15:8d:00:02:6e:bd:44, unique_id=00:15:8d:00:02:6e:bd:44:2:0x0006, endpoint_id=2, cluster_id=6, command=attribute_updated, args=attribute_id=0, attribute_name=on_off, value=Bool.false>
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 80020019c30001040006020102c048020000181d0a0000100100001000de
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8002 b'0001040006020102c048020000181d0a0000100100001000' LQI:222
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler [0, 260, 6, 2, 1, <Address address_mode=ADDRESS_MODE.NWK address=0xc048>, <Address address_mode=ADDRESS_MODE.NWK address=0x0000>, b'\x18\x1d\n\x00\x00\x10\x01\x00\x00\x10\x00']
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy.zcl] [0xc048:2:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=29 command_id=Command.Report_Attributes>
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy.zcl] [0xc048:2:0x0006] ZCL request 0x000a: [[<Attribute attrid=0 value=<TypeValue type=Bool, value=Bool.true>>, <Attribute attrid=0 value=<TypeValue type=Bool, value=Bool.false>>]]
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy.zcl] [0xc048:2:0x0006] Attribute report received: on_off=Bool.true, on_off=Bool.false
2020-05-01 23:43:33 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event zha_event[L]: device_ieee=00:15:8d:00:02:6e:bd:44, unique_id=00:15:8d:00:02:6e:bd:44:2:0x0006, endpoint_id=2, cluster_id=6, command=attribute_updated, args=attribute_id=0, attribute_name=on_off, value=Bool.true>
2020-05-01 23:43:33 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event zha_event[L]: device_ieee=00:15:8d:00:02:6e:bd:44, unique_id=00:15:8d:00:02:6e:bd:44:2:0x0006, endpoint_id=2, cluster_id=6, command=attribute_updated, args=attribute_id=0, attribute_name=on_off, value=Bool.false>
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy_zigate.uart] Frame received: 80020019c30001040006020102c048020000181d0a0000100100001000de
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy_zigate.api] data received 0x8002 b'0001040006020102c048020000181d0a0000100100001000' LQI:222
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy_zigate.zigbee.application] zigate_callback_handler [0, 260, 6, 2, 1, <Address address_mode=ADDRESS_MODE.NWK address=0xc048>, <Address address_mode=ADDRESS_MODE.NWK address=0x0000>, b'\x18\x1d\n\x00\x00\x10\x01\x00\x00\x10\x00']
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy.zcl] [0xc048:2:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=GLOBAL_COMMAND manufacturer_specific=False is_reply=True disable_default_response=True> manufacturer=None tsn=29 command_id=Command.Report_Attributes>
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy.zcl] [0xc048:2:0x0006] ZCL request 0x000a: [[<Attribute attrid=0 value=<TypeValue type=Bool, value=Bool.true>>, <Attribute attrid=0 value=<TypeValue type=Bool, value=Bool.false>>]]
2020-05-01 23:43:33 DEBUG (MainThread) [zigpy.zcl] [0xc048:2:0x0006] Attribute report received: on_off=Bool.true, on_off=Bool.false
2020-05-01 23:43:33 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event zha_event[L]: device_ieee=00:15:8d:00:02:6e:bd:44, unique_id=00:15:8d:00:02:6e:bd:44:2:0x0006, endpoint_id=2, cluster_id=6, command=attribute_updated, args=attribute_id=0, attribute_name=on_off, value=Bool.true>
2020-05-01 23:43:33 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event zha_event[L]: device_ieee=00:15:8d:00:02:6e:bd:44, unique_id=00:15:8d:00:02:6e:bd:44:2:0x0006, endpoint_id=2, cluster_id=6, command=attribute_updated, args=attribute_id=0, attribute_name=on_off, value=Bool.false>

As you can see in the logs the event is send to the zigate and recognized on the zigpy.
Why do I still have an unknown status?

Thanks for advance :slight_smile: