Logi Circle camera with HASS

I got my client id’s etc today, and filled them to my HA configuration. After restarting HA I get a notification that a new device has been found. When I go to finnish the installation, and click the link to accept the integration I get this error message:

{"error":"unauthorized","error_description":"The specified client_id is not valid."}

I have got exactly the same problem

I also received my credentials today.

When I click the link I need to login, what’s the username and password?

Whatever credentials you normally use to authenticate with Logi Circle. eg. your login for circle.logi.com, the credentials you used with the old/private API based integration etc.

@jarnose and @frrese, double check that the configured credentials match what Logitech provided you. If they do, try again in 24 hours, and if it still doesn’t work, reply to the e-mail from Logitech and tell them your client ID isn’t being accepted.

Safari keeps redirecting me to the login screen with the correct username and password. Incorrect logins shows me:

{"error":"unauthorized","error_description":"The specified client_id is not valid."}

Using chrome I don’t see a login screen, just the message above.

Will try again in 24 hours

Same “The specified client_id is not valid.” issue for me, I think we may have to wait for them to become active, I’ll try again same time tomorrow and report back.

Same for me - I’ll try again tomorrow.

Bummer. I’m just guessing, but it sounds like the API keys they just handed out aren’t activated yet. Hopefully it sorts itself out soon enough. Let me know how it goes.

I received my credentials from Logitech yesterday. I’m getting the same issue: asked to authenticate, key in my Logi account credentials, and the screen just refreshes. I sent an email to the Logi rep who sent me my credentials and he said: “Give it a few days, it’s likely the integration credentials haven’t been activated yet. That can take up to a week.”
Hopefully this won’t take another week!

1 Like

Same here, received my key yesterday and was so excited. Patiently waiting! :slight_smile:

Confirmed, working as of this afternoon.

Almost there…

After pressing the link and authenticating (this is working, yay!)

I keep getting the message:
“Please follow the link and authenticate before pressing Submit.”

Update:
PermissionError: [Errno 13] Permission denied: ‘.logi_cache.pickle’

Trying to fix it…

Update 2:

Done some rebooting, removing and readding the component. No luck… Any suggestions?

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/data_entry_flow.py", line 64, in async_init
    return await self._async_handle_step(flow, flow.init_step, data)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/data_entry_flow.py", line 98, in _async_handle_step
    result = await getattr(flow, method)(user_input)  # type: Dict
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/logi_circle/config_flow.py", line 141, in async_step_code
    return await self._async_create_session(code)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/logi_circle/config_flow.py", line 164, in _async_create_session
    await logi_session.authorize(code)
  File "/srv/homeassistant/lib/python3.7/site-packages/logi_circle/auth.py", line 67, in authorize
    await self._authenticate(authorize_payload)
  File "/srv/homeassistant/lib/python3.7/site-packages/logi_circle/auth.py", line 118, in _authenticate
    self._save_token()
  File "/srv/homeassistant/lib/python3.7/site-packages/logi_circle/auth.py", line 130, in _save_token
    with open(self.cache_file, 'wb') as pickle_db:
PermissionError: [Errno 13] Permission denied: '.logi_cache.pickle'

Now it is working, took a while :slight_smile:

The token cache is stored in the HA working directory - it’s likely this is not set correctly. See this issue for a potential fix:

@evanjd my credentials came through and I now can access stills again from my Logi cameras in Lovelace. How do I get a clip from the last action? Here is my Lovelace setup:

  - type: picture-entity
    entity: camera.garage_door
    camera_view: live
    show_info: true
    tap_action:
        action: more-info

Sorry if this information is somewhere else, I couldn’t find it.

Its working now. Thanks a bunch!

The outlet used to get the camera angle is attached to a light switch. It was off, it now has electrical tape over it to remind people not to turn it off. Thanks!

1 Like

how did you get it to work? It just started working eventually?

No, I followed the instructions in evanjd’s post. Made an edit in systemd settings and now it’s working