Code example for listing devices of a room

I'm involved in a project and am writing tests - does anyone have an example of an app routine that lets you see only specific devices assigned to a room? I see that Room Lighting can do it, so it should be possible but I've never ascertained how...
thanks in advance!

1 Like