Node Red flow for Motion activated lights

In my house, I have two motion sensors, one at the bottom of the stairs, and one at the top. These sensors are motion only, and don’t report on LUX levels.

I wanted an automation that depending on the time of the day would turn them on to a preset brightness level, wait until there was no motion then turn them off.