Skip to content
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 getting status #50

Open
npentell opened this issue Dec 22, 2021 · 16 comments
Open

not getting status #50

npentell opened this issue Dec 22, 2021 · 16 comments

Comments

@npentell
Copy link

Good evening. I noticed that my echo wasn't going into DND during my meetings as my automation should be doing. Seems like it started just a couple of days after you helped me get everything working. I just looked at my logs after a restart and saw this and wanted to know if it was an issue or not? I can do some testing and report back if needed but wanted to start with this question first. Thanks a lot.

2021-12-21 21:17:57 WARNING (MainThread) [custom_components.zoom.binary_sensor] Error retrieving initial zoom status, restoring state. Traceback (most recent call last): File "/config/custom_components/zoom/binary_sensor.py", line 163, in async_added_to_hass self._profile = await self._api.async_get_contact_user_profile(self.id) File "/config/custom_components/zoom/api.py", line 35, in async_get_contact_user_profile resp = await self._oauth_session.async_request( File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 471, in async_request return await async_oauth2_request( File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 485, in async_oauth2_request return await session.request( File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 640, in _request resp.raise_for_status() File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1004, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 400, message='', url=URL('https://api.zoom.us/v2/chat/users/me/contacts/W2CQ3GM9TKOWNdq7PznIZg?query_presence_status=true'

@raman325
Copy link
Owner

raman325 commented Jan 2, 2022

hi there. This error indicates that either the Zoom API was down or your user does not have permission to retrieve your current presence status. That means we can only rely on webhooks, e.g. when you actually have state changes to your presence, your HA instance has to be up to receive a notification about it.

This isn't necessarily a problem, but it sounds like maybe something else is happening that is causing a larger issue. A couple of things to try:

  • Create an entity card for binary_sensor.zoom_<profile_name> so you can watch its status. Verify that it's disconnected then try starting a personal meeting. It should change to connected. If this is not happening, something is broken and we need to troubleshoot that.
  • If that works, then the next step is to check the last_triggered attribute on your automation. If the first step works but the second step doesn't, there's a problem in your automation.

@npentell
Copy link
Author

npentell commented Jan 3, 2022 via email

@raman325
Copy link
Owner

raman325 commented Jan 3, 2022

are you monitoring multiple accounts? There was a bug that I just pushed a release to fix

@npentell
Copy link
Author

npentell commented Jan 3, 2022 via email

@raman325
Copy link
Owner

raman325 commented Jan 3, 2022

right I recall that from last time. What version of the integration are you running?

@npentell
Copy link
Author

npentell commented Jan 3, 2022 via email

@jhofker
Copy link

jhofker commented Jan 18, 2022

I'm on 0.8.2 monitoring a single account and I'm also not getting status back. Did something with the permissions on Zoom apps change by chance?

@raman325
Copy link
Owner

Not that I am aware of. Can you monitor the zoom_webhook event and see if it's firing?

@raman325
Copy link
Owner

and can either of you try rolling back to 0.7.5 and see if that fixes it? I made some changes to the event data structure in 0.8.0 so my first thought is that I broke something there. I don't use Zoom much these days as I have switched companies, but the couple of times that I tested it it seemed to work.

@npentell
Copy link
Author

I downloaded the 0.7.5 zip and replaced the files in the custom_components folder with the ones from the zip. After restart I am still showing on version 0.8.2 when I go to HACS and click on information.. Is that just general info about the addon or am I still on the new version?

@raman325
Copy link
Owner

HACS maintains it's own information about what version you are on, so when you go outside of HACS it doesn't know that the version has changed. You can check the manifest to see what version is listed there

@mitchej
Copy link

mitchej commented Jan 20, 2022

Hi @raman325 - great work on this app, thanks! Having an issue at the moment and seems unrelated to the version (getting the same across v0.7.5 through to current version 0.8.1).

Status on binary sensor is showing as unavailable.

Logger: custom_components.zoom.binary_sensor
Source: custom_components/zoom/binary_sensor.py:103
Integration: Zoom (documentation, issues)
Unable to reach Zoom, we may miss status updates until we can connect again

Any help would be much appreciated, thanks again for the hard work on this project!!

@npentell
Copy link
Author

I downloaded the 0.7.5 version, deleted the newer one, restarted, and tried installing the older one but It's saying Could Not Load Config Flow.

@raman325
Copy link
Owner

I downloaded the 0.7.5 version, deleted the newer one, restarted, and tried installing the older one but It's saying Could Not Load Config Flow.

OK so you either need to do this manually or via HACS. To do this manually:

  1. Delete the custom_components zoom folder
  2. Download the 0.7.5 release from GitHub
  3. Place the unzipped 0.7.5 release folder in the custom_components folder

To do this via HACS:

  1. Don't physically delete the zoom folder in custom_components
  2. On the card for Zoom in HACS, click on the ... and click Re-Download
  3. Select version 0.7.5 and install

The way you described what you did makes me think you did a mix of both. I would uninstall from HACS entirely and install it again - at that point you should be able to select the version. Once you are done testing, you can follow the HACS steps above to get to whatever version you want to be on, just don't forget to restart after each action

@raman325
Copy link
Owner

Can you try removing the config entry and then re-adding it? I'm wondering if your authorization expired somehow

@npentell
Copy link
Author

At first I tried leaving the integration installed and replacing the files in the custom_components/zoom folder with the older version ones (I deleted everything in the folder and put the 0.7.5 files in there). I restarted after that and the zoom integration wouldn't load and I couldn't uninstall the integration. Next I deleted the zoom folder and restarted and it then allowed me to uninstall the integration. I then put the unzipped 0.7.5 zoom folder in the custom_components folder and restarted Home assistant again. Then I reinstalled the zoom integration but got the message above when I tried to configure it.

If you're referring to the configuration.yaml, I don't have anything relating to the zoom integration in there. If you are talking about a config somewhere else then let me know and I am happy to look there.

I also grabbed this error from the logs. I hope it helps.
homeassistant.config_entries] Error occurred loading configuration flow for integration zoom: cannot import name 'HTTP_OK' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants