Hi,
first of all sorry if I overlooked and someone already had this problem but I`m trying to figure out this for days, and did not find similar surroundings.
So I have ESP8266 with BME280 and I added it to Domoticz as temp+hym+baro device.
Everything works like a charm except, I have a temperature, pressure, and humidity readings. There is even a dew point prediction displayed, but weather prediction is Unknown all the time.
My Domoticz in the last windows version and tasmota is also the last version (7.1.2) if it means anything.
I'm a quite new to Domoticz so sorry if a question is repeated, or dumb but as I said I`m googling for days with no luck, still dont know what to look for.
Only thing that might have anything to do with this that I found is in folder C:\Program Files (x86)\Domoticz\dzVents\runtime\device-adapters\
a file named temperature_humidity_barometer_device.lua
and it has:
local constMapping = {
['noinfo'] = 0,
['sunny'] = 1,
['partlycloudy'] = 2,
['cloudy'] = 3,
['rain'] = 4
}
What I cant find out is from where should this values come ....
Can anyone help with shedding some light on this subject, please?
With Kindest regards,
Sasa
Tasmota + bme280 + Domoticz on windows weather prediction problem.
Moderator: leecollings
- erem
- Posts: 230
- Joined: Tuesday 27 March 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Amsterdam/netherlands
- Contact:
Re: Tasmota + bme280 + Domoticz on windows weather prediction problem.
Hi,
i have the same issue with a BME280 and ESPEasy.
The previous sensor in that spot was a BMP280, and the prediction would populate
When i changed the sensor to a BME280, the prediction was always Unknown.
I traced this back to the device in database table DeviceStatus, wherethe field svalue hold the latest incoming values from ESPEasy.
i see the incoming svalue as 20.18;51.14;1;1021.72;0, temp; hum; press; unknown value, i suspect this is the prediction.
thus i concluded the issue was the BME280 or the BME280 handler code in ESPEasy, outside my control.
and i gave up.....
i have the same issue with a BME280 and ESPEasy.
The previous sensor in that spot was a BMP280, and the prediction would populate
When i changed the sensor to a BME280, the prediction was always Unknown.
I traced this back to the device in database table DeviceStatus, wherethe field svalue hold the latest incoming values from ESPEasy.
i see the incoming svalue as 20.18;51.14;1;1021.72;0, temp; hum; press; unknown value, i suspect this is the prediction.
thus i concluded the issue was the BME280 or the BME280 handler code in ESPEasy, outside my control.
and i gave up.....

Regards,
Rob
Rob
-
- Posts: 10
- Joined: Friday 08 November 2019 11:33
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Tasmota + bme280 + Domoticz on windows weather prediction problem.
Hi Erem,
you sure did some research.
I just checked the same thing and in my case, svalue in DeviceStatus table for this particular sensor looks like this: 1.70;74.4;3;1030;5, so if I get this right I should at least have a different result than you since I have 5 at the end but what I`m missing is why 5 values when sensor read only 3 and one is for weather prediction... where is the catch? So what is the third value if the fifth is for weather prediction? ....
And do not give up, we will figure this out
you sure did some research.
I just checked the same thing and in my case, svalue in DeviceStatus table for this particular sensor looks like this: 1.70;74.4;3;1030;5, so if I get this right I should at least have a different result than you since I have 5 at the end but what I`m missing is why 5 values when sensor read only 3 and one is for weather prediction... where is the catch? So what is the third value if the fifth is for weather prediction? ....
And do not give up, we will figure this out

-
- Posts: 10
- Joined: Friday 08 November 2019 11:33
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Tasmota + bme280 + Domoticz on windows weather prediction problem.
I just figure out that this third value could be "dry" or wet or something like that, numbers based on humidity ... but why the hell is weather prediction than not working that is a million $ question.....
-
- Posts: 10
- Joined: Friday 08 November 2019 11:33
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Tasmota + bme280 + Domoticz on windows weather prediction problem.
Another update,
it seams that the problem is not with Domoticz but with Tasmota in my case.
Here is how mqtt message from Tasmota looks like:
2020-01-23 13:25:29.212 MQTT: Topic: domoticz/in, Message: {"idx":148,"nvalue":0,"svalue":"3.2;66.3;1;1019.5;5","Battery":100,"RSSI":5}
Se the last data piece in svalue is 5, and here is mapping from Domoticz documentation:
nValue: 0, sValue: "pressure;forecast"
Forecast:
0 - Stable
1 - Clear/Sunny
2 - Cloudy/Rain
3 - Not stable
4 - Thunderstorm
5 - Unknown
So Domoticz is doing exactly what it should, he gets 5 and he displays Unknown. So what I have learned from this is that algorithm for calculation weather prediction must be on Tasmota or any other device sending data to Domoticz. So now I will try to figure this out with Tasmota.
it seams that the problem is not with Domoticz but with Tasmota in my case.
Here is how mqtt message from Tasmota looks like:
2020-01-23 13:25:29.212 MQTT: Topic: domoticz/in, Message: {"idx":148,"nvalue":0,"svalue":"3.2;66.3;1;1019.5;5","Battery":100,"RSSI":5}
Se the last data piece in svalue is 5, and here is mapping from Domoticz documentation:
nValue: 0, sValue: "pressure;forecast"
Forecast:
0 - Stable
1 - Clear/Sunny
2 - Cloudy/Rain
3 - Not stable
4 - Thunderstorm
5 - Unknown
So Domoticz is doing exactly what it should, he gets 5 and he displays Unknown. So what I have learned from this is that algorithm for calculation weather prediction must be on Tasmota or any other device sending data to Domoticz. So now I will try to figure this out with Tasmota.
-
- Posts: 10
- Joined: Friday 08 November 2019 11:33
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Tasmota + bme280 + Domoticz on windows weather prediction problem.
Thinking more about my last conclusion that Tasmota is making calculations for weather prediction is a little unlikely, it has no db or something to put data in, so how it would store barometric data for some time and from that data calculate weather prediction.... I mean it is possible but not so logical. On the other hand, all other data that we gathered suggest that Domoticz just displays data that is served from a device like Tasmota ....
Now I have no idea .............
Now I have no idea .............
-
- Posts: 10
- Joined: Friday 08 November 2019 11:33
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Tasmota + bme280 + Domoticz on windows weather prediction problem.
OK, I found a solution, it`s done with lua script.
Here is it explained in details.
https://techestigate.com/domoticz-weath ... n-unknown/
Cheers
Here is it explained in details.
https://techestigate.com/domoticz-weath ... n-unknown/
Cheers
Who is online
Users browsing this forum: No registered users and 1 guest