Dasher Not authenticated issue

Hello,

because of some reason I need to install clean system and copied some config files etc.
Now I need to have my buttons up and running again.

I just use the simple son file I used around 1,5 years now.
But, with the new authentication system in place I am not sure how to log in successfully any more.

Dasher itself is seeing the pressed button but I get the message

[2018-09-24T16:36:53.243Z] Afri Cola -> Dash Button 10  pressed. Count: 1
[2018-09-24T16:36:53.551Z] Not authenticated
[2018-09-24T16:36:53.552Z] Unsuccessful status code

Here is the json code I use:

  {
    "name": "GBC -> Dash Button 2 ",
    "address": "50:f5:da:8b:d1:c4",
    "url": "http://192.168.1.66:8123/api/services/light/toggle",
    "interface": "eth0",
    "method": "POST",
    "headers": {"mainusername": "mainuserpassword"},
    "json": true,
    "protocol": "udp",
    "body": {"entity_id": "light.buro"}
  },

I am not quite sure about the api right now, maybe someone can help me out here.

Also i am seeing failed login attempts from its own ip in the dashboard, as they appear right after I pressed the button I guess its dasher and because something in the code is wring the error message is happening.

Thanks in advance.

Do you still have the api_password: set up in your configuration?

Hello,

yes, it should be as I used the same configuration.yaml file.
But will double check when home.

Or was there a change in the process I did not recognized ?

It was the API password, it was commented out.
Do not know why, but now all is working fine again.
Thanks for the tip !

1 Like