Access by api_password with error

Dear, I am trying to use the module:
MMM-HomeAssistant ( Link Module)

however, I get error msg all the time

Login attempt or request with invalid authentication from 192.168.1.159

Updating ping binary_sensor took longer than the scheduled update interval 0:00:04
2:03 helpers/entity_platform.py (WARNING) - a mensagem ocorreu pela primeira às 2:02 e apareceu 2 vezes

I already added the following entries in my configuration.yaml. But it does not solve.

 auth_providers:
      - type: legacy_api_password
        api_password: "********"
      - type: trusted_networks
        trusted_networks:
          - 127.0.0.1
          - 192.168.1.0/24

I do not know what else to do. I would like to use this module in my smartmirror.

you need to add the following

auth_providers:
      - type: legacy_api_password
        api_password: "********"
      - type: trusted_networks
        trusted_networks:
          - 127.0.0.1
          - 192.168.1.0/24
        trusted_users:
          192.168.1.0/24 user1_id
        allow_bypass_logon: true

if you only have one user you can forget the trusted_users:

auth_providers:
      - type: legacy_api_password
        api_password: "********"
      - type: trusted_networks
        trusted_networks:
          - 127.0.0.1
          - 192.168.1.0/24
        allow_bypass_logon: true
      - type: homeassistant

With this setting I lose access to HA, web page does not load.

Use the first one.
Add the user_id
The number can be found in configuration/users
Is a long number user id

I use the first one but I do also have

  • type: homeassistant
    At the end