Hello!
I’ve been trying to port my OH 1.8 installation to 2.0 today and have encountered a problem with the weather binding. On startup it reports:
23:39:26.270 [INFO ] [eather.internal.common.WeatherConfig] - ProviderConfig[providerName=OPENWEATHERMAP,apiKey=XXXXXXXXXXXXX]
23:39:26.304 [INFO ] [eather.internal.common.WeatherConfig] - LocationConfig[providerName=OPENWEATHERMAP,language=de,updateInterval=15,latitude=XX,longitude=XX,woeid=<null>,locationId=work,name=Work]
23:39:26.340 [INFO ] [eather.internal.common.WeatherConfig] - LocationConfig[providerName=OPENWEATHERMAP,language=de,updateInterval=15,latitude=XX,longitude=XX,woeid=<null>,locationId=<locationId2>,name=Work]
23:39:26.372 [INFO ] [eather.internal.common.WeatherConfig] - LocationConfig[providerName=OPENWEATHERMAP,language=de,updateInterval=15,latitude=YY,longitude=YY,woeid=<null>,locationId=<locationId1>,name=Home]
23:39:26.410 [INFO ] [eather.internal.common.WeatherConfig] - LocationConfig[providerName=OPENWEATHERMAP,language=de,updateInterval=15,latitude=YY,longitude=YY,woeid=<null>,locationId=home,name=Home]
After installing the weather binding via feature:install, I copied the location settings over from my old openhab.cfg to weather.cfg. There I initially made the mistake of not properly naming my locations. I retained the names locationId1 and 2 from the sample settings in the file.
I recognized my error, changed the locationIds to home and work and restarted OH2. Now, OH2 stubbornly insists on loading both the old locations that do not exist in the configuration files anymore and the current ones.
Can anyone tell me why its retaining the old setting, how to get rid of them and where those are retained?
Edit: The settings are anonymized here. Be asured that they work though.