Can not get Amcrest IP2M-841B to work

my current configuration is:

ffmpeg:

camera:
  - platform: amcrest

amcrest:
  - host: !secret am2_host
    name: "Garage Camera"
    username: !secret am2_username
    password: !secret am2_password
    port: 1028
    stream_source: snapshot

Log:

2018-01-25 15:52:13 ERROR (MainThread) [homeassistant.setup] Error during setup of component amcrest
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/setup.py", line 199, in _async_setup_component
    component.setup, hass, processed_config)
  File "/usr/lib/python3.6/asyncio/futures.py", line 332, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
    future.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/amcrest.py", line 99, in setup
    device.get(CONF_PASSWORD)).camera
  File "/usr/lib/python3.6/site-packages/amcrest/__init__.py", line 32, in __init__
    timeout_protocol=timeout_protocol
  File "/usr/lib/python3.6/site-packages/amcrest/http.py", line 67, in __init__
    self._token = self._generate_token()
  File "/usr/lib/python3.6/site-packages/amcrest/http.py", line 82, in _generate_token
    req.raise_for_status()
  File "/usr/lib/python3.6/site-packages/requests/models.py", line 935, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: http://192.168.0.28:1028/cgi-bin/magicBox.cgi?action=getMachineName
2018-01-25 15:52:14 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of camera.amcrest. Setup failed for dependencies: amcrest
2018-01-25 15:52:14 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform camera.amcrest: Could not setup all dependencies.
2018-01-25 15:53:01 WARNING (SyncWorker_10) [homeassistant.components.zwave] zwave not ready after 30 seconds, continuing anyway

My host, user, password and port are correct and will open the camera web page with video. Also works with those setting on Synology disk station.