cflurin / xiaomi-mqtt

A Bridge between the Xiaomi Mi Smart Home Gateway and the Mqtt broker.
Apache License 2.0
50 stars 14 forks source link

Data in raw format #9

Closed mikeS7 closed 5 years ago

mikeS7 commented 5 years ago

Allow to get data in raw format without preprocessing.

cflurin commented 5 years ago

Hi, Thanks for your PR, I'll merge it soon.

What is the reason for using the raw data? The sensor_ht data format is a string, so e.g. in node-red you have to convert it to an object first.

mikeS7 commented 5 years ago

There are 2 reasons, only data for sensor_ht is parsed, I prefer the same way for all devices, the second is precision.