I just got my OAuth and set it up in my virtual environment- works great. However, I’m getting the error mentioned previously when calling camera.turn_on
(or off).
May I ask after how long time you got it? I’m closing to two months and still no reply on OAuth request at all…
I have had mine come through too at last. Got it all configured but I can’t seem to access the live stream within HA. Instead I get still images that look like they get updated when there is movement.
The live stream support hasn’t made into HASS. I did raise a PR for it, but it couldn’t be merged because mjpeg support has been deprecated from HA, but the new stream component doesn’t support ephemeral live stream URLs.
Actually, I just looked it up and they have since updated HA to support this. I’ll take a crack at this on my weekend (and will fix the turn_on and turn_off issue at the same time).
@A320Peter I got mine in less than a week. They say that they’ll “ignore non-working requests” if your redirect URL isn’t valid… you might try resubmitting and making sure that you follow their directions about how to format that exactly right.
Thanks! May I ask what did you see if you visited your Redirect URL before you got the API key? I think I gave them the correct redirect URL format. Mine is likehttps://somename.duckdns.org:8123/api/logi_circle
but if I open it only gives a404: Not Found
error which is generated by Home Assistant as this obviously doesn’t exit on my network. I was told they should accept this but obviously they don’t. I don’t know what else I could do.
Additionally on the logi_circle component description in HA website there is a guide you mentioned how to request the API access. It mentions a lot of steps like ‘Request the authorization code grant type’ or ‘User visible client name specify Home Assistant’ or ‘Request the following scopes: circle activites, etc’. I don’t see any of these options on the OAuth page so I don’t know how to request them.
I think I gave them the correct redirect URL format … if I open it only gives a 404 …
I was told they should accept this but obviously they don’t.
Literally everyone’s environment behaves like this so I really doubt that’s it. That link is only live when the authorization flow is in progress, and its always been that way.
Just checking, but do you have a valid cert setup for your duckdns domain? ie. if you navigate to your HA install from a standard browser, is it trusted?
It’s deeply unfortunate that they don’t provide any feedback when rejecting requests.
It mentions a lot of steps like ‘Request the authorization code grant type’ or ‘User visible client name specify Home Assistant’ or ‘Request the following scopes: circle activites, etc’. I don’t see any of these options on the OAuth page
Huh, it looks like they changed it. I’ll update the docs when I submit the other PRs on the weekend.
Yes, https is working. I travel a lot and I also tested from different countries, I can reach my HA instance without problem. It works and there are no warnings or certificate issues. It’s in secure mode.
I am very sad that they are not providing feedback as I bought three logi circle 2 cams in order to have weatherproof native HomeKit cameras and Home Assiatant capability at the same time.
Their online support also not providing feedback about this process. They just confirm if OAuth requests have been approved recently or not.
It took over a month to get my credentials. I am using the HASS cloud account integration and gave them my URL in this format. https://xxxxxxxxxxxxxxxx.ui.nabu.casa/. I too had the 404: Not found error since the logi circle was not added into the integration. So Logitech does support the link even if you get that error until you add the circle to your integration.
Finally I got my credentials from Logi support in email and it works
For those who are still waiting here is my story in short. I filled their OAuth form and now I am 100% sure it was correct. I had been waiting for a month when I decided to contact Logitech support in email, but they are not giving support in email anymore. So I logged in via my Logi Circle account on their Support page and opened an issue ticket manually stating that I am still waiting for feedback regarding API and OAuth and I gave them all the data that I filled on their form several weeks before. Few days later a support agent confirmed that the requests are still pending but will be approved shortly. Nothing happened for weeks so I contacted them again. Their system sent me an automated email asking if my problem still persists? I answered a bit more assertively that I am still waiting. At this point I also filled the OAuth form a second time with exactly the same data as before. Shortly received an answer and a lady was asking if I am waiting for API key or OAuth approval because they are not the same. I am not expert in this so I explained that I requested it to use my circle cams in Home Assistant and I was told to fill that OAuth form and that all I need is some kind of Client ID
, Client Secret
and API key
. I got answer few hours later with all the credentials.
Glad you finally got your credentials Peter. I got mine last week but I fear the logi circle integration is pointless right now for me. There is no live streaming and I have yet to figure out how to use the last motion recorded to automate anything. I like the logi circle app and it;s notifications so I am basically using two cameras on my front door. A standard foscsam camera for live video in HA and also to trigger scenes based on camera movement. I also have my logi circle camera at the front door just because I like the ability to see a short version of all recorded activity in the logi app. Not sure I will use both cameras in the future.
Theoretically there is sensor with the timestamp of the last motion detected so you may create automations based on that change. I also have a Foscam and we can say it’s HA integration is better but the platform is different. As far as I know there is no possibility at the moment to see the live feed in HA with Logi Circle.
I use the Circle 2 cams because I need weather proof native HomeKit intercom with 5G WiFi for a reasonable price. My main dashboard is HomeKit and HA functions only as a hub but I don’t use HA’s interface on everyday basis. The reason I need HA support for this cam is because of an old doorbell on a gate which is far away from my main door and can’t be replaced. All I wanted is a push notification with a live snapshot when someone presses the bell, and a button below the notification so I can immediately open the gate by tapping the notification without unlocking my phone. In case I need the live feed or audio it is quickly available from HomeKit in my case as Circle 2 is HomeKit capable.
For a long time I used HomeBridge and the Foscam with video-doorbell plugin and it worked well, but it is not possible to make the two-way audio comm work. I tried several plugins and camera brands. So I came up with this mixed solution.
Just a follow up so you know I haven’t forgotten - I did integrate the live stream with the stream component but ran into blocking issues.
Specifically, if the stream doesn’t return data in < 10s, the front-end cancels the request and the stream doesn’t show. On average, the stream takes ~12-15s to return data, so live video almost never shows. This also completely counts out battery powered devices, as they can take anywhere up to 60s to wake from deep sleep and return a stream.
I haven’t found any mechanism to control this timeout, so I’m a bit stuck! I joined the HA discord and asked twice about this, but didn’t get a reply. At this point I’m not sure whether to wait, or resubmit my old PR with the MJPEG stream (which works perfectly), explain the situation in the PR description and see if I can get in despite previously being redirected towards the stream component.
I apologise for the slow progress!
Thanks for the work that you do. Really appreciate all the time you’ve spent on this and I’m sure you’ll figure it out, one way or another.
Thank it’s great news. Hopefully you will find a solution. If there is no other option to trick the timeout then maybe back to the good old things.
Started today I am getting the following error in notifications after restarting hassio:
Error: 15s timeout exceeded when connecting to Logi Circle API
You will need to restart hass after fixing.
I haven’t changed anything in the config. I haven’t changed the password. I restarted the Pi because I had a failed z-wave node which is usual. Since then no matter how many times I restart HA or the Pi, I get the same error. My Circle 2 cameras are working fine in HomeKit and through the Logitech app. I never had problem with this integration since I got my credentials.
What can be the reason they don’t work anymore in HA if I haven’t changed anything related? Thanks
I’m not sure, and unfortunately I can’t reproduce (I stood up a brand new instance of HA and setup the integration from scratch to be sure).
When you restart HA, it will refresh the token by POSTing your client ID, secret, API key and refresh token to https://accounts.logi.com/identity/oauth2/token
. I can’t give you the exact parameters you need to POST to that API because they’re specific to you, but maybe you could try curl
-ing to that URL from the same shell HA runs on to see if there’s similar connection problems. From there, that might give you something you can work with to sort out your network issue (if that’s what it is).
Thanks I will give it a try.
I just had the same error after rebooting my raspberry pi. Restarting home assistant manually as suggested in the error message seems to have fixed it.
Forgive me if this has been asked before but is it possible to download the last activity still & movie using HA? Or hasn’t that function made it into the integration?