SmartThings Community

[RELEASE] Xiaomi Sensors and Button (beta)

dth_motionsensor
dth_remotes
dth_sensors

(Carlos Lebreiro) #513

Hi,
is it possible to control the Xiaomi Universal IR Remote Controller with ST?

This seems an excelent product to have in my living room to control the AC, TV, TV Box, HiFi, …

Thanks in advance


(Tolik) #514

Stuck a temp/humiddity sensor in the fridge. Wired results. It reads normal cold temp then jumps to hot. Is this a sensor issue or DH?


(Wayne) #515

Could very well be my code. I don’t use fahrenheit so need people to feedback any issues. The device only reports in C natively.


(Wayne) #516

Sorry this thread is only for my handlers covering the sensors and button.


(Tolik) #517

What info would be helpful?
Thank you for your time with this.


(Tolik) #518

Check this out:


(Wayne) #519

Could you take off a copy of the live logs for the device when it happens?


(Tolik) #520

fa150396-da31-4ada-98dd-b7665117668b 3:33:45 PM: debug Parse returned T. - Fridge humidity is 50%
fa150396-da31-4ada-98dd-b7665117668b 3:33:45 PM: debug Evencreated: humidity, 50, %
fa150396-da31-4ada-98dd-b7665117668b 3:33:45 PM: debug Parsevalue: 50
fa150396-da31-4ada-98dd-b7665117668b 3:33:45 PM: debug Parsename: humidity
fa150396-da31-4ada-98dd-b7665117668b 3:33:45 PM: debug RAW: humidity: 49.57%
fa150396-da31-4ada-98dd-b7665117668b 3:33:45 PM: debug Parse returned T. - Fridge temperature is 33.5°F
fa150396-da31-4ada-98dd-b7665117668b 3:33:45 PM: debug Evencreated: temperature, 33.5, F
fa150396-da31-4ada-98dd-b7665117668b 3:33:45 PM: debug Parsevalue: 33.5
fa150396-da31-4ada-98dd-b7665117668b 3:33:45 PM: debug Parsename: temperature
fa150396-da31-4ada-98dd-b7665117668b 3:33:45 PM: debug RAW: temperature: 0.82
fa150396-da31-4ada-98dd-b7665117668b 3:29:38 PM: debug Parse returned T. - Fridge humidity is 47%
fa150396-da31-4ada-98dd-b7665117668b 3:29:38 PM: debug Evencreated: humidity, 47, %
fa150396-da31-4ada-98dd-b7665117668b 3:29:38 PM: debug Parsevalue: 47
fa150396-da31-4ada-98dd-b7665117668b 3:29:38 PM: debug Parsename: humidity
fa150396-da31-4ada-98dd-b7665117668b 3:29:38 PM: debug RAW: humidity: 46.95%
fa150396-da31-4ada-98dd-b7665117668b 3:29:38 PM: debug Parse returned T. - Fridge temperature is 32.5°F
fa150396-da31-4ada-98dd-b7665117668b 3:29:38 PM: debug Evencreated: temperature, 32.5, F
fa150396-da31-4ada-98dd-b7665117668b 3:29:38 PM: debug Parsevalue: 32.5
fa150396-da31-4ada-98dd-b7665117668b 3:29:38 PM: debug Parsename: temperature
fa150396-da31-4ada-98dd-b7665117668b 3:29:38 PM: debug RAW: temperature: 0.30
fa150396-da31-4ada-98dd-b7665117668b 3:25:57 PM: debug Parse returned T. - Fridge humidity is 44%
fa150396-da31-4ada-98dd-b7665117668b 3:25:57 PM: debug Evencreated: humidity, 44, %
fa150396-da31-4ada-98dd-b7665117668b 3:25:57 PM: debug Parsevalue: 44
fa150396-da31-4ada-98dd-b7665117668b 3:25:57 PM: debug Parsename: humidity
fa150396-da31-4ada-98dd-b7665117668b 3:25:57 PM: debug RAW: humidity: 44.24%
fa150396-da31-4ada-98dd-b7665117668b 3:25:57 PM: debug Parse returned T. - Fridge temperature is 212.4°F
fa150396-da31-4ada-98dd-b7665117668b 3:25:57 PM: debug Evencreated: temperature, 212.4, F
fa150396-da31-4ada-98dd-b7665117668b 3:25:57 PM: debug Parsevalue: 212.4
fa150396-da31-4ada-98dd-b7665117668b 3:25:57 PM: debug Parsename: temperature
fa150396-da31-4ada-98dd-b7665117668b 3:25:57 PM: debug RAW: temperature: 100.23
fa150396-da31-4ada-98dd-b7665117668b 3:23:31 PM: debug Sending enroll response
fa150396-da31-4ada-98dd-b7665117668b 3:23:31 PM: debug refresh called
fa150396-da31-4ada-98dd-b7665117668b 3:22:43 PM: debug Sending enroll response
fa150396-da31-4ada-98dd-b7665117668b 3:22:43 PM: debug refresh called
fa150396-da31-4ada-98dd-b7665117668b 3:22:35 PM: debug Parse returned T. - Fridge humidity is 39%
fa150396-da31-4ada-98dd-b7665117668b 3:22:35 PM: debug Evencreated: humidity, 39, %
fa150396-da31-4ada-98dd-b7665117668b 3:22:35 PM: debug Parsevalue: 39
fa150396-da31-4ada-98dd-b7665117668b 3:22:35 PM: debug Parsename: humidity
fa150396-da31-4ada-98dd-b7665117668b 3:22:35 PM: debug RAW: humidity: 39.21%
fa150396-da31-4ada-98dd-b7665117668b 3:22:35 PM: debug Parse returned T. - Fridge temperature is 213.3°F
fa150396-da31-4ada-98dd-b7665117668b 3:22:35 PM: debug Evencreated: temperature, 213.3, F
fa150396-da31-4ada-98dd-b7665117668b 3:22:35 PM: debug Parsevalue: 213.3
fa150396-da31-4ada-98dd-b7665117668b 3:22:35 PM: debug Parsename: temperature
fa150396-da31-4ada-98dd-b7665117668b 3:22:35 PM: debug RAW: temperature: 100.74


(Wayne) #521

Indeed it does look like the device doesn’t like freezing temperatures. The raw value coming from the device is over a hundred Celsius which is converting correctly to the Fahrenheit value.


#522

I have tried pairing my Xiaomi motion sensors dozens of times now. I will get a catchall code each time, add device manually with that code, it will work fine for a few hours then stop communicating with ST completely. It never gets to the point that it reports battery %. I have tried all 5 of the motion sensors that I ordered and they all work then fail similarly. Very frustrating! I have tried removing the battery, inserting it while holding down the pairing button, removing the battery for a day then reinserting and pairing again, all with similar results. Maybe I got a bad batch? I’ll try anything at this point.
I have tried most of this pairing process very close to the hub and leaving the sensors there, but have also tried 20-30 feet away.


(Bernie H) #523

V1 hub by chance, if so they will not work. I posted about it 2 days ago in post 507 and the first post has been updated with the info.


(Tolik) #524

Got it thank you.

It’s official my fridge is now boiling.


#525

I have V2 hub with no luck getting these things to stay connected longer than an hour or so.


(Simon) #526

After pairing with the catchall method do back to the “add a thing” menu and search again. You should see the sensor pop up there. Rename and save.

FWIW I have had good success pairing motion sensors and door sensors without needing to use the catchall method. Just a 5 second reset press followed by a single press every 3 seconds. They always appear in “find a thing” within a minute.


(Steve ) #527

I had similar problem with the contact sensors .
2 out of the 3 worked fine but the last one just kept dropping off never reporting battery I thought it must be broke I’d re added it about 10 times so left it.
But I read on here the other day some guy had similar and all of a sudden it worked so I thought I’d try mine again yesterday and it paired and reported battery first time.
It really does seem pot luck for it to fully pair


#528

If you had some time and tested a range of negative (<0C) temperatures and compared the readouts to some different termometr it could be possible to create a mapping for higher temps to negative ones. It looks to me like classic underflow of misinterpretation of signed variable to unsigned but it’s hard to tell if we don’t see binary data sent from the device.


#529

It maybe more expensive, but harmony has official integration.


(No Name No Name) #530

You can not compare USD7 for Xiaomi IR Blaster and USD100 for Harmony Hub. I have 5 room.


#531

Now if someone could get a DH for this device, Hint Hint @RBoy. Would be great. :wink:


(www.rboyapps.com - Make your home your butler!) #532

Any specs for it?