-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[netatmo] Requesting favorite stations only when needed #12769
Comments
I think I know how to enhance that, I will submit a PR after testing. |
You're welcome, I've got many plates on the fire :) |
Fix openhab#12769 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@lolodomo - can you remind me how to access binding configuration from MainUI when installed as JAR? |
You click "+" to add new thing and then in the "Choose binding" you have a special icon on "Netatmo Binding" to access its configuration. PS: look at my other issue, any change is taken into acocunt only after a restart. |
* [netatmo] Avoid requesting favorite stations when not needed * Add new method getFavoriteAndGuestStationsData * Enhanced description for method getOwnedStationData * getFavoriteAndGuestStationsData returns a collection of NAMain Fix #12769 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
…#12777) * [netatmo] Avoid requesting favorite stations when not needed * Add new method getFavoriteAndGuestStationsData * Enhanced description for method getOwnedStationData * getFavoriteAndGuestStationsData returns a collection of NAMain Fix openhab#12769 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
…#12777) * [netatmo] Avoid requesting favorite stations when not needed * Add new method getFavoriteAndGuestStationsData * Enhanced description for method getOwnedStationData * getFavoriteAndGuestStationsData returns a collection of NAMain Fix openhab#12769 Signed-off-by: Laurent Garnier <lg.hc@free.fr> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
…#12777) * [netatmo] Avoid requesting favorite stations when not needed * Add new method getFavoriteAndGuestStationsData * Enhanced description for method getOwnedStationData * getFavoriteAndGuestStationsData returns a collection of NAMain Fix openhab#12769 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
I have not enabled favorite stations:
But the binding requests favorite data anyway:
This is probably triggered at this line with the second parameter set to true:
/~https://github.com/openhab/openhab-addons/blob/main/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/WeatherApi.java#L66
It could (should) be optimized to use false when getStationData is called for your local weather station.
@clinique : WDYT ?
The text was updated successfully, but these errors were encountered: