I have sensor labeled as BMP/BME280 which is in fact BMP280.
There is a strange problem with the EVENT's rules generated by this sensor.
2 devices are defined to support this sensor. Of course, only one of them is enabled at a time.
Also, I only need a pressure reading.
Due to the fact that some sensors can give an abstract result once every few hundred readings (e.g. pressure 3500 hPa), before sending it to Domoticz I check whether the reading is "reasonable". This is done using rules:
Code: Select all
On Temp+Baro#Pressure do
If [Temp+Baro#Pressure] < 1100 and [Temp+Baro#Pressure] > 910
SendToHTTP,192.168.0.25,8080,/json.htm?type=command¶m=udevice&idx=133&nvalue=0&svalue=[Temp+Baro#Pressure]
endif
endon
Code: Select all
3209648: BMP280 : Address: 0x76
3209650: BMP280 : Temperature: 23.78
3209652: BMP280 : Barometric Pressure: 1005
3209673: EVENT: Temp+Baro#Temperature=24.28
3209693: EVENT: Temp+Baro#Humidity=0.00
3209715: EVENT: Temp+Baro#Pressure=1007
3209744: ACT : SendToHTTP,192.168.0.25,8080,/json.htm?type=command¶m=udevice&idx=133&nvalue=0&svalue=1007
3209787: HTTP : SendToHTTP 192.168.0.25 GET... HTTP code: 200
Code: Select all
747425: BMP280 : Address: 0x76
3747428: BMP280 : Temperature: 23.74
3747430: BMP280 : Barometric Pressure: 1005
3747448: EVENT: Temp+Baro#Temperature=24.24
3747468: EVENT: Temp+Baro#Pressure=1007
3747484: Calculate: Unknown token input: < 1100 and = 0