Motion sensor and too high lux after light goes from on to off

I'm sorry, I forgot to mention that I'm using it with Home Assistant. The nodes are from "node-red-contrib-home-assistant-websocket".