Xiaomi TH sensors

#1

Hi,

I have quite a few temperature sensors in node and they all show different temperature to the native Xiaomi app.
Humidity is spot on.

TIA

0 Likes

#2

Is this a statement or is there a question?

If it is a question, how are you getting the data into Node-RED?
If you are using a node, what is it's full name?
What does the debug show?
What does it show in the Xiaomi app?

0 Likes

#3

It meant to be a question.
I am using node-red-contrib-xiaomi-miio and temperature is showing via node 2-4 degrees lower than app.

that's debug:
{"voltage":2995,"temperature":19.48,"humidity":41.47,"atmosphericPressure":"98280"}

no errors being reported.

0 Likes

#4

Ok, the issue has been found.
I have installed different Xiaomi node and all the values are good.

Do not use the miiO node!

0 Likes

#5

you can rate the node on flows.nodered.org if you sign in with your github ID.
But you should also open an issue on the nodes github page to notify the author so the issue can be fixed.
https://github.com/aformusatii/node-red-contrib-xiaomi-miio

0 Likes

#6

Which contrib node?

As an alternative see also xiaomi-mqtt

0 Likes

#7

node-red-contrib-mi-devices, but again it is not working correctly.
I've added few th sensors and the whole thing flipped out...

TypeError: Cannot read property 'status' of null
at RED.nodes.eachNode (/home/pi/.node-red/node_modules/node-red-contrib-mi-devices/node-red-contrib-xiaomi-gateway/xiaomi-gateway.js:103:41)
at Object.eachNode (/usr/lib/node_modules/node-red/red/runtime/nodes/flows/index.js:196:13)

I will try Xiaomi-mqtt

Thanks

0 Likes

#8

But again, it’s worth opening an issue against the node so that the author is aware of the problems you experienced and can hopefully improve the node

0 Likes

#9

@cismarine

I've tested several xiaomi contrib-nodes without success and I also asked the authors for help.
The problem is that using dgram (in and out) isn't easy to do in node-red.
In my opinion the best is to use an external app/package.

0 Likes

#10

I did post ongithub

1 Like

#11

what have you settled on?

0 Likes

#12

I did build xiaomi-mqtt :wink:

0 Likes

#13

ahhh ok. I will try it.

0 Likes