When integrating Withings with Home Assistant, it is not possible to download all previous data directly through the integration. The Withings integration in Home Assistant primarily allows for the synchronization of data moving forward, using the Withings API to pull current health metrics such as weight, heart rate, and sleep data into Home Assistant. Sorry :(
Great video. Everything worked well and I was able to install the integration. Unfortunately, all the sensors for my sleep mat are unkown with the in bed sensor unavailable. I see you linked to a forum post in your description where the person is having the exact same issues, but there are no responses. Any ideas?
Thanks for the comments. Sure do, Check community.home-assistant.io/t/struggling-to-get-withings-integrations-fully-operational/405553/2 Follow the instructions from Edwin_D 1. Make sure you have the option to use the webhook set to true in the Withings configuration 2. Make sure the remote URL for Home Assistant is specified in configuration.yaml. Specifying it in the Home Assistant UI didn’t work for me. 3. The above URL must match the start of the URL you provide in the Withings app as the return URL 4. Register the Withings integration in Home Assistant from the browser, also using the same URL as provided at 2. 5. Enable the Withings webhook in the Home Assistant cloud settings (it seems to be disabled by default). 6. Restart Home Assistant (not sure if needed, but I did) 7. Go lie in bed, the sensor will be unavailable until you do (and again at every reboot). I dont have a Withings Sleep Mat, but this seems to have been as a confirmed fix. Good luck.
i run this method for several month now but my HA integration is nur updating the Data from the API on a regualr bases. sometimes it takes days to update. any ideas how to fix this issue?
hi @simonhinger8176, interesting issue, I've not seen this. I checked the known issues shorturl.ac/7cdqw, and there is not reports of similar issues. Maybe try uninstalling and re-installing it.
Do you still need to do the stuff in studio code server? It now comes up with to enter the client id and client secret in the ui when you click on the integration
Hi @michaelthompson657, The official integration of Withings with Home Assistant was announced in the Home Assistant 2023.11 release. This release was published on November 1, 2023. As such I don't believe those steps in the video are now relevant.
@@smart_home_australia no problem, anytime! Yeah might be a good idea, because I noticed some of the menus setting up the developer account were different. Keep up the good work btw!
any updates on this? i followed your instructions, but got an error it's not supported anymore with Yaml. Read the comments below, removed everything, but when i try to sign in now, it says "invalid client id" in withings, what should i do?
Hi Timothy, I just removed the integration and retried to add the integration and I got the same error message. Looks like there is an issue with the integration and that this might be related to the Withings side. I'll do some investigation and see if there is a resolution for this and if I find anything I'll report back. Thanks for letting us all know.
OK I just retried this on a fresh installation, and it works fine. Therefore, I can only assume that it must be because of legacy yaml code. Make sure that you remove all yaml relating to the integration and retry. I'll search through the yaml code and see if I can find what is preventing it from working on an environment where it was previously installed.
OK found it. Its a little convoluted but works. You'll need your client ID and Secret that you created originally when you setup the Withings Developer account. If you dont have this anymore (I didnt :)) then go and create a new one based on the instructions from the withing integration page. Once you have this go to SETTINGS > DEVICES AND SERVICES > Press the three dots in the top right hand corner > Select APPLICATION CREDENTIALS. You'll see an entry with an integration of WITHINGS, use the three dots to the right to delete this. Now readd the integration, you'll be asked for a NAME, CLIENT ID and SECRET. I used name as my Withings name and the others that you copied from previous developer account of the new one you setup. This will then ask permission to join, press ALLOW. Thats should then add the integration. Good luck, let us know how you make out.
@@smart_home_australia Hi, I also installed it like you wrote here, and the issue that I have is that the "Withings in_bed" is not listed. I do have the sleep mat so it should be there, but it is not there. ANd to clarify, I cannot fint it under any of the enteties listed. I have tried to search all over to find out what to do, but I can not figure it out. Maybe you have an idea?
Nope, should be working fine. Comments on the official release "Withings received lots of love this release, thanks @joostlek! It is now easier to set up and now also works with the Home Assistant Cloud webhooks for push updates!" Might need you to delete the integration and re-add. The official integration page can be found www.home-assistant.io/integrations/withings. Hope that helps. SHA
Update as of HA version 2024.4.0 Configuring Withings using YAML is being removed. Your existing YAML configuration has been imported into the UI automatically. Remove the withings configuration from your configuration.yaml file and restart Home Assistant to fix this issue.
Hey mate, Trying to get my scale integrated its currently showing with about 17 entities but I have none of my previous history data. I can't for the life of me to figure out why or how to fix this issue. I have 4 years of data on my scale i need to be able to see but it is only showing what is regestered with the scale after the integration was installed. I have read something online about webhooks but I can't really find any specific information on this issue. Is this an issue you faced? Any help you could give me would be incredibly appreciated
Hi @ParkerGraysonNZB, the integration has moved on from when I did that video. The integration is now part of the approved integrations within HA. Check out www.home-assistant.io/integrations/withings/ and the section for available data.
Hi @BratenTobi, Yes you can. Once you have the integration up and running then go into Settings > Devices and Services, then Integrations from the top menu. Find your Withings integration and select. On the right hand side in the Inetgration entities, select the ADD ENTRY. This will move across to the Withings site where you can select a user. Select the alternate user you wish to report on and ALLOW access. You should now be returned to Home Assistant where you should see another device listed. These are the details of the alternate user. I hope that helps. If you have any other questions or topics that you'd like covered then please let me know. Good luck.
so where did you get the url you put in the register url part? and what is this other guy in the comments saying you dont have to mess with configuration yaml anymore? total home assistant noob here. sorry.
@loganabbott9150, welcome to the Home Assistant club !! OK so the integration for withings can be found www.home-assistant.io/integrations/withings/. You will still need a developer account that you can get from account.withings.com/partner/add_oauth2. Ocne you follow through the bouncing ball instructions it will provide you with the "Client ID" and "Consumer Secret" that you can put into your configuration.yaml file. Point to note is the URL Callback which is defined in the integration instructions. In my example I'm using NabuCasa so its simple as the HA instance can be seen outside of the local network (link can be found in SETTINGS>HOME ASSISTANT CLOUD. I hope that helps.
One final IMPORTANT thing, Make sure when you auth you’re connected to the same front end as your OAUTH URL. For instance if you used Nabu Casa as your URL (this is not the local IP address or the Home Assistant.local address) , you need to be logged into Lovelace using Nabu Casa so your source URL will match when you attempt to do the auth or it will fail.
Is it possible to download all previous data from withings to HA?
When integrating Withings with Home Assistant, it is not possible to download all previous data directly through the integration. The Withings integration in Home Assistant primarily allows for the synchronization of data moving forward, using the Withings API to pull current health metrics such as weight, heart rate, and sleep data into Home Assistant. Sorry :(
Fred - Thanks for shaering! Hoped you show the webhock part ;) Greetings from Germany
Next time! :)
@@smart_home_australia i didn't get it up and runing with webhooks :( so if you like to got more clicks go for it
Great video. Everything worked well and I was able to install the integration. Unfortunately, all the sensors for my sleep mat are unkown with the in bed sensor unavailable. I see you linked to a forum post in your description where the person is having the exact same issues, but there are no responses. Any ideas?
Thanks for the comments.
Sure do, Check community.home-assistant.io/t/struggling-to-get-withings-integrations-fully-operational/405553/2
Follow the instructions from Edwin_D
1. Make sure you have the option to use the webhook set to true in the Withings configuration
2. Make sure the remote URL for Home Assistant is specified in configuration.yaml. Specifying it in the Home Assistant UI didn’t work for me.
3. The above URL must match the start of the URL you provide in the Withings app as the return URL
4. Register the Withings integration in Home Assistant from the browser, also using the same URL as provided at 2.
5. Enable the Withings webhook in the Home Assistant cloud settings (it seems to be disabled by default).
6. Restart Home Assistant (not sure if needed, but I did)
7. Go lie in bed, the sensor will be unavailable until you do (and again at every reboot).
I dont have a Withings Sleep Mat, but this seems to have been as a confirmed fix. Good luck.
i run this method for several month now but my HA integration is nur updating the Data from the API on a regualr bases. sometimes it takes days to update. any ideas how to fix this issue?
hi @simonhinger8176, interesting issue, I've not seen this. I checked the known issues shorturl.ac/7cdqw, and there is not reports of similar issues. Maybe try uninstalling and re-installing it.
Do you still need to do the stuff in studio code server? It now comes up with to enter the client id and client secret in the ui when you click on the integration
Hi @michaelthompson657, The official integration of Withings with Home Assistant was announced in the Home Assistant 2023.11 release. This release was published on November 1, 2023. As such I don't believe those steps in the video are now relevant.
@@smart_home_australia thanks for confirming. I managed to set it up without the need for yaml, so everything was in the ui
Thanks for letting us know @michaelthompson657. Might be time for a new video :)
@@smart_home_australia no problem, anytime! Yeah might be a good idea, because I noticed some of the menus setting up the developer account were different. Keep up the good work btw!
any updates on this? i followed your instructions, but got an error it's not supported anymore with Yaml. Read the comments below, removed everything, but when i try to sign in now, it says "invalid client id" in withings, what should i do?
Hi Timothy, I just removed the integration and retried to add the integration and I got the same error message. Looks like there is an issue with the integration and that this might be related to the Withings side. I'll do some investigation and see if there is a resolution for this and if I find anything I'll report back.
Thanks for letting us all know.
@@smart_home_australia thanks for the quick response!
OK I just retried this on a fresh installation, and it works fine. Therefore, I can only assume that it must be because of legacy yaml code. Make sure that you remove all yaml relating to the integration and retry. I'll search through the yaml code and see if I can find what is preventing it from working on an environment where it was previously installed.
OK found it. Its a little convoluted but works. You'll need your client ID and Secret that you created originally when you setup the Withings Developer account. If you dont have this anymore (I didnt :)) then go and create a new one based on the instructions from the withing integration page.
Once you have this go to SETTINGS > DEVICES AND SERVICES > Press the three dots in the top right hand corner > Select APPLICATION CREDENTIALS.
You'll see an entry with an integration of WITHINGS, use the three dots to the right to delete this.
Now readd the integration, you'll be asked for a NAME, CLIENT ID and SECRET. I used name as my Withings name and the others that you copied from previous developer account of the new one you setup.
This will then ask permission to join, press ALLOW. Thats should then add the integration.
Good luck, let us know how you make out.
@@smart_home_australia Hi, I also installed it like you wrote here, and the issue that I have is that the "Withings in_bed" is not listed. I do have the sleep mat so it should be there, but it is not there. ANd to clarify, I cannot fint it under any of the enteties listed. I have tried to search all over to find out what to do, but I can not figure it out. Maybe you have an idea?
Hello Fred, is the Withings integration broken ? Can you confirm ?
Nope, should be working fine.
Comments on the official release
"Withings received lots of love this release, thanks @joostlek! It is now easier to set up and now also works with the Home Assistant Cloud webhooks for push updates!"
Might need you to delete the integration and re-add. The official integration page can be found www.home-assistant.io/integrations/withings.
Hope that helps.
SHA
Update as of HA version 2024.4.0
Configuring Withings using YAML is being removed.
Your existing YAML configuration has been imported into the UI automatically.
Remove the withings configuration from your configuration.yaml file and restart Home Assistant to fix this issue.
Thanks GREAT NEWS !! the guys at HA are stepping it up a gear.
Hey mate, Trying to get my scale integrated its currently showing with about 17 entities but I have none of my previous history data. I can't for the life of me to figure out why or how to fix this issue. I have 4 years of data on my scale i need to be able to see but it is only showing what is regestered with the scale after the integration was installed. I have read something online about webhooks but I can't really find any specific information on this issue. Is this an issue you faced? Any help you could give me would be incredibly appreciated
Hi @ParkerGraysonNZB, the integration has moved on from when I did that video. The integration is now part of the approved integrations within HA. Check out www.home-assistant.io/integrations/withings/ and the section for available data.
Hello Fred, how would I integrate multiple accounts?
Hi @BratenTobi, Yes you can. Once you have the integration up and running then go into Settings > Devices and Services, then Integrations from the top menu. Find your Withings integration and select. On the right hand side in the Inetgration entities, select the ADD ENTRY. This will move across to the Withings site where you can select a user. Select the alternate user you wish to report on and ALLOW access. You should now be returned to Home Assistant where you should see another device listed. These are the details of the alternate user.
I hope that helps. If you have any other questions or topics that you'd like covered then please let me know. Good luck.
@@smart_home_australia I can do this and they are added but no device or entities appear? Any ideas?
so where did you get the url you put in the register url part? and what is this other guy in the comments saying you dont have to mess with configuration yaml anymore? total home assistant noob here. sorry.
@loganabbott9150, welcome to the Home Assistant club !! OK so the integration for withings can be found www.home-assistant.io/integrations/withings/. You will still need a developer account that you can get from account.withings.com/partner/add_oauth2. Ocne you follow through the bouncing ball instructions it will provide you with the "Client ID" and "Consumer Secret" that you can put into your configuration.yaml file. Point to note is the URL Callback which is defined in the integration instructions. In my example I'm using NabuCasa so its simple as the HA instance can be seen outside of the local network (link can be found in SETTINGS>HOME ASSISTANT CLOUD.
I hope that helps.
One thing you should be aware of is that Withings now requires a registered URL so you cant just press next.
One final IMPORTANT thing, Make sure when you auth you’re connected to the same front end as your OAUTH URL. For instance if you used Nabu Casa as your URL (this is not the local IP address or the Home Assistant.local address) , you need to be logged into Lovelace using Nabu Casa so your source URL will match when you attempt to do the auth or it will fail.