homebridge-mqttthing icon indicating copy to clipboard operation
homebridge-mqttthing copied to clipboard

characteristic 'Air Pressure' error

Open jffjck opened this issue 3 years ago • 4 comments

I am receiving the following the error in the log file: [31/12/2021, 07:13:55] [homebridge-mqttthing] This plugin generated a warning from the characteristic 'Air Pressure': characteristic was supplied illegal value: number 0 exceeded minimum of 700. See https://git.io/JtMGR for more info.

I have confirmed the value is between 700 and 1100 as per the documentation, which I have done using MQTT Explorer. The value being passed is within limits and is non-zero - value for topic getAirPressure = 1019

jffjck avatar Dec 31 '21 05:12 jffjck

Sounds odd. Are you able to provider your accessory configuration and an example MQTT message which triggers this error?

arachnetech avatar Dec 31 '21 10:12 arachnetech

Herewith the snippet of the config

"type": "weatherStation", "name": "WeatherPI", "topics": { "getAirPressure": "weatherstation/getAirPressure", "getRain1h": "weatherstation/getRain1h", "getRain24h": "weatherstation/getRain24h", "getWindDirection": "weatherstation/getWindDirection", "getWindSpeed": "weatherstation/getWindSpeed", "getCurrentRelativeHumidity": "weatherstation/getCurrentRelativeHumidity", "getCurrentTemperature": "weatherstation/getCurrentTemperature" }, "history": true, "accessory": "mqttthing"

Watching the values in MQTT Explorer:

weatherstation getCurrentTemperature = 34.2 getCurrentRelativeHumidity = 36 getAirPressure = 1016 getRain1h = 0.0 getRain24h = 0.0 getWindDirection = W getWindSpeed = 22.8

I am getting no issues with Temperature or humidity, only AirPressure

jffjck avatar Dec 31 '21 12:12 jffjck

Thanks! Silly error: default airPressure value (0) was invalid, and so caused that warning. Should be fixed in 1.1.38.

arachnetech avatar Dec 31 '21 22:12 arachnetech

Many thanks for the very quick response and fix - I have upgraded and the error has been resolved.

The next issue I am facing is that Temperature and Humidity reflect as tiles in Accessories in Homebridge, but AirPressure, Rain, Wind 1h/24h Speed and Wind Direction do not appear as sensors.

I have provided a screenshot - you can see the last two tiles named WeatherPi showing the aformentioned.

Screenshot 2022-01-01 at 11 27 28

jffjck avatar Jan 01 '22 09:01 jffjck