Since each room device names begin with a preffix that identifies the room (Qn - from Quarto - room in Portuguese - and n, for room number) I can use the feature described bellow to identify programmaticaly the room:
I must confess that I still have some difficult in abstracting the problems into RM features/capabilities. But I'm optmistic and I'm sure I'll get there!
By the way, is it possible to set a variable to a device attribute? I found this post ...
but I couldn't find the option "device attribute" here.