Espresense groupe

Hi i wan to create an automation like if some of the device is in a specific room do something.

but I’m looking for the best pratice to “group” my espresense. I try i simple group but the state stay unknown

Thanks