There are several ways to store the physical location of IoT devices. In the case of static gadgets (smart home appliances, for example), we can leverage the AWS IoT Thing Groups.
Thing Group represents a logical subset of the fleet. We use Thing Groups in various scenarios, one of which is to describe the physical location of assets.
We can send a no-one-home
MQTT message to all devices in the hall
group to switch them into the desired state.
That is a convenient but less-known design.
How do you think you could leverage the AWS IoT Thing Groups?