Skip to content

Usage in Home-assistant #23

Open
Open

Description

@khzd

Hello
thanks for this new release of python-nokia, now again withings :)

I'm trying to integrate it with home-assistant and i'm meeting a challenge around the callback url
I tried with success the nokia command with http:/home-assistant.io as a call back, with redirect me to home-assistant.io:)
but this is not the target usage, need to back called from My home-assistant.
would appreciate any help?
do you know if someone is using this release with home-assistant ? found no trace oh github :(
cheers

Activity

  1. jmtatsch commented on Sep 23, 2018

    @jmtatsch

    Not sure if my custom component
    https://github.com/jmtatsch/Home-Assistant-Config/blob/master/custom_components/sensor/nokia_health.py
    survived the new update
    but it may give you some hints.

  2. brad commented on Sep 24, 2018

    @brad
    Member

    @khzd I don't know of anyone using it for home assistant but I know someone using it for SmartHomeNG https://github.com/smarthomeNG/plugins/tree/master/nokia_health
    A user named psilo99 managed to integrate the oauth2 process into the smarthomeng web interface if you want to come on to gitter to pick their brain about it.

  3. psilo909 commented on Sep 24, 2018

    @psilo909

    @jmtatsch from what i experienced you will definitely need to update your component. the whole auth process changed. not sure how that can be implemented in home assistant, but you will need a web interface to allow the user to run through that process. you will also need something to save the tokens to. in our case i used items, that are persisted to the file system or to a database.

    IMPORTANT: you dont need an internet URL as callback.. just an ordinary website in your LAN will be sufficiant.

    By the way: the new version is only in develop branch, but completely functional: https://github.com/smarthomeNG/plugins/tree/develop/nokia_health

    The callback (code parameter) is handled here: https://github.com/smarthomeNG/plugins/blob/develop/nokia_health/__init__.py#CL375

  4. khzd commented on Sep 27, 2018

    @khzd
    Author

    @jmtatsch
    sorry i didn't precise that it was your HA sensor that I was migrationg to 1.0.0.
    the Auth2 is implemented in HA and the configurator is asking to register in the correct url, and unfortunately I'm stick on the callback : what is the code that i need to configure in the withing site?

    NB:
    consumer key, client id ... are all ok, but the nokia site is responding that the callback is either
    missing (nokia-healh 0.4.0)
    or incorrect for nokia_health 1.0.0 all from @brad.
    cheers

  5. MattL0 commented on Jan 3, 2019

    @MattL0

    No links is working here :(

  6. vangorra commented on Sep 15, 2019

    @vangorra

    Home assistant now has a withings component built in that uses this api.

  7. bmxp commented on Dec 10, 2020

    @bmxp

    We get errors installing this lib due to outdated dependencies:

    ERROR: nokia 1.2.0 has requirement arrow<0.13,>=0.12, but you'll have arrow 0.13.1 which is incompatible.
    ERROR: nokia 1.2.0 has requirement cherrypy<17.4,>=17.3, but you'll have cherrypy 18.6.0 which is incompatible.
    ERROR: nokia 1.2.0 has requirement requests<2.20,>=2.19, but you'll have requests 2.25.0 which is incompatible.
    

    @brad could you probably update the dependencies?
    @vangorra do you have similar problems in HomeAssistant?

    @psilo909 could you check if we can provide a PR?

  8. vangorra commented on Dec 20, 2020

    @vangorra

    The withing api used by home assistant does but have this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions