Page 1 of 1

BME280 + MQTT + Virtual sensor Temp/Huma/Baro

Posted: Monday 14 February 2022 15:38
by Przemo2014
Hello,
I send via MQTT to Domoticz commend:
{"command": "udevice", "idx": 321, "nvalue": 0, "svalue": "22.77; 41.19; 1007.90", "parse": true}
but virtual sensor Temp/Huma/Baro in Domoticz doesn't display the values. For virtual sensor Temp/Huma the values are display correctly.
Are you able to let me know the prompt how correct should be sent commend for Virtual sensor Temp/Huma/Baro by MQTT ?

Re: BME280 + MQTT + Virtual sensor Temp/Huma/Baro

Posted: Monday 14 February 2022 16:49
by jvdz
Did you check the API/JSON Wiki? ;)
The format should be:

Code: Select all

84 TEMP_HUM_BARO 0.0;50;1;1010;1    svalue=TEMP;HUM;HUM_STATUS;BARO;BARO_FCST

Re: BME280 + MQTT + Virtual sensor Temp/Huma/Baro

Posted: Monday 14 February 2022 18:10
by Przemo2014
Thank you for suggestion. It resolved the issue. Now I need to only find out how to calculate HUM_STATUS and BARO_FCST. Thank you for Your support.

Re: BME280 + MQTT + Virtual sensor Temp/Huma/Baro

Posted: Monday 14 February 2022 18:24
by FireWizard
Hello @Przemo2014,

For the calculations, you might want to take a look at: viewtopic.php?f=28&t=34300&p=263147&hil ... re#p263147 and then my post dated 09 Dec 2020, 16:57.

This includes all types of weather sensors, including the calculations.

Regards

Re: BME280 + MQTT + Virtual sensor Temp/Huma/Baro

Posted: Monday 14 February 2022 19:16
by ravik
Since getting into home automation with HomeKit and Homebridge, I've started thinking about making my own IoT devices and manage the data myself.

With the ESP8266 being a cheap and easy way to get into this, I bought a few Wemo D1 Mini clones and some NodeMCU's and started messing around with a variety of sensors that I had at home from other ESP8266 / Raspberry Pi projects.

Using MQTT, I started to put together some simple programs that would take a sensor reading then send the data to a MQTT broker, which in turn would then be represented visually using Grafana.

I have since created a GitHub repository where you can take a look at the range of options and get started monitoring your own home - https://github.com/raspberrycoulis/mqtt-home-data

FWIW, my home currently has a BME280 sensor (for temperature, humidity and pressure) in a number of rooms, connected to a ESP8266 which then transmits data every minute to my MQTT broker (located on my Synology NAS and run via Docker) and it's interesting to see the variations between rooms and zones (floors), especially so when we had our central heating system serviced recently.

Some sensors that my code examples (currently) covers:

BME280 (temperature, humidity, pressure and altitude)

MCP980 (high accuracy temperature)

TSL2561 (luminosity - i.e. light levels)

Si7021 (temperature and humidity)

Pimoroni's Enviro pHAT (temperature, pressure and luminosity but can do more)

Metriful's MS430 (successful Kickstarter) that measures tonnes of stuff

Hopefully this will be helpful to anybody else considering doing something similar.