home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.16k stars 29.84k forks source link

Withings in_bed sensor state set to unavailable after a HA restart #39003

Closed ptdalen closed 3 years ago

ptdalen commented 4 years ago

The problem

I just started noticing that when HA is restarted, that my in_bed sensors become marked as unavailable. The will not change to on or off again, until I actually get into/out of bed. Once they have been activated,they are good until the next restart. I have a few automations that require the sensors to be either on or off depending on the automation, and they fail as they are.

Environment

arch x86_64
dev false
docker false
hassio false
installation_type Home Assistant Core
os_name Linux
os_version 4.18.0-25-generic
python_version 3.7.3
timezone America/New_York
version 0.114.2
virtualenv true

Problem-relevant configuration.yaml

N/A

Additional information

Super easy to reproduce if you have the sensor. Verify the state is on or off. Restart HA. Wait until HA is fully started, the state of the sensor will be "unavailable", it will stay in that state until the sensor is activated again.

probot-home-assistant[bot] commented 4 years ago

Hey there @vangorra, mind taking a look at this issue as its been labeled with an integration (withings) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

ptdalen commented 4 years ago

I see that this is now the default behavior and was changed a few weeks ago. Is there anyway that there could be an option to set a default behavior. For me for example, I've never restarted HA while in bed, and this now means that several of my automation are broken every day (that I restart HA) unless I get in and out of bed after restarting HA. I can, and probably will for now, create a binary template sensor to handle this, but I suspect that many more people will have to work around this "unknown" than have it benefit them. Just a recommendation, thank you for your work and your time. Its greatly appreciated. It's only been recently that I've really been using my withings sleep sensors. Thanks

makingwilliam commented 4 years ago

Environment

Problem-relevant configuration.yaml

withings:
  client_id: !secret withings_client
  client_secret: !secret withings_secret
  use_webhook: true

Traceback/Error logs

2020-08-18 22:03:57 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'zeroconf', 'input_select', 'aarlo', 'shell_command', 'alarm_control_panel', 'input_boolean', 'ffmpeg', 'dyson', 'input_datetime', 'media_player', 'ring', 'cast', 'zone', 'met', 'withings', 'automation', 'camera', 'browser_mod', 'coronavirus', 'ifttt', 'default_config', 'telegram_bot', 'ssdp', 'input_text', 'samsungtv', 'spotcast', 'persistent_notification', 'logbook', 'script', 'map', 'switch', 'wake_on_lan', 'zwave', 'updater', 'ipp', 'spotify', 'history', 'climate', 'smartthings', 'input_number', 'group', 'scene', 'tts', 'upnp', 'hacs', 'sensor', 'system_health', 'google', 'nwsradar', 'sun', 'notify', 'namecheapdns', 'mobile_app'}
2020-08-18 22:04:43 INFO (MainThread) [homeassistant.setup] Setting up withings
2020-08-18 22:04:43 INFO (MainThread) [homeassistant.setup] Setup of domain withings took 0.0 seconds
2020-08-18 22:04:44 DEBUG (MainThread) [homeassistant.components.withings] Creating withings data manager for profile: William
2020-08-18 22:04:44 DEBUG (MainThread) [homeassistant.components.withings] Creating withings data manager for profile: William
2020-08-18 22:04:48 DEBUG (MainThread) [homeassistant.components.withings] Confirming William is authenticated to withings
2020-08-18 22:04:48 DEBUG (MainThread) [homeassistant.components.withings] Confirming William is authenticated to withings
2020-08-18 22:04:48 DEBUG (MainThread) [homeassistant.components.withings] Attempt 1 of 3
2020-08-18 22:04:48 INFO (MainThread) [homeassistant.components.withings] Updating all withings data
2020-08-18 22:04:48 INFO (MainThread) [homeassistant.components.withings] Updating all withings data
2020-08-18 22:04:48 DEBUG (MainThread) [homeassistant.components.withings] Updating withings measures
2020-08-18 22:04:48 DEBUG (MainThread) [homeassistant.components.withings] Updating withings measures
2020-08-18 22:04:49 DEBUG (MainThread) [homeassistant.components.withings] Updating withing sleep summary
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_weight_lbs_william, old_state=None, new_state=<state sensor.withings_weight_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Weight William @ 2020-08-18T22:04:50.652163-04:00>>
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_weight_lbs_william, old_state=None, new_state=<state sensor.withings_weight_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Weight William @ 2020-08-18T22:04:50.652163-04:00>>
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_weight_lbs_william, old_state=None, new_state=<state sensor.withings_weight_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Weight William @ 2020-08-18T22:04:50.652163-04:00>>
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_bone_mass_lbs_william, old_state=None, new_state=<state sensor.withings_bone_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Bone Mass William @ 2020-08-18T22:04:50.653399-04:00>>
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_bone_mass_lbs_william, old_state=None, new_state=<state sensor.withings_bone_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Bone Mass William @ 2020-08-18T22:04:50.653399-04:00>>
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_bone_mass_lbs_william, old_state=None, new_state=<state sensor.withings_bone_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Bone Mass William @ 2020-08-18T22:04:50.653399-04:00>>
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_free_mass_lbs_william, old_state=None, new_state=<state sensor.withings_fat_free_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Free Mass William @ 2020-08-18T22:04:50.654425-04:00>>
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_free_mass_lbs_william, old_state=None, new_state=<state sensor.withings_fat_free_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Free Mass William @ 2020-08-18T22:04:50.654425-04:00>>
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_free_mass_lbs_william, old_state=None, new_state=<state sensor.withings_fat_free_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Free Mass William @ 2020-08-18T22:04:50.654425-04:00>>
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_mass_lbs_william, old_state=None, new_state=<state sensor.withings_fat_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Mass William @ 2020-08-18T22:04:50.655421-04:00>>
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_mass_lbs_william, old_state=None, new_state=<state sensor.withings_fat_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Mass William @ 2020-08-18T22:04:50.655421-04:00>>
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_mass_lbs_william, old_state=None, new_state=<state sensor.withings_fat_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Mass William @ 2020-08-18T22:04:50.655421-04:00>>
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_muscle_mass_lbs_william, old_state=None, new_state=<state sensor.withings_muscle_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Muscle Mass William @ 2020-08-18T22:04:50.659316-04:00>>
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_muscle_mass_lbs_william, old_state=None, new_state=<state sensor.withings_muscle_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Muscle Mass William @ 2020-08-18T22:04:50.659316-04:00>>
2020-08-18 22:04:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_muscle_mass_lbs_william, old_state=None, new_state=<state sensor.withings_muscle_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Muscle Mass William @ 2020-08-18T22:04:50.659316-04:00>>
2020-08-18 22:04:52 DEBUG (MainThread) [homeassistant.components.withings] Finished fetching poll_data_update_coordinator data in 3.255 seconds
2020-08-18 22:04:52 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=withings>
2020-08-18 22:04:52 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.withings
2020-08-18 22:04:52 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.withings
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.withings_in_bed_william, old_state=None, new_state=<state binary_sensor.withings_in_bed_william=unavailable; unit_of_measurement=, friendly_name=In Bed, icon=mdi:bed-king, device_class=occupancy @ 2020-08-18T22:04:53.518245-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.withings_in_bed_william, old_state=None, new_state=<state binary_sensor.withings_in_bed_william=unavailable; unit_of_measurement=, friendly_name=In Bed, icon=mdi:bed-king, device_class=occupancy @ 2020-08-18T22:04:53.518245-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_weight_kg_william, old_state=None, new_state=<state sensor.withings_weight_kg_william=96.45; unit_of_measurement=kg, friendly_name=Withings weight_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.520651-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_weight_kg_william, old_state=None, new_state=<state sensor.withings_weight_kg_william=96.45; unit_of_measurement=kg, friendly_name=Withings weight_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.520651-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_weight_kg_william, old_state=None, new_state=<state sensor.withings_weight_kg_william=96.45; unit_of_measurement=kg, friendly_name=Withings weight_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.520651-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_mass_kg_william, old_state=None, new_state=<state sensor.withings_fat_mass_kg_william=35.38; unit_of_measurement=kg, friendly_name=Withings fat_mass_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.522222-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_mass_kg_william, old_state=None, new_state=<state sensor.withings_fat_mass_kg_william=35.38; unit_of_measurement=kg, friendly_name=Withings fat_mass_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.522222-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_mass_kg_william, old_state=None, new_state=<state sensor.withings_fat_mass_kg_william=35.38; unit_of_measurement=kg, friendly_name=Withings fat_mass_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.522222-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_free_mass_kg_william, old_state=None, new_state=<state sensor.withings_fat_free_mass_kg_william=61.07; unit_of_measurement=kg, friendly_name=Withings fat_free_mass_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.523693-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_free_mass_kg_william, old_state=None, new_state=<state sensor.withings_fat_free_mass_kg_william=61.07; unit_of_measurement=kg, friendly_name=Withings fat_free_mass_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.523693-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_free_mass_kg_william, old_state=None, new_state=<state sensor.withings_fat_free_mass_kg_william=61.07; unit_of_measurement=kg, friendly_name=Withings fat_free_mass_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.523693-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_muscle_mass_kg_william, old_state=None, new_state=<state sensor.withings_muscle_mass_kg_william=57.92; unit_of_measurement=kg, friendly_name=Withings muscle_mass_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.526857-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_muscle_mass_kg_william, old_state=None, new_state=<state sensor.withings_muscle_mass_kg_william=57.92; unit_of_measurement=kg, friendly_name=Withings muscle_mass_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.526857-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_muscle_mass_kg_william, old_state=None, new_state=<state sensor.withings_muscle_mass_kg_william=57.92; unit_of_measurement=kg, friendly_name=Withings muscle_mass_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.526857-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_bone_mass_kg_william, old_state=None, new_state=<state sensor.withings_bone_mass_kg_william=3.13; unit_of_measurement=kg, friendly_name=Withings bone_mass_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.528371-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_bone_mass_kg_william, old_state=None, new_state=<state sensor.withings_bone_mass_kg_william=3.13; unit_of_measurement=kg, friendly_name=Withings bone_mass_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.528371-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_bone_mass_kg_william, old_state=None, new_state=<state sensor.withings_bone_mass_kg_william=3.13; unit_of_measurement=kg, friendly_name=Withings bone_mass_kg William, icon=mdi:weight-kilogram @ 2020-08-18T22:04:53.528371-04:00>>
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings height_m William because it's disabled
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_temperature_c_william, old_state=None, new_state=<state sensor.withings_temperature_c_william=unknown; unit_of_measurement=°C, friendly_name=Withings temperature_c William, icon=mdi:thermometer @ 2020-08-18T22:04:53.531092-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_temperature_c_william, old_state=None, new_state=<state sensor.withings_temperature_c_william=unknown; unit_of_measurement=°C, friendly_name=Withings temperature_c William, icon=mdi:thermometer @ 2020-08-18T22:04:53.531092-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_temperature_c_william, old_state=None, new_state=<state sensor.withings_temperature_c_william=unknown; unit_of_measurement=°C, friendly_name=Withings temperature_c William, icon=mdi:thermometer @ 2020-08-18T22:04:53.531092-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_body_temperature_c_william, old_state=None, new_state=<state sensor.withings_body_temperature_c_william=unknown; unit_of_measurement=°C, friendly_name=Withings body_temperature_c William, icon=mdi:thermometer @ 2020-08-18T22:04:53.532998-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_body_temperature_c_william, old_state=None, new_state=<state sensor.withings_body_temperature_c_william=unknown; unit_of_measurement=°C, friendly_name=Withings body_temperature_c William, icon=mdi:thermometer @ 2020-08-18T22:04:53.532998-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_body_temperature_c_william, old_state=None, new_state=<state sensor.withings_body_temperature_c_william=unknown; unit_of_measurement=°C, friendly_name=Withings body_temperature_c William, icon=mdi:thermometer @ 2020-08-18T22:04:53.532998-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_skin_temperature_c_william, old_state=None, new_state=<state sensor.withings_skin_temperature_c_william=unknown; unit_of_measurement=°C, friendly_name=Withings skin_temperature_c William, icon=mdi:thermometer @ 2020-08-18T22:04:53.534535-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_skin_temperature_c_william, old_state=None, new_state=<state sensor.withings_skin_temperature_c_william=unknown; unit_of_measurement=°C, friendly_name=Withings skin_temperature_c William, icon=mdi:thermometer @ 2020-08-18T22:04:53.534535-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_skin_temperature_c_william, old_state=None, new_state=<state sensor.withings_skin_temperature_c_william=unknown; unit_of_measurement=°C, friendly_name=Withings skin_temperature_c William, icon=mdi:thermometer @ 2020-08-18T22:04:53.534535-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_ratio_pct_william, old_state=None, new_state=<state sensor.withings_fat_ratio_pct_william=36.68; unit_of_measurement=%, friendly_name=Withings fat_ratio_pct William @ 2020-08-18T22:04:53.536689-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_ratio_pct_william, old_state=None, new_state=<state sensor.withings_fat_ratio_pct_william=36.68; unit_of_measurement=%, friendly_name=Withings fat_ratio_pct William @ 2020-08-18T22:04:53.536689-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_ratio_pct_william, old_state=None, new_state=<state sensor.withings_fat_ratio_pct_william=36.68; unit_of_measurement=%, friendly_name=Withings fat_ratio_pct William @ 2020-08-18T22:04:53.536689-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_diastolic_blood_pressure_mmhg_william, old_state=None, new_state=<state sensor.withings_diastolic_blood_pressure_mmhg_william=119.0; unit_of_measurement=mmhg, friendly_name=Withings diastolic_blood_pressure_mmhg William @ 2020-08-18T22:04:53.540236-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_diastolic_blood_pressure_mmhg_william, old_state=None, new_state=<state sensor.withings_diastolic_blood_pressure_mmhg_william=119.0; unit_of_measurement=mmhg, friendly_name=Withings diastolic_blood_pressure_mmhg William @ 2020-08-18T22:04:53.540236-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_diastolic_blood_pressure_mmhg_william, old_state=None, new_state=<state sensor.withings_diastolic_blood_pressure_mmhg_william=119.0; unit_of_measurement=mmhg, friendly_name=Withings diastolic_blood_pressure_mmhg William @ 2020-08-18T22:04:53.540236-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_systolic_blood_pressure_mmhg_william, old_state=None, new_state=<state sensor.withings_systolic_blood_pressure_mmhg_william=184.0; unit_of_measurement=mmhg, friendly_name=Withings systolic_blood_pressure_mmhg William @ 2020-08-18T22:04:53.542174-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_systolic_blood_pressure_mmhg_william, old_state=None, new_state=<state sensor.withings_systolic_blood_pressure_mmhg_william=184.0; unit_of_measurement=mmhg, friendly_name=Withings systolic_blood_pressure_mmhg William @ 2020-08-18T22:04:53.542174-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_systolic_blood_pressure_mmhg_william, old_state=None, new_state=<state sensor.withings_systolic_blood_pressure_mmhg_william=184.0; unit_of_measurement=mmhg, friendly_name=Withings systolic_blood_pressure_mmhg William @ 2020-08-18T22:04:53.542174-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_heart_pulse_bpm_william, old_state=None, new_state=<state sensor.withings_heart_pulse_bpm_william=76.0; unit_of_measurement=bpm, friendly_name=Withings heart_pulse_bpm William, icon=mdi:heart-pulse @ 2020-08-18T22:04:53.544661-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_heart_pulse_bpm_william, old_state=None, new_state=<state sensor.withings_heart_pulse_bpm_william=76.0; unit_of_measurement=bpm, friendly_name=Withings heart_pulse_bpm William, icon=mdi:heart-pulse @ 2020-08-18T22:04:53.544661-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_heart_pulse_bpm_william, old_state=None, new_state=<state sensor.withings_heart_pulse_bpm_william=76.0; unit_of_measurement=bpm, friendly_name=Withings heart_pulse_bpm William, icon=mdi:heart-pulse @ 2020-08-18T22:04:53.544661-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_spo2_pct_william, old_state=None, new_state=<state sensor.withings_spo2_pct_william=unknown; unit_of_measurement=%, friendly_name=Withings spo2_pct William @ 2020-08-18T22:04:53.547985-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_spo2_pct_william, old_state=None, new_state=<state sensor.withings_spo2_pct_william=unknown; unit_of_measurement=%, friendly_name=Withings spo2_pct William @ 2020-08-18T22:04:53.547985-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_spo2_pct_william, old_state=None, new_state=<state sensor.withings_spo2_pct_william=unknown; unit_of_measurement=%, friendly_name=Withings spo2_pct William @ 2020-08-18T22:04:53.547985-04:00>>
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings hydration William because it's disabled
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_pulse_wave_velocity_william, old_state=None, new_state=<state sensor.withings_pulse_wave_velocity_william=unknown; unit_of_measurement=m/s, friendly_name=Withings pulse_wave_velocity William @ 2020-08-18T22:04:53.551165-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_pulse_wave_velocity_william, old_state=None, new_state=<state sensor.withings_pulse_wave_velocity_william=unknown; unit_of_measurement=m/s, friendly_name=Withings pulse_wave_velocity William @ 2020-08-18T22:04:53.551165-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_pulse_wave_velocity_william, old_state=None, new_state=<state sensor.withings_pulse_wave_velocity_william=unknown; unit_of_measurement=m/s, friendly_name=Withings pulse_wave_velocity William @ 2020-08-18T22:04:53.551165-04:00>>
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings sleep_breathing_disturbances_intensity William because it's disabled
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings sleep_deep_duration_seconds William because it's disabled
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings sleep_tosleep_duration_seconds William because it's disabled
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_sleep_towakeup_duration_seconds_william, old_state=None, new_state=<state sensor.withings_sleep_towakeup_duration_seconds_william=0.0; unit_of_measurement=s, friendly_name=Withings sleep_towakeup_duration_seconds William, icon=mdi:sleep-off @ 2020-08-18T22:04:53.555676-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_sleep_towakeup_duration_seconds_william, old_state=None, new_state=<state sensor.withings_sleep_towakeup_duration_seconds_william=0.0; unit_of_measurement=s, friendly_name=Withings sleep_towakeup_duration_seconds William, icon=mdi:sleep-off @ 2020-08-18T22:04:53.555676-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_sleep_towakeup_duration_seconds_william, old_state=None, new_state=<state sensor.withings_sleep_towakeup_duration_seconds_william=0.0; unit_of_measurement=s, friendly_name=Withings sleep_towakeup_duration_seconds William, icon=mdi:sleep-off @ 2020-08-18T22:04:53.555676-04:00>>
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings sleep_heart_rate_average_bpm William because it's disabled
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings sleep_heart_rate_max_bpm William because it's disabled
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings sleep_heart_rate_min_bpm William because it's disabled
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings sleep_light_duration_seconds William because it's disabled
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings sleep_rem_duration_seconds William because it's disabled
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings sleep_respiratory_average_bpm William because it's disabled
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings sleep_respiratory_max_bpm William because it's disabled
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings sleep_respiratory_min_bpm William because it's disabled
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings sleep_score William because it's disabled
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings sleep_snoring William because it's disabled
2020-08-18 22:04:53 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Withings sleep_snoring_eposode_count William because it's disabled
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_sleep_wakeup_count_william, old_state=None, new_state=<state sensor.withings_sleep_wakeup_count_william=6; unit_of_measurement=times, friendly_name=Withings sleep_wakeup_count William, icon=mdi:sleep-off @ 2020-08-18T22:04:53.566556-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_sleep_wakeup_count_william, old_state=None, new_state=<state sensor.withings_sleep_wakeup_count_william=6; unit_of_measurement=times, friendly_name=Withings sleep_wakeup_count William, icon=mdi:sleep-off @ 2020-08-18T22:04:53.566556-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_sleep_wakeup_count_william, old_state=None, new_state=<state sensor.withings_sleep_wakeup_count_william=6; unit_of_measurement=times, friendly_name=Withings sleep_wakeup_count William, icon=mdi:sleep-off @ 2020-08-18T22:04:53.566556-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_sleep_wakeup_duration_seconds_william, old_state=None, new_state=<state sensor.withings_sleep_wakeup_duration_seconds_william=6720.0; unit_of_measurement=s, friendly_name=Withings sleep_wakeup_duration_seconds William, icon=mdi:sleep-off @ 2020-08-18T22:04:53.568747-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_sleep_wakeup_duration_seconds_william, old_state=None, new_state=<state sensor.withings_sleep_wakeup_duration_seconds_william=6720.0; unit_of_measurement=s, friendly_name=Withings sleep_wakeup_duration_seconds William, icon=mdi:sleep-off @ 2020-08-18T22:04:53.568747-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_sleep_wakeup_duration_seconds_william, old_state=None, new_state=<state sensor.withings_sleep_wakeup_duration_seconds_william=6720.0; unit_of_measurement=s, friendly_name=Withings sleep_wakeup_duration_seconds William, icon=mdi:sleep-off @ 2020-08-18T22:04:53.568747-04:00>>
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.components.withings] Attempt 1 of 3
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.components.withings] Configuring withings webhook
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.components.withings] Configuring withings webhook
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.components.withings] Refreshing withings webhook configs
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.components.withings] Refreshing withings webhook configs
2020-08-18 22:04:53 DEBUG (MainThread) [homeassistant.components.withings] Attempt 1 of 3
2020-08-18 22:04:54 DEBUG (MainThread) [homeassistant.components.withings] Unsubscribing https://...redacted.../api/webhook/...redacted... for NotifyAppli.WEIGHT in 1.0 seconds
2020-08-18 22:05:00 DEBUG (MainThread) [homeassistant.components.withings] Unsubscribing https://...redacted.../api/webhook/...redacted... for NotifyAppli.CIRCULATORY in 1.0 seconds
2020-08-18 22:05:06 DEBUG (MainThread) [homeassistant.components.withings] Unsubscribing https://...redacted.../api/webhook/...redacted... for NotifyAppli.ACTIVITY in 1.0 seconds
2020-08-18 22:05:11 DEBUG (MainThread) [homeassistant.components.withings] Unsubscribing https://...redacted.../api/webhook/...redacted... for NotifyAppli.SLEEP in 1.0 seconds
2020-08-18 22:05:17 DEBUG (MainThread) [homeassistant.components.withings] Unsubscribing https://...redacted.../api/webhook/...redacted... for NotifyAppli.BED_IN in 1.0 seconds
2020-08-18 22:05:22 DEBUG (MainThread) [homeassistant.components.withings] Unsubscribing https://...redacted.../api/webhook/...redacted... for NotifyAppli.BED_OUT in 1.0 seconds
2020-08-18 22:05:28 DEBUG (MainThread) [homeassistant.components.withings] Subscribing https://...redacted.../api/webhook/...redacted... for NotifyAppli.WEIGHT in 5.0 seconds
2020-08-18 22:05:34 DEBUG (MainThread) [homeassistant.components.withings] Subscribing https://...redacted.../api/webhook/...redacted... for NotifyAppli.CIRCULATORY in 5.0 seconds
2020-08-18 22:05:40 DEBUG (MainThread) [homeassistant.components.withings] Subscribing https://...redacted.../api/webhook/...redacted... for NotifyAppli.SLEEP in 5.0 seconds
2020-08-18 22:05:46 DEBUG (MainThread) [homeassistant.components.withings] Subscribing https://...redacted.../api/webhook/...redacted... for NotifyAppli.ACTIVITY in 5.0 seconds
2020-08-18 22:05:52 DEBUG (MainThread) [homeassistant.components.withings] Subscribing https://...redacted.../api/webhook/...redacted... for NotifyAppli.BED_IN in 5.0 seconds
2020-08-18 22:05:58 DEBUG (MainThread) [homeassistant.components.withings] Subscribing https://...redacted.../api/webhook/...redacted... for NotifyAppli.BED_OUT in 5.0 seconds
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.components.withings] Finished fetching subscription_update_coordinator data in 70.458 seconds
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_weight_lbs_william, old_state=<state sensor.withings_weight_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Weight William @ 2020-08-18T22:04:50.652163-04:00>, new_state=<state sensor.withings_weight_lbs_william=212.64; unit_of_measurement=lbs, friendly_name=Withings Weight William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.472073-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_weight_lbs_william, old_state=<state sensor.withings_weight_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Weight William @ 2020-08-18T22:04:50.652163-04:00>, new_state=<state sensor.withings_weight_lbs_william=212.64; unit_of_measurement=lbs, friendly_name=Withings Weight William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.472073-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_weight_lbs_william, old_state=<state sensor.withings_weight_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Weight William @ 2020-08-18T22:04:50.652163-04:00>, new_state=<state sensor.withings_weight_lbs_william=212.64; unit_of_measurement=lbs, friendly_name=Withings Weight William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.472073-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_weight_lbs_william, old_state=<state sensor.withings_weight_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Weight William @ 2020-08-18T22:04:50.652163-04:00>, new_state=<state sensor.withings_weight_lbs_william=212.64; unit_of_measurement=lbs, friendly_name=Withings Weight William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.472073-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_weight_lbs_william, old_state=<state sensor.withings_weight_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Weight William @ 2020-08-18T22:04:50.652163-04:00>, new_state=<state sensor.withings_weight_lbs_william=212.64; unit_of_measurement=lbs, friendly_name=Withings Weight William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.472073-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_bone_mass_lbs_william, old_state=<state sensor.withings_bone_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Bone Mass William @ 2020-08-18T22:04:50.653399-04:00>, new_state=<state sensor.withings_bone_mass_lbs_william=6.9; unit_of_measurement=lbs, friendly_name=Withings Bone Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.473764-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_bone_mass_lbs_william, old_state=<state sensor.withings_bone_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Bone Mass William @ 2020-08-18T22:04:50.653399-04:00>, new_state=<state sensor.withings_bone_mass_lbs_william=6.9; unit_of_measurement=lbs, friendly_name=Withings Bone Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.473764-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_bone_mass_lbs_william, old_state=<state sensor.withings_bone_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Bone Mass William @ 2020-08-18T22:04:50.653399-04:00>, new_state=<state sensor.withings_bone_mass_lbs_william=6.9; unit_of_measurement=lbs, friendly_name=Withings Bone Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.473764-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_bone_mass_lbs_william, old_state=<state sensor.withings_bone_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Bone Mass William @ 2020-08-18T22:04:50.653399-04:00>, new_state=<state sensor.withings_bone_mass_lbs_william=6.9; unit_of_measurement=lbs, friendly_name=Withings Bone Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.473764-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_bone_mass_lbs_william, old_state=<state sensor.withings_bone_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Bone Mass William @ 2020-08-18T22:04:50.653399-04:00>, new_state=<state sensor.withings_bone_mass_lbs_william=6.9; unit_of_measurement=lbs, friendly_name=Withings Bone Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.473764-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_free_mass_lbs_william, old_state=<state sensor.withings_fat_free_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Free Mass William @ 2020-08-18T22:04:50.654425-04:00>, new_state=<state sensor.withings_fat_free_mass_lbs_william=134.64; unit_of_measurement=lbs, friendly_name=Withings Fat Free Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.475327-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_free_mass_lbs_william, old_state=<state sensor.withings_fat_free_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Free Mass William @ 2020-08-18T22:04:50.654425-04:00>, new_state=<state sensor.withings_fat_free_mass_lbs_william=134.64; unit_of_measurement=lbs, friendly_name=Withings Fat Free Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.475327-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_free_mass_lbs_william, old_state=<state sensor.withings_fat_free_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Free Mass William @ 2020-08-18T22:04:50.654425-04:00>, new_state=<state sensor.withings_fat_free_mass_lbs_william=134.64; unit_of_measurement=lbs, friendly_name=Withings Fat Free Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.475327-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_free_mass_lbs_william, old_state=<state sensor.withings_fat_free_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Free Mass William @ 2020-08-18T22:04:50.654425-04:00>, new_state=<state sensor.withings_fat_free_mass_lbs_william=134.64; unit_of_measurement=lbs, friendly_name=Withings Fat Free Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.475327-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_free_mass_lbs_william, old_state=<state sensor.withings_fat_free_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Free Mass William @ 2020-08-18T22:04:50.654425-04:00>, new_state=<state sensor.withings_fat_free_mass_lbs_william=134.64; unit_of_measurement=lbs, friendly_name=Withings Fat Free Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.475327-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_mass_lbs_william, old_state=<state sensor.withings_fat_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Mass William @ 2020-08-18T22:04:50.655421-04:00>, new_state=<state sensor.withings_fat_mass_lbs_william=78.0; unit_of_measurement=lbs, friendly_name=Withings Fat Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.479096-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_mass_lbs_william, old_state=<state sensor.withings_fat_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Mass William @ 2020-08-18T22:04:50.655421-04:00>, new_state=<state sensor.withings_fat_mass_lbs_william=78.0; unit_of_measurement=lbs, friendly_name=Withings Fat Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.479096-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_mass_lbs_william, old_state=<state sensor.withings_fat_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Mass William @ 2020-08-18T22:04:50.655421-04:00>, new_state=<state sensor.withings_fat_mass_lbs_william=78.0; unit_of_measurement=lbs, friendly_name=Withings Fat Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.479096-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_mass_lbs_william, old_state=<state sensor.withings_fat_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Mass William @ 2020-08-18T22:04:50.655421-04:00>, new_state=<state sensor.withings_fat_mass_lbs_william=78.0; unit_of_measurement=lbs, friendly_name=Withings Fat Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.479096-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_fat_mass_lbs_william, old_state=<state sensor.withings_fat_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Fat Mass William @ 2020-08-18T22:04:50.655421-04:00>, new_state=<state sensor.withings_fat_mass_lbs_william=78.0; unit_of_measurement=lbs, friendly_name=Withings Fat Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.479096-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_muscle_mass_lbs_william, old_state=<state sensor.withings_muscle_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Muscle Mass William @ 2020-08-18T22:04:50.659316-04:00>, new_state=<state sensor.withings_muscle_mass_lbs_william=127.69; unit_of_measurement=lbs, friendly_name=Withings Muscle Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.481213-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_muscle_mass_lbs_william, old_state=<state sensor.withings_muscle_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Muscle Mass William @ 2020-08-18T22:04:50.659316-04:00>, new_state=<state sensor.withings_muscle_mass_lbs_william=127.69; unit_of_measurement=lbs, friendly_name=Withings Muscle Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.481213-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_muscle_mass_lbs_william, old_state=<state sensor.withings_muscle_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Muscle Mass William @ 2020-08-18T22:04:50.659316-04:00>, new_state=<state sensor.withings_muscle_mass_lbs_william=127.69; unit_of_measurement=lbs, friendly_name=Withings Muscle Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.481213-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_muscle_mass_lbs_william, old_state=<state sensor.withings_muscle_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Muscle Mass William @ 2020-08-18T22:04:50.659316-04:00>, new_state=<state sensor.withings_muscle_mass_lbs_william=127.69; unit_of_measurement=lbs, friendly_name=Withings Muscle Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.481213-04:00>>
2020-08-18 22:06:04 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.withings_muscle_mass_lbs_william, old_state=<state sensor.withings_muscle_mass_lbs_william=unknown; unit_of_measurement=lbs, friendly_name=Withings Muscle Mass William @ 2020-08-18T22:04:50.659316-04:00>, new_state=<state sensor.withings_muscle_mass_lbs_william=127.69; unit_of_measurement=lbs, friendly_name=Withings Muscle Mass William, icon=mdi:weight-pound @ 2020-08-18T22:06:04.481213-04:00>>

Additional information

I too am experiencing some type of similar issue. I restarted my HA yesterday after some changes and the binary bed sensor became unavailable. I didn't know how or when it happened, but it eventually became active again. Today, I restarted HA after some updates and again the binary bed sensor has become unavailable. I tried getting in the bed, waiting 10 seconds and getting back out, but that did not cause it to begin working again. I also tried removing the integration and re-adding and authorizing; but the sensor is still unavailable.

makingwilliam commented 4 years ago

As an update, last night I closed my office door at 10:41 and got into bed, the In Bed sensor finally updated at 10:43 after lying in bed for 2 minutes. My problem is I have automations that occur after being in the bed for only 20 seconds. I tend to fall asleep quickly, so I do not want to be awoken right after I fall asleep, because I have to wait 2 minutes for my automations to begin. I certainly don't want to take a nap every time I restart HA either, just to get it working.

vangorra commented 4 years ago

Withings sometimes has a delay when they send the in bed data. Their documentation says it can take 10 minutes. Personally, I've noticed withings simply doesn't send the data for a free hours, then starts sending again. I don't have an explanation for the phenomenon but it happens.

vangorra commented 4 years ago

I've noticed, resubscribing to the webhooks helps sometimes. Resubscribing is really on Hass startup.

makingwilliam commented 4 years ago

@vangorra are you saying that with webhooks enabled, when I restart HA it should retrieve the current state of the In Bed sensor? I have tried multiple times now. If I restart HA in the morning after I wake up, the In Bed sensor remains unavailable for over 8 hours. It never updates itself even though, in the logs it shows the resubscribing process you are talking about. The only way the sensor shows up after I restart, is if I get into the bed for at least 2 minutes. Why isn't it able to pull an initial 'out of the bed' and be ready for the first update? Every time I get in or out of the bed after the sensor comes back online it only takes a few seconds to see me, so why two minutes the first time? And out of curiosity, how does restarting HA have anything to do with how often and when it updates. I just don't understand the correlation of works perfectly fine until I restart HA, then it doesn't work until I'm in the bed for two minutes. That seems pretty specific and not related to withings itself, but something that HA is failing to read and set properly. On a side note, I get instant notifications from IFTTT when I get in the bed, even though HA takes 2 minutes to recognize the same event after restarting. Lastly, if I get out of the bed before the two minutes, the sensor does not later become available.

ptdalen commented 4 years ago

The "issue" is that the current API has no way to know what state the bed sensor is after a restart. Previously the HA code would set the sensor to "off" after a restart. Someone submitted a PR/Issue, saying that this was not actually true, and that there was no way to determine the actual state after a restart. I believe the issue is that withing integration does not "pull" the bed state, instead it receives a "push" when the state changes. (I could be wrong, that's just what I think is happening). So if you are in bed or out of bed when HA restarts, HA does not get a "push" from withings, so it does not know the state. So the only 100% correct state after a restart is "unknown".
Personally, I think it's a bit restritive, but I understand. Although most people probably dont restart HA while in bed, if they did, with the previous code would set to "off". Which also would be wrong. I believe that there is no current way with the withings API to know 100% what the state of the bed sensor is after a restart.

makingwilliam commented 4 years ago

So, after some further testing, it does seem that the time it takes for the in_bed sensor to actually become available differs with every reboot. What I notice is that it does re-subscribe properly throughout the day, however during the subscribe process it does not ever get the current state of either in_bed or out_bed from withings. Withings does update all of my weight and blood pressure measurements when it initially subscribes after a reboot, as well as all of my sleep data, but it does not get any response from the in_bed or out_bed subscriptions. It seems to me that one or the other should always be active like NO/NC circuit, so why can it not detect the state of each one and then choose one over the other. Like in_bed = off, out_bed = on. At least, I am assuming that is the purpose of those two different topics, is to update somehow when you get in or get out of bed, maybe its the last time it was triggered or something, in which case which topic was most recently updated?

makingwilliam commented 4 years ago

Also, I'm very curious @vangorra. Is there a way to add an attribute to each entity that is created from withings data, that would include the actual date/time the measurement was taken? I use a scale, blood pressure monitor and sleep mat at the moment. I would like to setup some automations to remind me if I didn't weigh-in or check my blood pressure at required intervals. The problem is you can't really use .last_updated or .last_changed from the State Object, as it appears to be update with both a reboot and also during the re-subscribe process from what I can tell. Also, if the device is delayed in reporting for some reason, the date and time of the update would not be correct.

ChipWolf commented 3 years ago

Also experiencing this unavailable state, it doesn't look like it's ever left the unavailable state for me despite the device triggering an IFTTT which also integrates with Withings.

vangorra commented 3 years ago

I'm testing some fixes. One of which is where withings changed the refresh token parameters.

ErikSGross commented 3 years ago

Is there a way to have HA restore the previous state of the sensor after a restart? That way you avoid setting it to off if HA restarts while someone is actually in bed, and you also avoid the Unavailable state if Withings provides no data immediately.

FWIW, I have 2 sensors (one for my wife and one for me), and the "Goodnight" routine runs after it detects both of us in bed when the house is in Bedtime mode. It usually triggers within 15s of the last person in bed, but sometimes it takes up to a minute or two. Never had it not work or take longer than 2min, and I've had the sensors for about a month now.

Xlinx64 commented 3 years ago

@vangorra Are these fixes available somewhere?

1liminal1 commented 3 years ago

Did this ever get fixed? I'm having the same issue.

1liminal1 commented 3 years ago

Is this dead now?

moralmunky commented 3 years ago

I’ve worked around this by using an automation to set input Booleans to true or false when someone enters or leaves the bed. Then I base everything off the state of the input Booleans instead of directly off the sensors.

The input Boolean will retain there current value through a restart and then will get updated the next time the mat sends an update. You still run the risk of a mat state change during a restart, but I find for my situation it is very small risk.

With how the API works, I don’t know if this is the best fit product for tracking bed presence. I’ve come across other projects using inexpensive pressure mats and open/close z-wave sensors that might be more reliable.

amaisano commented 3 years ago

Are you using the Webhook/IFTTT integration? Or are you able to access this info from the HA integration?

There is another issue where the HA integration just does NOT provide any in-bed information, so I've had to use the IFTTT webhook.

Even with the webhook, I get so many false positives with this device, which has been challenging to debounce.

On Mon, Mar 8, 2021 at 10:36 AM moralmunky notifications@github.com wrote:

I’ve worked around this by using an automation to set an input Boolean to true or false when someone enters or leaves the bed. The. I base everything off the states of the input Booleans instead of directly off the sensors.

The input Boolean will retain there current value through a restart and then will get updated the next time the mat sends an update. You still run the risk of a mat state change during a restart, but I find for my situation it is very small risk.

With how the API works, I don’t know if this is the best fit product for tracking bed presence. I’ve come across other projects using inexpensive pressure mats and open/close z-wave sensors that might be more reliable.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/39003#issuecomment-792836945, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFICM4SI3QT6A6Z6MFTVYLTCTVIDANCNFSM4QDM7J4Q .

1liminal1 commented 3 years ago

Well I think we can all agree to never buy anything from Withings again LOL

I'm just getting this now;

image

It actually came in for 10 mins this morning, but I had a notification to reconfigure the integration. After doing that, it disappeared again.

:(

1liminal1 commented 3 years ago

This is so weird, so its working. As long as I don't reconfigure it.

image

Is anyone else seeing this kind of behavior?

amaisano commented 3 years ago

Does the bed sensor work again after doing a fresh install and not configuring?

1liminal1 commented 3 years ago

So far, yes. Delete, re-add, but don't reconfigure when it asks. Thats working for me anyway. Anyone else?

image

amaisano commented 3 years ago

Are you using the config file's "use_webhook: true" option or no? I read that was needed to get in bed sensor to work?

On Tue, Mar 9, 2021 at 5:55 PM 1liminal1 notifications@github.com wrote:

So far, yes. Delete, re-add, but don't reconfigure when it asks. Thats working for me anyway. Anyone else?

[image: image] https://user-images.githubusercontent.com/10505942/110549716-9c21e580-8186-11eb-983b-a8187bb3eacc.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/39003#issuecomment-794569781, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFICM2SIH2O4R2GVROIO7TTC2RPXANCNFSM4QDM7J4Q .

1liminal1 commented 3 years ago

Yes, im using the webhook. Make sure its set up as per the HASS Doco with the key, webhook ect.

ErikSGross commented 3 years ago

As of this morning, the integration for one of my 2 Sleep devices is indicating that I need to reconfigure it. When that has happened in the past, the "reconfigure" process was clicking the Reconfigure button, which goes to the Withings site to reauthorize the account. The in_bed sensor for that integration is now mysteriously working after being Unavailable for the last few days. The in_bed sensor for my other Sleep device is still showing Unavailable.

1liminal1 commented 3 years ago

Did you try and reconfigure it? Did they then both stop working?

ErikSGross commented 3 years ago

Did you try and reconfigure it? Did they then both stop working?

I'm just happy it's working again :-) The reconfiguration procedure has always been separate for the 2 devices - they're effectively listed in the HA UI as two separate integrations, the same way HomeKid or deCONZ devices are when you have more than one. So I don't expect that modifying/reconfiguring one will affect the other.

1liminal1 commented 3 years ago

Oh really? Ok, I only have one, so haven't see it with two.

I would delete and readd the one thats not available. And then bizarrely when you get the notification, after a few hours that you need to reconfigure it. That's when you know its working.

At least that's been how its working for me :(

mike240se commented 3 years ago

After upgrading to the latest HA version (2021.3.4) my withings is now all unavailable and its not prompting me to reconfigure and reauthorize. I cant find a way to trigger the reauthorization. I'm getting a 503 error though:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 151, in async_refresh self.data = await self._async_update_data() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 139, in _async_update_data return await self.update_method() File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 765, in async_get_all_data raise exception File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 734, in async_get_all_data return await self._do_retry(self._async_get_all_data) File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 654, in _do_retry raise exception File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 647, in _do_retry return await func() File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 771, in _async_get_all_data **await self.async_get_sleep_summary(), File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 837, in async_get_sleep_summary response = await self._hass.async_add_executor_job(get_sleep_summary) File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 814, in get_sleep_summary return self._api.sleep_get_summary( File "/usr/local/lib/python3.8/site-packages/withings_api/__init__.py", line 221, in sleep_get_summary self.request(path=self.PATH_V2_SLEEP, params=params) File "/usr/local/lib/python3.8/site-packages/withings_api/__init__.py", line 81, in request return response_body_or_raise( File "/usr/local/lib/python3.8/site-packages/withings_api/common.py", line 896, in response_body_or_raise raise InvalidParamsException(status=status) withings_api.common.InvalidParamsException: Error code 503

Any one any suggestions how to get this working? When it works this sensor is amazing because i can trigger so much from it.

EDIT: looks like its already being fixed! https://github.com/home-assistant/core/pull/47975

github-actions[bot] commented 3 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.