Sorry again but you misunderstand how the script and the somfy API work. I wrote the V2 and V3 scripts so let me explain ...
Since I updated the polling time to 60 min I did not see any blacklisting
I already answered that.
Take 5 min to read the excellent @dommarion post concerning the reasons choosing centralized polling instead of devices polling.
not sure you are right with your theory that the 2 min login and unlimited API calls
This is not a theory, this as been tested and validated, using network analysis tools, and raw responses to API requests. API fetch requests can run every second, leading to thousands of requests per hour without any problem.
Last, in my view, any public API, has to be authenticated on each request
It's not a public API, it's the specific webapp and smartphone app API.
It accepts 1 login request and n fetch requests using a subscription token.
If you wait more than 2 min without any fetch request, you just loose the token and need to re-login.
With v2 I never had ANY issue, with v3 until I reduced the polling time as I said, multiple times
V3 came with a lot of improvements concerning events handling, cpu tuning, devices templates, and balcklist protection. But V2 and V3 use the same API engine : login request -> event subscribe request -> event fetch requests.
So if you experienced a blaklisting, this is because you fell in a specific case that could not be anticipated.
MasterData status changes are not issues (except blaklist of course), they just reflect events coming from the cloud. Please, read a translation of this post to better understand how MasterData status are rendered.
trying to pull agresivly the intermediate states will trigger the blacklisting imho
The script do not try to pull intermediat states, it just fetches for events from the cloud. If there's no event, there's no intermediate state. If there are lots of events, there are lots of intermediate states.
eedomus polling is based on minutes :
- less than 1 is not possible
- 1 is ok
- 2 and higher makes you loose the token
Knowing that, feel free to set the MasterData polling to 24 if this is ok with your environment. But this is not our recommandation.
Herric