I was following the guide at: Synology DSM - Home Assistant and everything worked as described when configuring the integration, but right after punching in the security code, and the message that re-configuration was successful, the integration is showing
Failed to set up: reason: Two-step authentication required for account: myaccount
That is leaving me with nothing configured at all. No device and no entities. Clearly the setup to utilise 2-factor authentication went trough, but something else is failing.
Hi Thomas, I got the same issue after enabling 2FA today. Also followed the guide for creating a separate administrator account just for HA and succesfully configured 2FA in DSM. After entering username, password and OTP in Home Assistant I too get the message “succesfully configured” but integration not working and log showing "Config entry ‘192.168.xxx.xxx’ for synology_dsm integration could not authenticate: reason: Two-step authentication required for account: [Myaccountname]
Searching in older topics I found this problem existed back in july for users just updating to DSM 7 but was fixed in Home Assistant 2021.8.4
Seems to be broken again now
EDIT: I’m on DSM 7.0.1-42218 Update 2; Home Assistant 2021.12.10
A possible workaround would be the disable the 2FA on the Home Assistant Synology account then lock this down in the user config i.e. disable access to all Shared Folders and Applications which is mentioned in the docs: