-
-
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
[somfytahoma] Channels not set at startup #10291
Comments
There was this feature in the past but several users with more devices were complaining that the threshold of API was reached - there were encountering the too many requests error, so I had to change the initializatuon to a less aggressive way. So be careful ... a solution to this would be an initialization based on the getSetup cached response, but for sure a device per device initialization is a bad way. |
Ok. Yes if we make a request for each channel, it could lead a many requests. So yes, the use of |
I implemented the solution with a request for each thing, getting the device information. |
Sounds good, the cache should have rather short duration |
Fix openhab#10291 Fix openhab#10285 Signed-off-by: Laurent Garnier <[email protected]>
Fix openhab#10291 Fix openhab#10285 Signed-off-by: Laurent Garnier <[email protected]>
Fix #10291 Fix #10285 Signed-off-by: Laurent Garnier <[email protected]>
…#10300) Fix openhab#10291 Fix openhab#10285 Signed-off-by: Laurent Garnier <[email protected]>
…#10300) Fix openhab#10291 Fix openhab#10285 Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: John Marshall <[email protected]>
…#10300) Fix openhab#10291 Fix openhab#10285 Signed-off-by: Laurent Garnier <[email protected]>
…#10300) Fix openhab#10291 Fix openhab#10285 Signed-off-by: Laurent Garnier <[email protected]>
…#10300) Fix openhab#10291 Fix openhab#10285 Signed-off-by: Laurent Garnier <[email protected]>
When the binding is started, the channels are not initialized. They are as soon as there is a change of the corresponding state.
Unfortunately, the binding is relying on the hypothesis that a REFRESH command will be sent at startup to all linked channels.
This is something that was done in OH2 but no more in OH3.
@octa22 : it is necessary to trigger the refresh of channels at startup. I am not yet sure what is the best way to do it considering the binding architecture. But very probably in the
initialize
method of classSomfyTahomaBaseThingHandler
.The text was updated successfully, but these errors were encountered: