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 ?
BME280 + MQTT + Virtual sensor Temp/Huma/Baro
Moderator: leecollings
-
- Posts: 2
- Joined: Monday 14 February 2022 15:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
- jvdz
- Posts: 2335
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: BME280 + MQTT + Virtual sensor Temp/Huma/Baro
Did you check the API/JSON Wiki?
The format should be:

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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 2
- Joined: Monday 14 February 2022 15:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: BME280 + MQTT + Virtual sensor Temp/Huma/Baro
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.
- FireWizard
- Posts: 1905
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: BME280 + MQTT + Virtual sensor Temp/Huma/Baro
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
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
-
- Posts: 1
- Joined: Monday 14 February 2022 6:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: BME280 + MQTT + Virtual sensor Temp/Huma/Baro
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.
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.
Who is online
Users browsing this forum: jvdz and 1 guest