peledies / homebridge-ambient-weather-sensors

Apache License 2.0
2 stars 2 forks source link

Error on plugin startup when solar radiation is enabled #8

Closed WotAGitUR closed 7 months ago

WotAGitUR commented 8 months ago

Describe The Bug:

During Homebridge and plugin startup this appears in the logs This plugin generated a warning from the characteristic 'Current Ambient Light Level': characteristic was supplied illegal value: number 0 exceeded minimum of 0.0001. See https://homebridge.io/w/JtMGR for more info.

To Reproduce:

This only appears when solar radiation is enabled

Expected behavior:

Expect not to see error message about zero values, solar radiation is usually zero at night :)

Logs:

[22/01/2024, 21:10:02] [homebridge-ambient-weather-sensors] This plugin generated a warning from the characteristic 'Current Ambient Light Level': characteristic was supplied illegal value: number 0 exceeded minimum of 0.0001. See https://homebridge.io/w/JtMGR for more info.
[22/01/2024, 21:12:00] [homebridge-ambient-weather-sensors] This plugin generated a warning from the characteristic 'Current Ambient Light Level': characteristic was supplied illegal value: number 0 exceeded minimum of 0.0001. See https://homebridge.io/w/JtMGR for more info.
[22/01/2024, 21:14:02] [homebridge-ambient-weather-sensors] This plugin generated a warning from the characteristic 'Current Ambient Light Level': characteristic was supplied illegal value: number 0 exceeded minimum of 0.0001. See https://homebridge.io/w/JtMGR for more info.
[22/01/2024, 21:16:00] [homebridge-ambient-weather-sensors] This plugin generated a warning from the characteristic 'Current Ambient Light Level': characteristic was supplied illegal value: number 0 exceeded minimum of 0.0001. See https://homebridge.io/w/JtMGR for more info.
[22/01/2024, 21:18:02] [homebridge-ambient-weather-sensors] This plugin generated a warning from the characteristic 'Current Ambient Light Level': characteristic was supplied illegal value: number 0 exceeded minimum of 0.0001. See https://homebridge.io/w/JtMGR for more info.

Plugin Config:

 "name": "Our Weather",
    "apiKey": "xxxxx",
    "applicationKey": "xxxx",
    "temperatureSensors": true,
    "humiditySensors": true,
    "solarRadiationSensors": true,
    "platform": "AmbientWeatherSensors"

Screenshots:

Environment:

peledies commented 7 months ago

@WotAGitUR thanks for the detailed bug report.

this issue has been resolved with v1.2.2

WotAGitUR commented 7 months ago

Thank you @peledies Installed that version and no longer see that appearing in the logs :)