jerrod-lankford / HAGearS3

Home Assistant user interface for the Samsung Gear S3/S2 (tizen os)
138 stars 44 forks source link

updated index.html with a label for username #7

Closed jacques24681 closed 5 years ago

jacques24681 commented 5 years ago

I've just added a username input field to the setup form so it will access HA with the new login.

jerrod-lankford commented 5 years ago

I dont see how this could work? You are just adding an input to the form but not updating the code that sends it to home assistant?

jacques24681 commented 5 years ago

After doing this, it worked. so I didn't change anything else. I'll check and update the code. I've checked with the previous code and it does not work if I test it on my gear.

b-rockx commented 5 years ago

I was looking into the code and really, i don't see a way to use a username and password with the home assistant api. But If I added to my config in HASS

` auth_providers:

This allowed me to use both the api with the new auth type.

jerrod-lankford commented 5 years ago

Right, api password is the old auth method. That should work for the time being. With the new method you need a username and password encoded and sent along with each request. If i ever have time to set up my environment again its the first thing i can add