Open jffjck opened 2 years ago
Sounds odd. Are you able to provider your accessory configuration and an example MQTT message which triggers this error?
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
Thanks! Silly error: default airPressure value (0) was invalid, and so caused that warning. Should be fixed in 1.1.38.
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.
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