Is it possible to access the thing and location for an item in a rule?

This is what Groups can be used for.

Group Front_Room can contain two windows, a door, a thermostat, and three lights.

Figuring out which member you want to command is more the challenge …