-
homebridge-occupancy-delay
Occupancy sensor linked to one or more switches with a built-in delay not-unoccupied delay for Homebridge
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Not too sure if your idea will work, my aqara sensors switch on with detection and then remain on - however, when using Homebridge we have a plugin and configuration https://www.npmjs.com/package/homebridge-occupancy-delay (see wiring the automation section) - it works well for me, I use 2 sensors in an area - you didnt mention what system you use, but I think you could manipulate into a automation in nodeRed. Hope that helps.