The impact of air quality, temperature and humidity to healthy sleep is well proofed.
But still there are no references between such environmental conditions and sleep phases / records in sleep as android.
Netatmo has several security and smart home device which are more or less well connectable via the Netatmo API (https://dev.netatmo.com/en-US/resources/technical/introduction).
Also the Netatmo weather station, which has sensors for air quality, temperature, humidity and loudness is very common in the EU.
I really would like to see a implementation of the environmental conditions as mentioned above inside the app. I know that temperature could also be measured by the device itself, but lots of people are charging there devices over night, so the device becomes warm.