letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.22k stars 2.2k forks source link

CO2 MH-Z19 sensor sends U = 0 via mqtt #1126

Closed micropet closed 6 years ago

micropet commented 6 years ago

The MH-Z19 sensor transmits over mqtt always "U = 0.00". The line with the "U" can not be removed either.

14:26:35 ESP-206/PPM 594.00 14:26:35 ESP-206/MHZ19Temp 22.20 14:26:35 ESP-206/U 0.00

TD-er commented 6 years ago

This "U" value used to be of some meaning for the A-version of the sensor. It used to be some indication for the lowest raw internal measured value which would be used in the ABC of the sensor. Is it a problem to leave it?

micropet commented 6 years ago

No, no problem. I just thought useless.

0.00 is always displayed on all my devices. Would be fine if I can suppress the sending of this value. With 20 devices sending U = 0.00 every 30 seconds, there is unnecessary traffic.

Grovkillen commented 6 years ago

Well, subscribe to "$SYS/#" and you'll see that those 20 devices sending U is really a prutt in space. Nothing to worry about.

micropet commented 6 years ago

My whole home automation runs on mqtt. There is already a lot of traffic. I still tried to suppress messages that are not necessary on my own devices.

But well, if that's not so easy, then it has to stay that way.

Grovkillen commented 6 years ago

I understand your concern but really, it's not an issue.. you shouldn't worry about MQTT being overcrowded. Your server must be really low-tech for you to bring it down with messages... :)

micropet commented 6 years ago

esp-206

I also like to look at the readings of individual devices. This looks like the screenshot. Since I really only want to see relevant values. It's also a limitation. :)

Anyway, let's forget that.

Grovkillen commented 6 years ago

I suggest you download a real viewer instead of that. :)

micropet commented 6 years ago

Which one?

But can it be better - without Schnick-Schnack?

Grovkillen commented 6 years ago

For Android I use "MQTT Snooper", for Windows I use a software a friend made; "MQTT Viewer".

micropet commented 6 years ago

Thank you.

micropet commented 6 years ago

Wau, MQTT Viewer is great!!

micropet commented 6 years ago

esp-206 all

That's how I imagined it. Did not know that there is such a clear program.