Aqara switch module T1 rebound switch

I have a few Aqara T1s that I want to respond to a rebound switch. I know if I add it to an Aqara hub, I can adjust some settings in the Aqara hub - but is there any way of doing it without having a hub?

1 Like

Did you ever found the answer? I’m also want to control the T1 switch with a push button.

Found this the other day, but haven’t gotten around to try it. Under switch type

https://www.zigbee2mqtt.io/devices/DLKZMK11LM.html

Thanks, the Switch_type (enum) is probably the anwser to the question. I’m not using the mqtt bridge as I use the direct integration with HA. I’ll need to check if I need to install the bridge or that I can call this service somehowe from HA directly. If somebody knows how, please enlighen us.

Are you using zigbee2mqtt?
If so, I think if you head to ypur mqtt in home assistant, and then configurate, you can send those packages there maybe?


No I’m using ZHA. In ZHA you can configure the Cluster attributes of the device wich is a lower level than the Switch_Type in MQTT. Actually this is the code that implements the mqtt switch_type command:

xiaomi_switch_type: {
key: [‘switch_type’],
convertSet: async (entity, key, value, meta) => {
const lookup = {‘toggle’: 1, ‘momentary’: 2};
value = value.toLowerCase();
utils.validateValue(value, Object.keys(lookup));
await entity.write(‘aqaraOpple’, {0x000A: {value: lookup[value], type: 0x20}}, manufacturerOptions.xiaomi);
return {state: {switch_type: value}};
},
convertGet: async (entity, key, meta) => {
await entity.read(‘aqaraOpple’, [0x000A], manufacturerOptions.xiaomi);
},
},

I would like to reverse engineer what the values are for the set cluster attribute request in ZHA?

For example:

service: zha.set_zigbee_cluster_attribute
service data:
ieee: ‘84:2e:14:aa:bb:cc:eb:c0’
endpoint_id: 1
cluster_id: 513
attribute: 16387
cluster_type: out
value: 1
manufacturer: ‘4678’

The “ieee” i can figure out. But what are the other values for the switch_type equivalent in mqtt? I’m not able to figure out what the attribute identifier would be. I tried 0x000A but what is the cluster_id and endpoint?

Hi,
I assume this is not at all possible if using the deConz integration, right?

Any updates?

I would like to change fibaro switches to those Aqara T1s but this blocks me :expressionless:

Does the ZHA integration not expose all of the configuration attributes that Zigbee2MQTT does for it?

https://www.zigbee2mqtt.io/devices/DLKZMK11LM.html

Exposes: switch (state), power, energy, temperature, voltage, power_outage_memory, led_disabled_night, switch_type, linkquality

If not then suggest mention it to ZHA devs here → https://github.com/zigpy/zigpy/discussions/934

No, in the zigbee cluster the switch type is not present

Recommend also submit a new device support request mentioning this if this is not the same device:

Probably a good idea there also mention this PR:

FYI, again see more related info on “switch_type” development discussion for ZHA and zigpy here:

https://github.com/zigpy/zigpy/discussions/934

Summery is that ZHA developers are working on adding configuration to ZHA but you will probably still need a ZHA quirk in ZHA Device Handlers library/repository for the devices as well so submit request:

https://github.com/zigpy/zha-device-handlers/issues/1231

https://github.com/zigpy/zha-device-handlers/blob/b802c1fb2cf2682f9a4722bfb57a1958cad9dad7/README.md

https://www.home-assistant.io/integrations/zha#zha-exception-and-deviation-handling

This is also discussed here:

https://community.home-assistant.io/t/zha-aqara-switch-module-t1-mqtt-switch-type/379399/