Presence sensor with integral daylight sensor, mains powered