zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[New device support]: Aqara Display Switch V1 EU

Open mike-nott opened this issue 1 year ago • 84 comments

Link

https://eu.aqara.com/products/aqara-display-switch-v1

Database entry

{"id":3,"type":"Router","ieeeAddr":"0x54ef44100118eacc","nwkAddr":3840,"manufId":4447,"manufName":"Aqara","powerSource":"DC Source","modelId":"lumi.switch.aeu001","epList":[1,2,3,4,21],"endpoints":{"1":{"profId":260,"epId":1,"devId":258,"inClusterList":[2820,1794,18,5,4,3,0,6,64704],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"lumi.switch.aeu001","manufacturerName":"Aqara","powerSource":4,"zclVersion":3,"appVersion":37,"stackVersion":27,"hwVersion":1,"dateCode":"20241106"}},"manuSpecificLumi":{"attributes":{"223":{"type":"Buffer","data":[22,33,2,0,23,33,0,0,12,33,0,0,24,33,0,0]},"229":{"type":"Buffer","data":[2,0,2,0,0,36,119,147,93,5,182]},"238":3365,"247":{"type":"Buffer","data":[162,32,0,163,32,0,170,35,1,0,0,0,171,35,2,0,0,0,180,32,0]},"308":{"type":"Buffer","data":[112,197,156,230,83,140]},"322":1,"533":0,"554":2,"614":{"type":"Buffer","data":[255,255,255,255]},"770":{"type":"Buffer","data":[0,1,0,0,0,1,2,0,0,0]},"772":0,"773":{"type":"Buffer","data":[0,0,0,0,1,1,0,0,0,2]},"775":{"type":"Buffer","data":[0,0,0,0,1]},"776":33486596,"777":33486606}},"haElectricalMeasurement":{"attributes":{"acPowerDivisor":10,"acPowerMultiplier":1}},"genOnOff":{"attributes":{"245":34537472,"onOff":0}}},"binds":[],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":258,"inClusterList":[18,5,4,3,6,64704],"outClusterList":[],"clusters":{"genOnOff":{"attributes":{"245":34537472,"onOff":0}}},"binds":[],"configuredReportings":[],"meta":{}},"3":{"profId":260,"epId":3,"devId":258,"inClusterList":[18,5,4,3,64704],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"4":{"profId":260,"epId":4,"devId":258,"inClusterList":[18,5,4,3,64704],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"21":{"profId":260,"epId":21,"devId":0,"inClusterList":[12],"outClusterList":[],"clusters":{"genAnalogInput":{"attributes":{"presentValue":0}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":37,"stackVersion":27,"hwVersion":1,"dateCode":"20241106","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1739808813679}

Zigbee2MQTT version

2.1.1

Comments

Please can you add support for the Aqara Display V1 switch.

Currently only the 2 relays come through as switches, none of the wireless buttons or display options.

External definition

const m = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
    zigbeeModel: ['lumi.switch.aeu001'],
    model: 'lumi.switch.aeu001',
    vendor: 'Aqara',
    description: 'Automatically generated definition',
    extend: [m.deviceEndpoints({"endpoints":{"1":1,"2":2,"3":3,"4":4,"21":21}}), m.electricityMeter(), m.onOff({"powerOnBehavior":false,"endpointNames":["1","2"]})],
    meta: {"multiEndpoint":true},
};

module.exports = definition;

What does/doesn't work with the external definition?

Missing wireless switches and display options

mike-nott avatar Feb 17 '25 16:02 mike-nott

Hello @mike-nott, I was wondering if there have been any updates on this issue. I am interested in working on it. Have you attempted to extend the generated external definition?

PayneRae avatar Apr 19 '25 17:04 PayneRae

Hi Payne, unfortunately no updates. I'm very keen to help, so please message me exactly what you need.

mike-nott avatar Apr 19 '25 19:04 mike-nott

Good afternoon Mike-nott. I wanted to inform you that I am no longer able to work on this issue in the near future. If I had to recommend something for you or another contributor to try, it would be to extend the external definition as described here: https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html#_2-creating-the-external-definition Thank you for the opportunity to contribute.

PayneRae avatar Apr 25 '25 18:04 PayneRae

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jun 25 '25 00:06 github-actions[bot]

I'm still hoping that this device will be added to Z2M at some point ??

mike-nott avatar Jun 25 '25 04:06 mike-nott

I have tried to get this working in Zigbee2MQTT but have been unsuccessful so far. I attempted to extend the Aqara Panel which is supported but it seems this works in an entirely different way. In the Aqara app you can assign switches to each button and the name and state of those switches is displayed on the screen. Obviously this wouldn't be possible in Home Assistant, so I think the solution must be receiving an "action" for which button is pressed (and maybe even if it is long pressed/double pressed) and then a separate binding to set: Icon, Text, State (which would be whether the text is highlighted or not). I haven't got any experience with finding Zigbee mappings that would be able to achieve this, and I don't really know where to start - but I'm hoping that someone can point me in the direction to get this up and working as I have a Display Switch V1 EU and would be happy to experiment.

Xerig avatar Jul 18 '25 06:07 Xerig

Aqara have just released their first OTA firmware update for this switch now (v.0.0.0_1340). Does this make it easier to get a Z2M version working?

mike-nott avatar Jul 25 '25 09:07 mike-nott

Adding this to ZHA also doesn't set the time zone properly. The time is synced but displayed in UTC

MindFreeze avatar Aug 19 '25 12:08 MindFreeze

will this be added soon?

sven-reichert avatar Oct 13 '25 18:10 sven-reichert

also interested in solution

akrasnov237 avatar Oct 15 '25 14:10 akrasnov237

I am so desperate for this, would happily pay someone to code it!

mike-nott avatar Oct 15 '25 14:10 mike-nott

Same problem here , by the way this is related to issue 29073 : https://github.com/koenkk/zigbee2mqtt/issues/29073

gonzague avatar Nov 14 '25 10:11 gonzague

also interested in solution

Tlobo78 avatar Dec 14 '25 21:12 Tlobo78

I just want to chime in and say I’d pay someone as well to get this coded.

I have a few of these and I need the wireless buttons to work for scenes in Home Assistant. I also want to replace the switch 2 with another scene instead!

But this switch seems dead to Zigbee devs or Aqara.

N0Klu3 avatar Jan 03 '26 23:01 N0Klu3

I managed to extract the majority attributes by sniffing Zigbee packages. Attributes like screensaver text are missing, but the rest are found.

Take a look at: https://docs.google.com/spreadsheets/d/1Wldn6TIxboQW4QM7O7ZIFNwL6Ss3EopLOziPMPuU0g8/edit?gid=0#gid=0

Now.. Does anyone know how to convert that list of attributes to an external definition file? I have been reading a lot, but no success so far.

mojiro avatar Jan 18 '26 01:01 mojiro

I managed to extract the majority attributes by sniffing Zigbee packages. Attributes like screensaver text are missing, but the rest are found.

Take a look at: https://docs.google.com/spreadsheets/d/1Wldn6TIxboQW4QM7O7ZIFNwL6Ss3EopLOziPMPuU0g8/edit?gid=0#gid=0

Now.. Does anyone know how to convert that list of attributes to an external definition file? I have been reading a lot, but no success so far.

Firstly thank you for your efforts! Secondly I’ve only just started using Zigbee.

Is there any chance you can give me a dumb down idea of how I use it or set it up correctly?

N0Klu3 avatar Jan 18 '26 08:01 N0Klu3

Hello @N0Klu3 , There many steps before this list of attributes becomes useful in zigbee2mqtt.

To make them usable, we need to convert them to an external definition file that zigbee2mqtt understands. That will take some time.

mojiro avatar Jan 18 '26 09:01 mojiro

Image

We 'got a demo :) It will take time to compile and debug all attributes, but it is coming :)

mojiro avatar Jan 18 '26 12:01 mojiro

@mojiro - thank you so much for this, you are a hero. Achieving what I thought after waiting nearly a year now would be impossible!

And feel free to keep posting screenshots/demos/teases 🍿

mike-nott avatar Jan 18 '26 12:01 mike-nott

(read the updated comment https://github.com/Koenkk/zigbee2mqtt/issues/26407#issuecomment-3770608200)

mojiro avatar Jan 18 '26 23:01 mojiro