I think I uncovered a bug in the room app.
I have defined a simple Room app for my Group bathroom lights (defined in Groups and Scenes app) triggered by motion with delays set per mode. There are no other conditions or restrictions. This app worked perfectly well until I added a Basic rule triggered by a contact opening that speaks a message and then immediately turns off the same Group bathroom lights when the motion becomes inactive in the bathroom. So it shuts off the Group lights before the mode based time expiry in the Room app would expire and shut off the Group lights
The issue is that the Room app won’t trigger the Group bathroom lights back on motion active because it thinks the Group bathroom lights are still activated according to what I see in the logging. The Room app also still displays as Active in the app listing. The Room app doesn’t seem to be aware of state changes in the Group lights that are triggered by apps external to itself so it no longer turns on the lights based on motion. If I manually Turn off the lights from the Room app, the subsequent motion trigger works once until the Basic rule runs again and shuts off the Group lights.
Update: It may be that the motion won’t retrigger until the mode delay expires in the Room app as the Room app suddenly worked again (but only once again) after “some time”. I think a check of the actual state of the lights should be considered when the motion is triggered to resolve the issue.