Weather binding fails to start on openHAB 2 #3829
Comments
The weather binding is being activated and deactivated multiple times. The binding.xml wasn't updated with the immediate="true" fix when that was done on a bunch of bindings. (weatherservlet.xml was updated but binding.xml wasn't). Adding immediate="true" to the binding.xml file causes the binding to be only activated once and we don't get the duplicate id exception. That being said I get the following lines:
And then later in the log the WeatherJobScheduler states: More then likely they are related as the binding isn't being fully registered. |
This might be similar to @kaikreuzer's PR #3861 earlier today. |
Adding an implementation for addBindingProvider and removeBindingProvider as per that PR makes those errors go away, but so far I still don't have a working weather binding. WeatherGenericBindingProvider::processBindingConfiguration doesn't ever seem to get called. Also as a side note, if you start and stop the binding repeatdly you still get the duplicate key error. I realize that I am making a bunch of changes and a proper pull request will be the ultimate goal, but for now I am just hacking away and posting my findings here. |
Just tested the last 2.0 snapshot using Wunderground as weather provider and I got the same result as you @pyjamasam that is "Disabling weather locationId 'home', no binding available". |
On openHAB 2, I get the following exception:
The binding should allow that the activate() method is called multiple times (with deactivate inbetween of course).
The text was updated successfully, but these errors were encountered: