[Release] Withings Integration (New Management)

https://wbsapi.withings.net/v2/user
with action "getdevice"

Could probably figure it out if you put in this debug code:

def prefDevices() {
	app.updateLabel("${userName}")
	state.devices = getWithingsDevices()
       logDebug("Device Info: ${state.devices}")

Then press Done in the app and provide the log output

Thanks Justin -- here's the log output.

app:7192023-03-24 01:48:46.177 PMdebugnotify?action=subscribe -- [callbackurl:http://cloud.hubitat.com/api/redacted/apps/719/notification/heartrate?access_token=redacted, appli:4]
app:7192023-03-24 01:48:46.020 PMdebugNotification Received: [access_token:redacted, type:heartrate]
app:7192023-03-24 01:48:45.102 PMdebugnotify?action=subscribe -- [callbackurl:http://cloud.hubitat.com/api/redacted/apps/719/notification/heartrate?access_token=redacted, appli:4]
app:7192023-03-24 01:48:44.933 PMdebugNotification Received: [access_token:redacted, type:weight]
app:7192023-03-24 01:48:44.019 PMdebugnotify?action=subscribe -- [callbackurl:http://cloud.hubitat.com/api/redacted/apps/719/notification/weight?access_token=redacted, appli:1]
app:7192023-03-24 01:48:43.443 PMdebugnotify?action=revoke -- [callbackurl:http://cloud.hubitat.com/api/redacted/apps/714/notification/heartrate?access_token=redacted, appli:4]
app:7192023-03-24 01:48:42.886 PMdebugnotify?action=revoke -- [callbackurl:http://cloud.hubitat.com/api/redacted/apps/714/notification/weight?access_token=redacted, appli:1]
app:7192023-03-24 01:48:42.252 PMdebugnotify?action=list -- null
app:7192023-03-24 01:48:41.966 PMdebugUpdated with settings: [bloodPressure:[redacted], scales:[redacted], userName:Mark]
app:7192023-03-24 01:48:37.767 PMdebugv2/user?action=getdevice -- null

Hey @JustinL, don't mean to be a nag, but wondering if you saw my above response from a couple weeks ago? No rush -- appreciate the help!

I did but haven’t had a chance to look into it yet. I’m having trouble with my hub and am working to figure that out. I might have to buy a second hub….

yuck, been there. Good luck

@JustinL

So how do I install your app?
I attempted to follow an instruction but for the REGISTERED URL I am getting this:

Do the install via hubitat package manager. If you're sure all parts are installed, go into the driver and make sure oauth is enabled. HPM should automatically enable it and make sure the full package is installed.

I am all set. Thank you very much.

1 Like

Is anyone else running into an issue with the Withings web site’s API link?:

https://account.withings.com/partner/add_oauth2

This link redirects me here:

http://developer.withings.com/dashboard/welcome

But all I get is:

And all options bring back to the same screen. Tried on Safari and Chrome on iPad and also on Edge and Chrome on PC - same results.

UPDATE: Looks like it started working again. All good!

2 Likes

Hmm. No, it's working correctly for me...

1 Like

Thanks! Yea, they must have had a glitch for a bit - it started working for me as well. :blush:

1 Like

You still having this issue? Think I got my hub issues sorted out now

yeah I sure am. I've deleted the app and devices, made sure I have the right versions of both, and then recreated from scratch. But my scale is still coming through as "Null" in the dropdown. It's truly not a big deal, because I can just change the name/label of the HE device. I reached out to Withings support and they claim it's my problem.

Is the scale itself on the device page? (the device is separate for the withings integration) Also does your withings integration screen look like this?

I also see my scale as null

it created the device as "name@gmail.com null"

the "name@gmail.com BPM Connect" was ok

1 Like

Okay, silly question.... is it possible to have both mine and my wife's separate accounts and devices linked? Particularly for the bed sensors? Got rid of our sleep numbers, and looking to put some automations back into using bed presence. But, would like to have our accounts separate so the that sleep stats still go to our respective other health accounts.

If so, would I have to set up both accounts with developer settings on Withings?

yep that's exactly what my app looks like.

But when I click through to an individual user, I get this (see how the scale is "null").

Have you tried deleting the scale from your account then readding it?

That's how I have it set up. If I remember correctly I had to set up developer accounts for both of us, but then it was just a matter of adding her account as an additional user in the Withings Integration app on Hubitat.

1 Like

tried to delete twice, no go

I deleted the account, will take 7 days to totally delete, I changed my email to the gmail email address recently and wonder if that broke the link to the dev account, so just gonna start from scratch

1 Like