I found this
And installed the pythons script and then wrote this automation. For me it will solve my problem. Who knows might solve other problems I did not even know I needed to solve.
- alias: Fix Withings after Restart
initial_state: 'on'
trigger:
- platform: homeassistant
event: start
action:
- service: python_script.set_state
data_template:
entity_id: binary_sensor.withings_in_bed_tracy
state: 'off'
- service: python_script.set_state
data_template:
entity_id: binary_sensor.withings_in_bed_paul
state: 'off'