UI and Binding

Since a handler is created for each thing if I am right,

  1. how do you know which one to send commands to ?
  2. If you created let say light in the sitemap and the system detects quite a number of
    lights on the network, how does sitemap accommodate this