Issue with multiple Hue hubs and light.hue_activate_scene service

Hi,

The service light.hue_activate_scene doesn’t work properly when multiple Hue bridges are in use. It always complains that more than one room is available.

WARNING (Thread-7) [phue] run_scene: More than 1 group found by name Room

So I expanded the debugging a bit and found out that the same notification comes when no rooms are found instead of more then one.

if len(groups) != 1:
            logger.warn("run_scene: More than 1 group found by name %s, %i",
                        group_name, len(groups))

When dumping the groups array is got the names of the groups of the second Hue hub and not the first Hub (or both).

Somehow a extra parameter would be needed to identify on which Hue hub the room is configured.

light 1:
  - platform: hue
    host: 192.168.2.192
    filename: phue_1.conf
    allow_unreachable: true
    allow_in_emulated_hue: false
    allow_hue_groups: true

light 2:
  - platform: hue
    host: 192.168.2.194
    filename: phue_2.conf
    allow_unreachable: true
    allow_in_emulated_hue: false
    allow_hue_groups: true

action:
    service: light.hue_activate_scene
    data_template:
->    hue_hub: 1 or light.id: 1
      group_name: 'Room'
      scene_name: '{{ trigger.to_state.state }}'

I am relatively new to HA so maybe I have missed something.

Thanks for your support.