-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Not authenticated error. #86
Comments
This happens a lot to me, sometimes already after a restart, sometimes after one or more day. This is the complete error message I get flooded (litterally 100 of these entries): 2020-07-01 21:05:09 ERROR (MainThread) [homeassistant.helpers.entity] Update for cover.markise_hoyre fails |
Thanks for the report. Unfortunately I haven't found a way to reproduce it consistently to debug it... Still looking! |
Can you try branch |
mark as logged out when receiving {"errorCode":"RESOURCE_ACCESS_DENIED","error":"Not authenticated"}
If you haven't done it yet, it should work now! |
fixed in 1.5alpha2 by #95 |
We manage to get authenticated, but we still don't know why we loose authentication at some point... |
Just moved from the discussion in issue #93
I will test this later and give you feedback. |
I get no log entry when I move the cover (even when I change it to warning or error). |
The log is only supposed to warn if you're not authenticated... Do you still have the delay? |
Yes, the delay is still there (not always, but most of the time) |
I've added another debug message in branch https://github.com/iMicknl/ha-tahoma/archive/not-authenticated-error.zip |
No change with this configuration |
Still no log entry and still the same situation. |
I've modified the log. You should get debug messages even if you're still authenticated. |
This is an example of the entries:
|
These are scheduled update calls. I don't see any delay there. Can you do an action, look for apply_action in the log, and post messages around it? |
Here is the
|
I test it again and it is reproducible: I clicked the button at 18:24:45 and the cover reacts 10 seconds later. And the same for the stop button - it reacts 10 seconds later after I clicked the button in the HA iOS app.
|
Interesting. Are those 8 seconds the typical delay you observe? What command are you using exactly? The apply_action message is sent from the integration, the request messages from the API. It means, once the apply_action is received, no delay is observed |
I added yet other log messages to time when the actions are received by the cover entity. |
The delay is before the action is received by the cover entity: Move down clicked at 19:00:45
Stop clicked at 19:01:00
|
I'm afraid it's not on our side... This might be related to the frontend, but we can't control what happens before the close_cover our stop_cover log message. |
Ok. It's hard to say what the source is. I updated HA to 0.112 and because of the login issue I had to update tahoma to 1.5-alpha2. Before that I used HA 0.111.4 and tahoma 1.3. What I don't unterstand: the Zigbee lights are responding immediately without delay. |
This comment might be completly idiotic and I might be thinking completely wrong :-) But I have only RTS devices, so none of them report any state at any time. Reading the log (and this is the part where I might be wrong) it seems that the integration is pulling the api for status. This is bound to not give any usable result since there is no state to report. If it is possible to from the device class see that it is an RTS device (or maybe some other way to determine that the device don't report status) you could save on the API call quota by not issuing status update calls for this device groups. |
It's a good idea to not pull on rts devices indeed. But we are thinking of rewriting the whole update process to make it an event based push update instead of a regular poll. This will be quite some work so not for tomorrow... Nevertheless, updates aren't exec calls, so it shouldn't impact the quotas |
I'll close this issue for now. |
Describe the bug
For some unknown reason, we get kicked out of the api, causing the following error message:
{"errorCode":"RESOURCE_ACCESS_DENIED","error":"Not authenticated"}
To Reproduce
Don't know yet...
The text was updated successfully, but these errors were encountered: