home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.64k stars 30.41k forks source link

FinTs does not work with DKB Bank. #117811

Closed justinh998 closed 1 month ago

justinh998 commented 5 months ago

The problem

Hello I'm currently trying to set up the FinTS integration for Home Assitant that is due, but it's not working and somehow I can't explain how it's supposed to work. I have to give the integration the Bank_Identification_number (in the case of dkb (according to their website (only in German :https://www.dkb.de/fragen-antworten/kann-ich-eine-finanzsoftware-fuers-banking-benutzen) the 120 300 00. Then I still need username (for me this is my dkb tan2 go login name (back with _p) and a pin, that would be my password for my tan2go user name. According to the dkb website, the url is: https://banking-dkb.s-fints-pt-dkb.de/fints30. But I keep getting an error

What version of Home Assistant Core has the issue?

2024.5.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

FinTS

Link to integration documentation on our website

https://www.home-assistant.io/integrations/fints

Diagnostics information

No response

Example YAML snippet

sensor:
  - platform: fints
    bank_identification_number:
12030000
    username: MyLoginUsernameTan2Go
    pin: MyTan2GoLoginPassword
    url: 'https://banking-dkb.s-fints-pt-dkb.de/fints30'

Anything in the logs that might be useful for us?

Logger: homeassistant.components.sensor
Quelle: helpers/entity_platform.py:356
Integration: Sensor (Dokumentation, Probleme)
Erstmals aufgetreten: 16:22:32 (1 Vorkommnisse)
Zuletzt protokolliert: 16:22:32

Error while setting up fints platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 356, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/fints/sensor.py", line 84, in setup_platform
    balance_accounts, holdings_accounts = client.detect_accounts()
                                          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/fints/sensor.py", line 209, in detect_accounts
    for account in self.client.get_sepa_accounts():
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/fints/client.py", line 452, in get_sepa_accounts
    with self._get_dialog() as dialog:
         ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/fints/client.py", line 273, in _get_dialog
    self._ensure_system_id()
  File "/usr/local/lib/python3.12/site-packages/fints/client.py", line 1145, in _ensure_system_id
    response = dialog.init(
               ^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/fints/dialog.py", line 85, in init
    retval = self.send(*segments, internal_send=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/fints/dialog.py", line 156, in send
    self.client.process_response_message(self, response, internal_send=internal_send)
  File "/usr/local/lib/python3.12/site-packages/fints/client.py", line 230, in process_response_message
    self._process_response(dialog, None, response)
  File "/usr/local/lib/python3.12/site-packages/fints/client.py", line 1288, in _process_response
    raise FinTSClientError("Error during dialog initialization, could not fetch BPD. Please check that you "
fints.exceptions.FinTSClientError: Error during dialog initialization, could not fetch BPD. Please check that you passed the correct bank identifier to the HBCI URL of the correct bank.

Additional information

But I'm wondering how the whole thing is supposed to work anyway, I give the inigration my login data, it then has to log in and I then have to enter the 2 factor code from the tan 2 go app but I don't know how the integration is supposed to do that (I haven't found a function anywhere in the code that retrieves and uses this 2 factor code), can it be that this integration only supports banks that still offer 1 factor authentication?

home-assistant[bot] commented 5 months ago

fints documentation fints source

issue-triage-workflows[bot] commented 2 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment šŸ‘ This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

NOYB4Europe commented 1 month ago

same problem, same bank!

Logger: fints.client Quelle: components/fints/sensor.py:147 Erstmals aufgetreten: 10:47:05 (1 Vorkommnisse) Zuletzt protokolliert: 10:47:05 You should register your program with the ZKA and pass your own product_id as a parameter

similar issue see here: https://community.home-assistant.io/t/fints-access-needs-product-id/322464/5

partly solution: Took me some time to get the OK to publish the product id, but here it is: 6151256F3D4F9975B877BD4A2

timkalkus commented 6 days ago

I have the same problem with the newest version (2024.10.2). Can this issue be reopened?