Synology DSM 7 2fa problem

I am trying to get this integration to communicate with home assistant.

I have a ds220+ with DSM 7 on it.
I followed This how-to and created a user on DSM with 2fa setup and admin rights.
I installed the integration and it asks for address of my DSM, username, password, port and then prompts me for 2fa code.
After that it gives me this error on the integration page.

‘api’: ‘SYNO.API.Auth’, ‘code’: 403, ‘reason’: ‘One time password not specified’, ‘details’: 'Two-step authentication required for account

Not sure what I am doing wrong as I put in a 2fa code and it accepted it.

Thanks for any help.

Anyone else having this problem?

Just to be sure on the steps:

  1. you created a new user on DSM with 2FA
  2. You logged-out, and logged in again with that new user
  3. You were following the steps to create the 2FA config, and added that config, for that user, to whatever 2FA app you’re using
  4. when configuring HA, you entered username, password and current 2FA for that user

Yes that is the steps I took.

Same problem with my new installed DSM 7.0:‘SYNO.API.Auth’, ‘code’: 403, ‘reason’: ‘One time password not specified’, ‘details’: 'Two-step authentication required for account:

Same here…
Account set up as admin, 2FA configured. I can log in via PC (Edge and Chrome) as the HA user I created using user name, password and entering the 2FA code, no problems.
When setting up in HA, enter the user, password and host/port, then get asked for the 2FA code. Enter the current code and recieve the same message.

Core log and HA log both show:

2021-07-05 16:52:50 WARNING (MainThread) [homeassistant.config_entries] Config entry '192.168.xx.xx' for synology_dsm integration not ready yet: {'api': 'SYNO.API.Auth', 'code': 403, 'reason': 'One time password not specified', 'details': 'Two-step authentication required for account: HomeAssistant_NAS'}; Retrying in background.

What’s odd is that DSM us showing HA as logged in from the HA IP???
image

I am not sure which version of the API the integration is using for logging in, but seems like support for v2 was dropped for the login by DSM (although not mentioned in the documentation of DSM 7).

I am having a similar issue with my HomeSeer plugin.

Yes, I have the exact same problem after upgrading to DSM 7.0.

I found this on GitHub: -

I’m not sure how to go about asking for this fix to be released.

1 Like

I have the exact same issue and error message as @liamp when trying to install the Synology DMS integration. Does anyone has an update on this?

It looks like everybody has this problem with DSM7, so same here…
Could be cool to fix it soon.