Withings sleep mat integration

Hi There

i manged to see data from my Withing Scale and my Sleep Mat.
but I am most interested to use "in_bed" to shut down the lights.

But this is not available in HA. This question was raised earlier; but no answer.
Any ideas?

Thanks!