[Deprecated] Xiaomi / Aqara / Opple Drivers with Presence!

Markus, great job on the drivers. I just notice my aqara dual relay is reporting temperature, don't think I've seen that capability exposed before. Can it be changed to degrees fahrenheit?

Thank You

Thank you, but this is not my driver... I haven't released one for that device yet. I can say something regarding the temperature though, that is the internal temperature of the device. It is available from all mains powered devices from Aqara, but is not something I have exposed in any of my drivers since it is really more a matter of an overheating indicator and is not a temperature you can use to tell you the temperature of the room. Maybe I should add it to my driver when I do release it? Not sure what it can be used for though. I think this is a driver from @guyeeba.

Yeah, that driver is mine, and the temperature is not more than an interesting data for chart addicts like me... my relay is mounted in a plastic box next to the pool where quite extreme temperatures can be measured, so it adds some excitement to my graphs:

See? The green line is the relay, the yellow one is the actual outdoor temperature. Room temperatures are soooo boring... :smiley:

Power and voltage readings are quite accurate, though.

@markus, do you plan to support this device anytime soon? Or should I add Fahrenheit support to my driver for @Rxich ?

3 Likes

:stuck_out_tongue:
I see, but that is a use, and it can be fun to see the correlation.

Not very soon, I have the device here on my desk, but have not had much time for drivers lately. I think he would get to wait quite a bit if waiting for me :stuck_out_tongue:

1 Like

Could you please test the latest version? There has to be a combo for the temperature unit in the preferences...

Oh sorry, my error, but thank you for responding

Great, I see it now, thank you. It may have already been there, but when you're trapped in the house for 3 months, weird things start to happen..

@markus I just added another Xiaomi button WXKG01LM. I have 3 of these now. The strange thing is this one does not have the option Millis to hold, the other 2 do? They all running the latest driver version v0.6.1.0602. Only difference I can think of is I updated to the latest HE firmware version before I added this last button?

Do you need any other info?

EDIT: Something does not look correct, the other buttons show "number of buttons 5" and they show the battery percentage this is what the new one shows

Current States

  • batteryLastReplaced : 2020-06-10 13:03:06
  • doubleTapped : 1
  • driver : v0.6.1.0602
  • held : 1
  • lastCheckin : 2020-06-10 13:03:53
  • lastHoldEpoch : 1591787555711
  • numberOfButtons : 0
  • presence : present
  • pushed : 1
  • released : 1

This is one of the existing buttons

Current States

  • battery : 100
  • batteryLastReplaced : Fri May 15 17:32:38 SAST 2020
  • doubleTapped : 0
  • driver : v0.6.1.0602
  • held : 0
  • lastCheckin : 2020-06-10 12:43:31
  • lastCheckinEpoch : 1590080960991
  • lastHoldEpoch : 0
  • numberOfButtons : 5
  • presence : present
  • pushed : 0
  • released : 1

In the data section, what is the model name? It should be "lumi.sensor_switch", if it is, just refresh the page and you should see the millis setting.

Hi, yes it does say lumi.sensor_switch but still nothing. I am going to remove the device and re-add it back again.

That might not make a difference due to timing issues in the platform. If you keep the device and re pair it, that would run the same code as Initialize. Easier to just press Initialize inside the device page.

Hi markus, so I removed it and a re-added it back and it is working it selected your driver and it shows the millis is back. Not sure what happened?

Current States

  • batteryLastReplaced : 2020-06-10 13:26:13
  • doubleTapped : 0
  • driver : v0.6.1.0602
  • held : 0
  • lastCheckin : 2020-06-10 13:26:14
  • lastHoldEpoch : 0
  • numberOfButtons : 5
  • presence : present
  • pushed : 1
  • released : 1

Strange thing in the events when you press it 5 times it shows this

pushed 5 Button was clicked 128 times DEVICE 2020-06-10 13:53:03.600

Due to timing issues when a device has the driver assigned, certain data might not be available (like model) at the time of runing the installation method of the driver. If you had clicked Initialize it would also have resolved itself. So would re pairing without first removing the device. Re pairing without removing the device is the method that would fix even an incorrect model name.

It is how it is reported by the device, the log message can look a bit strange, but it is best to keep it this way for debugging purposes.

2 Likes

Is there any chance your going to do drivers for the no neutral switches QBKG04LM & the QBKG03LM

Yes, in time, I haven't got a lot of time lately. It's on the list, I do intend to make all Xiaomi/Aqara Zigbee devices.

2 Likes

Has anyone tried the new D1 range

2020 Newest Original Aqara Mijia D1 Smart Wall Switch 1/2/3 Button Zigbee

Very similar to the no neutral and neutral switches but now go up-to 3 button

I have one of those, but have not tested it yet.

Im thinking about ordering the triple switch Especially if you’re going to be working on the driver :wink:

Do you know if these work like the previous ones where you can turn a single switch into a double or triple switch
First button is hardwired and the second button is a powered wireless switch

No clue yet, I have only opened the box and looked at it. Not even paired it yet.

I was on the verge of changing most of my light switches and you’ve given me hope so I’m going to patiently wait for the drivers for the no neutral switches and I might take the plunge and order that new D1 triple switch in case you do get around to writing drivers for it

its people like you Who give me the ability and hope to have the type of home I long for so I thank you

1 Like

General update to all Xiaomi/Aqara Drivers. There is a new device recovery mode, it will be made available next time you either reboot the hub or press Initialize on the device page.

This mode has been able to get devices that have fallen off to reconnect. There is a warning in the log when it activates for a device. When the device is back another warning message will show that it is disabled again.
This doesn't always work, it depends on how the device fell off. It at least helps partially. If the device doesn't come back on its own when in Recovery Mode, try quick-pressing the reset button (do not fully reset and re pair the device). This might nudge the device back, if pressing the reset button works, it works within 30 seconds. On button devices it can be enough to just press any button.
If none of the above works, re pairing without deleting the device is your last option.

Please report your progress in using this, good or bad results are all needed to know how to improve.

Good luck and lets hope you never need to see the log messages about this mode activating :wink:

7 Likes