Pi zero camera and PIR into HA

I am thinking of building one of these https://www.pi-shop.ch/modmypi-pi-pir-motion-sensor-camera-box-zero and getting the camera feed and the PIR sensor (ideally a LUX sensor too) as entities in HA.
Has anyone done something like that? Is it possible?
I am assuming the camera can be added via generic camera integration, not sure on the sensor.