Binar sensor withings in bed

hi, how come the binary_sensor.withings_in_bed of the withings integration has always been an unavailable state.
I remember, that before adding the integration, and therefore only with the yaml configuration, it worked perfectly.
always with integration withings, almost every 12 hours it asks me to do the authentication?

Itā€™s unavailable for me too.
I have a scanwatch and a sleep analyser.
Which product does this sensor get itā€™s data from?
Is there some permission Iā€™m missing?

Alright, got it working. Not sure exactly which step fixed it so hereā€™s all of them:

  1. Added the ā€œuse_webhook: trueā€ part to my configuration file (https://www.home-assistant.io/integrations/withings/)
  2. Added my nabu casa url to ā€œexternal urlā€
  3. Deleted the Withings integration
  4. Restarted Home Assistant
  5. Added the Withings integration again
  6. Made sure the withings webhook was enabled (Configuration->Home Assistant Cloud -> scroll to bottom)
  7. Restarted Home Assistant
  8. yay :tada:

Edit: Worth noting that the sensor will always be Unavailable after a Home Assistant restart, until it recives data (you get in or out of bed) :roll_eyes:

6 Likes

Iā€™m trying to do the same (get sleep to register in bed) but i tried everything you did and its still unavailable. everything else works fine.

what did you put for the callback URL in withings partner dash? The URL in the integration docs or the webhook URL in Nabu casa cloud webhook list?

EDIT: got it working, not sure what fixed it, i think maybe i didnt lay on the bed long enough when testing it the last couple of times.

1 Like

Iā€™ve got a long standing issue with the Withings integration, it activates perfectly fine but within a day it is asking me to reconfigure.

I think I will have to remove it as others have and reinstall it, to see if this helps. I wonder what has caused this as it was working well in the past.

I still have that issue from time to time. At least the webhook stuff seems to work fine even when the integration asks for reconfiguration, but itā€™s still a bit annoying.

There was also a version of Home Assistant where it happened constantly due to some broken features (on Withings side I think), which was disabled in a newer release.

You sir are a life saver!! Thank you!!!

Very useful, Thanks!
I had the same issue for 2 nights, tried all this stuff and still nothing worked. So I unplugged the sleep mat and set up the device again. The issue was with the mat and my wifi, not HA or Withings integration.
I was pulling my hair out till I read your post about it reporting ā€œUnavailableā€ till it receives data. I just went and laid down on it and it came right up and started reporting again!.
-Thanks!

This solved my problem, thanks!

Thank you. Iā€™ve followed your instructions, but still unable to get the bed sensor to work. It shows unavailable even if I lay in the bed for ~5 minutes. If Iā€™m seeing this under Webhooks:

ā€¦then it should be configured properly, right?

I notice that it will drop offline periodically. I assume thatā€™s a sleep state. Does your bed sensor maintain a connection continuously or only when its state changes?

The two things that helped me get the Bed Sensor to work after installing the integration was:

  1. Fix the yaml code - The one in Withings - Home Assistant is wrong.
    Change:
withings:
    use_webhook: true

to:

withings:
  use_webhook: true

(Donā€™t ask me why the one in the docs with the extra double space didnā€™t work)

  1. Go to ā€˜Settings > Network > Home Assistant URLā€™ Turn OFF ā€˜Use Home Assistant Cloudā€™ in ā€˜External URLā€™. Manually put itn your Nabu Casa URL:

RESTART HOME ASSISTANT after doing 1 and 2.

The bed sensor will always show us UNAVAILABLE/UNKNOWN when HA starts up for the first time. Just lay on your bed for 1 minute and it will (hopefully) show up for you.

Optional: If the above works you may need to change the sensitivity to high on the Withings app for better tracking.

3 Likes

I really hoped changing the double space would work but no dice. I tired the URL trick a few months back also with no luck. Still always shows as unavailable.

did you try both together?

Hi Eli,

I tried both changes without success. Any other ideas ?

Hi,

Sorry Iā€™m fresh out of ideas. Have you tried deleting everything Withings and start fresh?

Are you at least getting past the Withings setup on the Withings developers website?

I have the same issue. Everything appears to be working except for the in_bed sensor. My scale info is being communicated, just not the bed sensor.

What do you mean? I was able to get the integration working.

It would be great to get a step by step list of actions to follow. Can you help me with this ?

have you tried putting the bed sensor to high sensitivity in the Withings app?

I did but I start to give upā€¦

also, check to see if you have

my:

in your config. You need this if you donā€™t have:

default_config:

in there