naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
316 stars 63 forks source link

Plug-in doesn't seem to poll again after initial startup #179

Closed threeonparfive closed 3 years ago

threeonparfive commented 3 years ago

My poling interval is setup to the default of 5 which I've confirmed in config.json. I see WeatherPlus pulling the station at initial start up and no other activity in the Homebridge log after that. I have the wind speed threshold set to 10 (which was below what was current speed at startup time....it was 15 at startup). This triggered the occupancy sensor as expected on startup and the sensor shows 15 in HomeKit. Per the data for this station on OpenWeatherMap's website, the wind speed has dropped down to 11 yet the sensor still shows 15 in HomeKit....and it's been over an hour since the speed dropped to 11 yet still no change. At this point, I can't really even believe the sensor will reset to "off" even once the wind drops to below 10 since there's no evidence suggesting the plug-in is even polling.

threeonparfive commented 3 years ago

Ok....I decided to change weather stations which of course required a restart. At that time, wind speed was 1mph and reflected as such in HomeKit. A little while later, the sensor trigger and I verified on Openweathermap that wind speed was indeed measured back over 10. However, I look in HomeKit and even though the sensor triggered, the wind speed reflected in HomeKit still read 1. So it seems the real issue here is the HomeKit wind speed never gets update.....ever...after initial startup even though apparently the sensor is triggering on or off on polling updates.

naofireblade commented 3 years ago

Homekit itself does not support many weather characteristics like wind etc. Thats a apple problem that I can nothing do about. I found a hack by using a occupancy sensor and renaming the sensor after each update. But this renaming might fail in some setups (maybe your HomeKit server etc. I cannot narrow that one.)

You can set a wind threshold and the occupancy will trigger when the wind speed reaches your threshold.

Another solution would be to use compatibility mode eve and the eve app. That app supports wind as a real characteristic.