JamesMcCarthy79 / Home-Assistant-Config

Home Assistant Configuration & Documentation for my Smart House.
1.33k stars 159 forks source link

Install Fitbit Component #133

Closed JamesMcCarthy79 closed 4 years ago

JamesMcCarthy79 commented 5 years ago

Need to update to HA 0.94.0 in order for this to work a little bit of work for me to be able to update to this version just yet.

JamesMcCarthy79 commented 5 years ago

This will not auth me at all anyone who has been able to enable this component I'd love some help.

SPCulhane commented 5 years ago

I had a hell of time to get this to authenticate too. Take a look at this post, it should help you

https://github.com/home-assistant/home-assistant/issues/19189#issuecomment-494970985

JamesMcCarthy79 commented 5 years ago

I had a hell of time to get this to authenticate too. Take a look at this post, it should help you

home-assistant/home-assistant#19189 (comment)

The part I don't understand is the callback url the component points me back to my local http//:[ipaddress] can I change this to my https redirect as the fitbit dev will only allow you to use https as callback address?

JamesMcCarthy79 commented 5 years ago

I am getting this error

image

SPCulhane commented 5 years ago

You'll have to use https for the callback. Fitbit made a change to only use https instead of http and that screwed everything up. I've never seen that error before. Normally I was getting a 500 error. You may have to change the http: component within HA to use https for your local base:

http: server_port: 8123 base_url: https://hassio.something.com

choclo commented 5 years ago

Hi @JamesMcCarthy79 were you able to fix this? I already tried using https on the base_url but this is still using http for the callback to fitbit and getting the same issue as you reported (screenshot).

JamesMcCarthy79 commented 5 years ago

Hi @choclo I have not managed to fix this yet however I haven't got back to it since June work has been hectic I may have another crack at this tonight. As @SPCulhane suggests the key is in the http/https auth I haven't tried changing my base URL yet as I normally do everything locally I need to see how much I will break in order for this to work.

Aygotori commented 5 years ago

any news about a fix?

JamesMcCarthy79 commented 4 years ago

I have resolved this issue