openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.69k forks source link

Cleanup withings binding doc in wiki #4785

Open staehler opened 7 years ago

staehler commented 7 years ago

The wiki doc is not clear, how to configure openhab for more persons using the scale. I have more than one person, which uses my scale at home, therefore I have more profiles. How can I get there values (weight, etc.)? What is the accountID, is it the withings profile of each person? How do the items need to look like to differentiate the scale users? Or is the binding not able to handle multiple persons? Does every person need to proceed the oAuth procedure, as the openhab.cfg could obviously look like: withings-oauth:thomas.token=74c0e77021ef5be1ec8dcb4dd88c1xckusadwe92f9541c86799dcbbfcb8fc8b236 withings-oauth:thomas.tokensecret=25f1098209xns511711b3287288f90740ff45532cef91658c5043db0b0e0c851c ... withings-oauth:peter.token=74c0e77021ef5be1ec8dcb4dd88c1xckusadwe92f9541c86799dcbbfcb8fc8b236 withings-oauth:peter.tokensecret=25f1098209xns511711b3287288f90740ff45532cef91658c5043db0b0e0c851c How are the items to be defined to differentiate the persons. This obviously cannot work:

Number TomWeight            "Gewicht  [%.1f kg]"        { withings = "weight" }
Number BettyWeight      "Gewicht  [%.1f kg]"        { withings = "weight" }

If I know the HowTo I'ld enjoy updating the wiki. Hope anybody can clarify.

staehler commented 7 years ago

Is there a way to configure more than one person per scale? My english obviously isn't good enough to understand what multiple accounts means. Regarding to the items definition, I cannot imagine how to configure different persons. I just see that multiple accounts belong to the oAuth section in the openhab.cfg.

9037568 commented 7 years ago

A quick and dirty reading of the code appears to indicate that an item binding has two variations: 1) measure 2) account and measure

eg 1) Number BettyWeight "Gewicht [%.1f kg]" { withings = "weight" } 2) Number BettyWeight "Gewicht [%.1f kg]" { withings = "betty:weight" }

staehler commented 7 years ago

Great, I going to try. If it works, I'll update the wiki.

Thanks for your code review!

Am 18.11.2016 um 15:40 schrieb Chris Carman:

A quick and dirty reading of the code appears to indicate that an item binding has two variations: 1) measure 2) account and measure

eg 1) Number BettyWeight "Gewicht [%.1f kg]" { withings = "weight" } 2) Number BettyWeight "Gewicht [%.1f kg]" { withings = "betty:weight" }

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/openhab/openhab/issues/4785#issuecomment-261547212, or mute the thread https://github.com/notifications/unsubscribe-auth/AF997qQoG4ueLj43LrIm5Wr_KxoldD7Tks5q_bjtgaJpZM4K0LPK.

Viele Grüße,

Michael Pophal