ha-zoom-automation
ha-zoom-automation copied to clipboard
not getting status
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'
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.
I do have a card. I've had it on my dashboard since the beginning. I haven't changed anything as far as the zoom integration goes. The only changes that I have made is to update Home assistant when available. The card stopped showing an Available status a few weeks ago and has been in an unavailable state ever since. Thoughts? Thanks a lot!
P.S. I have had the actual zoom app running as it should be when joining meetings.
On Sun, Jan 2, 2022 at 4:07 PM Raman Gupta @.***> wrote:
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.
— Reply to this email directly, view it on GitHub https://github.com/raman325/ha-zoom-automation/issues/50#issuecomment-1003775315, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5VHHAFLVCG6MNPW3EZYQDUUC5A3ANCNFSM5KRQ45SA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
are you monitoring multiple accounts? There was a bug that I just pushed a release to fix
I'm not monitoring multiple accounts but I am signing in as an admin to a company account to access mine.
On Sun, Jan 2, 2022 at 8:34 PM Raman Gupta @.***> wrote:
are you monitoring multiple accounts? There was a bug that I just pushed a release to fix
— Reply to this email directly, view it on GitHub https://github.com/raman325/ha-zoom-automation/issues/50#issuecomment-1003826914, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5VHHBWK5SCBLOHDEBFQTDUUD4MDANCNFSM5KRQ45SA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
right I recall that from last time. What version of the integration are you running?
"version": "v0.8.1"
On Sun, Jan 2, 2022 at 8:40 PM Raman Gupta @.***> wrote:
right I recall that from last time. What version of the integration are you running?
— Reply to this email directly, view it on GitHub https://github.com/raman325/ha-zoom-automation/issues/50#issuecomment-1003828305, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5VHHFR6NQAIFRYKYEXBRTUUD5BFANCNFSM5KRQ45SA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
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?
Not that I am aware of. Can you monitor the zoom_webhook
event and see if it's firing?
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.
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?
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
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!!
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.
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:
- Delete the custom_components zoom folder
- Download the 0.7.5 release from GitHub
- Place the unzipped 0.7.5 release folder in the custom_components folder
To do this via HACS:
- Don't physically delete the zoom folder in custom_components
- On the card for Zoom in HACS, click on the
...
and click Re-Download - 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
Can you try removing the config entry and then re-adding it? I'm wondering if your authorization expired somehow
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.