Logi Circle camera with HASS

I used the previous integration a while back and had an SD card issue with my Pi and only just got round to setting this back up. Trying to get the new integration to work and having issues! I requested API access back in February and have all the necessary details. When I add logi circle to my config with all the relevant info I get the link in the integrations page but clicking on it gives me the following message:

{“error”:“redirect_uri_mismatch”,“error_description”:“The redirect_uri must match application configuration.”}

Assuming this means the URI redirect in my config does not match the one I was granted by Logitech when I did my api request? I’ve checked it several times and they are exactly the same (even copied and pasted it from the google docs file to be sure!). It’s a publicly exposed URL with a valid SSL certificate and in the format of https://[myhassurl]:8123/api/logi_circle

Am I missing something obvious? Should I redo the API request as the original one was so long ago? If I browse to the redirect URI I get the following:

{“message”: “Authorisation code missing from query string”}

Any help appreciated!

Has someone applied for Logitech API access recently? I have several Circle 2 cameras and I followed the process and filled the Circle Home Assistant OAuth2 Request Form. Since I am not able to setup the integration as I don’t have the api key yet, my redirect URL points to a page saying ‘404: Not found’ which is generated by Home Assistant obviously. Are they accepting this? It’s been 3 weeks and I haven’t got any reply yet. Thanks

Yes - even if you had the integration enabled, that endpoint is only registered during the auth flow. Logitech have specifically said that a 404 generated by HA in this instance is fine.

Sorry, missed this. Yes, your assumption is correct. Rather than create a new request, I’d just reply to the e-mail where they initially provided you your API key and ask them to double check the redirect URI.

But they have never provided me any API key and never sent me any e-mail. Maybe I misunderstood something but I have Circle 2 cameras. I followed this guide. I considered steps 3) and 4) out of date because I don’t see those options on the form at all. So I filled the form to get an API key to use the cameras in HA. I am still waiting for reply from Logitech. I haven’t got any confirmation that they received my request. Did I miss a step?

Don’t apologise, very grateful for your work and your help!

I made an error when I initially requested it, and then had to go back to them and get it changed so I wonder if it wasn’t amended properly to match the correct URL. I requested again in the meantime so might wait for that and reply just to cover all bases seeing as they seem to only be processing requests once a month!

The message you’re replying to was a reply to Sparsons99, not your query. Unfortunately all you can do is wait. :frowning_face: To repeat my last comment, you don’t have to worry about the redirect URI 404ing, that’s normal and Logi won’t ding you for it.

Month+ long response times was not what I imagined when I migrated the integration to Logi’s public API. I really am sorry this has been so painful for everyone. Hopefully Logi move to a self-serve OAuth system at some point.

Yepp, my mistake for the reply.

thanks for info. It’s not a problem at all. I can wait… hopefully sooner or later they will text back with the credentials. What you have done is still far beyond anybody else did. I really appreciate your work with this integration.

Hello @evanjd, any updates regarding the camera.turn_off and turn_on issues? i’m still getting the error
Failed to call service camera/turn_off. 'Camera' object has no attribute 'set_streaming_mode'
if i try to use the commands on 0.96.5 (docker)

Does anyone know a Logitech support mail to get info about requesting an API key? Has anyone received an answer from them recently?

It’s been a month since I filled their form to get my credentials so I could access my Circle 2 cameras from HA, but I haven’t received any answer at all :frowning:

@evanjd I’ve had the new Logi Circle cameras up and running on HA for a while now - got the API key a few months ago.
I was having some issues with my HA this weekend. In trouble shooting I commented out the Logi_circle setup in the configurator file - thinking it would disable the cameras. After restarting HA, the cameras were still active and so were the sensors; even without the settings in the config file.
Out of curiosity, why would that happen? The cameras were even sending fresh photos.

I contacted them at [email protected] back in June. They were pretty responsive.

Thanks! I will try to contact them. I filed the Auth form a month ago and I haven’t got any response… no refuse but no API key either. Very strange like their authorization procedure doesn’t exist anymore…

I was having some issues with my HA this weekend. In trouble shooting I commented out the Logi_circle setup in the configurator file - thinking it would disable the cameras. After restarting HA, the cameras were still active and so were the sensors; even without the settings in the config file.
Out of curiosity, why would that happen? The cameras were even sending fresh photos.

The logi_circle platform configuration is only used by the config flow handler (the menu you see in the Integrations UI). Once you’ve authenticated, the required configuration is persisted in HA’s internal/private storage and that’s what the entities rely on from that point onwards. You can inspect this yourself if you look inside <your config folder>/.storage/core.config_entries.

If you want to remove your Logi devices, delete the integration from the integrations menu.

Thanks for the explanation.

Have you managed to contact them? I’ve sent the request to get API key a month ago and haven’t received any response. They do not have a support via email either.
The whole idea with this Circle Home Assistant OAuth2 Request Form feels quite hopeless or even scammy.

Yes same for me. I haven’t got any response so far. The email address mentioned above doesn’t work anymore. I contacted them few days ago through their ticket system as well. Still waiting for reply… I will let you know as soon as I get any feedback. Usually they answer the tickets in a week.

I have just received an answer from Logi support.

They apologize for the delay and confirm pending OAuth requests will be approved this week. We will see.

Good news. Thank you.

I still can’t figure out how to get this request approved the way they want it. I tried when it first changed over but I can’t figure out how to setup the redirect to be in compliance with Logi. Any good examples or tutorials out there?