After @Pander tried to get the Withings binding working, he opened a ticket over at github that he would have liked to have this as a proper openHAB2 thing:
Both me and @mgbowman had the idea to start with a fresh implementation, and @teichsta already gave his blessing, in a PM to me, back in April 2017 for a friendly reimplementation
So, without much ado, here is a thread where we can discuss requirements and implementation state
So, to kick the discussion off, here is the list of my devices I use regularly:
āSmart Body Analyzerā, the basic WiFi enabled scale
āBlood Pressure Monitorā
From those devices, I would like to fetch at least the four items they provide, weight, hearet rate, blood pressure. I am not so sure about the precision of the body fat measurement.
Here are the devices I have as shown in the Health Mate app:
Smart Body Analyzer
BPM
Aura + 2x Aura Sleep Sensors
2x Sleep (newest version) - I havenāt set these up yet, but will do it later today
The main reason I got the new version of the Sleep sensor was I have a ābedtimeā routine that I would like to disable / modify if the wife goes to bed earlier than me (or vice versa). It is marketed as having IFTTT integration, but Iām with everybody else and would prefer a native OH2 binding.
Iām going to poke at the Withings API as well as look at some other OSS projects that make use of the API.
One thing that sticks out in their documentation is their notification system but it looks like it requires a public accessible hostname on port 80 or 443
I think none of us really started on the code yet. I got a bit sidetracked reengineering my system with semantic tags for habot / google assistant support
But, if @mgbowman has not started something by mid of January or so, I would kick off with coding.
Iām using the same devices. I have Body+ or whatever called scale, it is almost the same as āSmart Body Analyzerā, but it doesnāt measure the CO2 level in the room, but it gives more on fat mass, etcā¦
However I only want from this binding to get all of my devices battery level. As I have seen in the API, it returns the battery level for each device (not exact level, but āgoodā, āokā, and ālowā or something like thisā¦).
Regarding the binding if some of you want to give it a fresh start, I have some suggestions:
OAuth2 instead the OAuth1
Implement something like the iCloud binding does.
Have a āBridgeā which will be the Withings Account, must be set-up manually. After adding the bridge/authentication was successful, it should add each device automatically to the Inbox. Then (to follow OH2 design) the Things should have its own channels which is correspondent to the Thing (scales should have weight, fat mass, etc channels).
Any news on this? Someone has some free resource to have a look at it? Sadly I donāt have enough time and I havenāt built any binding yet, so it would require much more time for meā¦
Actually, I started something and got as far as having a working OAuth setup. Now I āonlyā need to add the data synchronization. And need āonlyā to stop being distracted by one million other things
I might have a rough cut WIP pull request by the weekend or so, but first need to finish up the pushbullet action which is also collecting dust on my hard drive.
I also have various devices from Withings (scales, blood pressure meter, sleep sensor) and am therefore also interested in the development of a binding. I am happy to participate in the tests.
Nice to see some many Withings owners looking forward to support in OH2. If you would, please make a donation via BountySource to support the person making this work. The link is on the BountySource badge at the top of the GitHub issue. So far we have two backers.
I am just about to finish migrating my pushbullet binding to the new build system and openHAB2. Then would continue (or actually āreally startā) with the withings bindingā¦
Not really, I am still stuck on real-live events keeping me from coding for hobby purposesā¦
I want to have the pushbullet binding sending messages, and start with the withings one after that. But cannot give any estimate as to the time schedule
Do you have an issue on where you are stuck with Push Bullet? Perhaps I can help there. It greatly matter which minor version of Python you use with PB.
Actually, it is just finding time to clean up the code and write a proper README. Whenever I find a few free hours, the pull request should be ready to go.
And the binding is not written in python but properly in java. I migrated my binding from openHAB1, so it actually is all the issues with new architecture, new build system, yadda yadda yadda.