hello,
thanks to google translate, I have seen your message, and can give a partial answer :
I have the same project, I would like to switch on a light on movement detection, and only by night.
I have made some tests with a photoresistance and a phototransistor, but not very conclusive, the real limit between night and day provides a too low level on linear sensors.
I have been using the original temperature management portion of the Hapcan firmware, just using an analog input instead of One wire input.
I had in project to redesign the input board and add a logarithmic sensor, like SFH5711 from Osram.
regarding the movement detection, I will use the Bosch ISC-BDL2-WP12, which is a IR +microwave detector.
It has been more reliable than a pet friendly Honeywell which had detected a bat in my garage)
it is not designed for outdoor, but it will be installed outdoor under a roof, and I will apply some tropicalization varnish on the internal board.
you can look here:
https://www.pluscom.pl/en/movement-detectors-c274.html
the OD850 is an outdoor one, but at higher price.
if someone has a better idea with an outdoor sensor, available and at low cost, I'm interested...
the board will provide a 12V supply from the 24V input to power the detector.
let me know if you are interested.
the board will look like this (it has 4 button inputs and one open collector output):