Not so while ago I've made multisensor for my smart home powered by Home Assistant. Multisensor has sensors for temperature, humidity, illuminance and motion (PIR). Also multisensor has one relay for controlling the light or other device.
I've also made a video about this project:
https://youtu.be/u_DntqxutPk
Hope you'll like it. Cheers!