Toggling a group of Sengled (zha) LED bulbs

Hi

As the subject says, I’ve added a bunch of these to a group.

I’ve tried sending homeassistant.turn_on but it fails with the following warning in the logs:

2018-10-20 22:50:47 WARNING (MainThread) [homeassistant.core] Unable to find service zha/turn_on

so it looks like it’s trying to delegate the command to the type of service for each component in the group but no service exists for zha as the log indicates. Is it possible to indicate to use light.turn_on instead of zha.turn_on ?

Thanks
Peter

would be easier to help if you posted the code you are using, or are you using the Call Service panel?

I’m using the Developer Service panel:

I’ve also tried a nested group as someone here suggested but no luck, no magical switch appears:

living_room_lights:
  - zha.zha_sengled_e11g13_031c6b5a
  - zha.zha_sengled_e11g13_03182cde

living_room:
  - group.living_room_lights
living_room_lights:
  - zha.zha_sengled_e11g13_031c6b5a
  - zha.zha_sengled_e11g13_03182cde

should be

living_room_lights:
  - light.zha_sengled_e11g13_031c6b5a
  - light.zha_sengled_e11g13_03182cde

zha.[item] is the zigbee device that underlies the light.[item]. That should fix it.

1 Like

Excellent thank you @code-in-progress - that put me on the right track. The Entity IDs were “wrong” - I used the ZHA devices’ - when I replaced with the actual light’s IDs it worked:

living_room_lights:
  - light.sengled_e11g13_03182cde_1
  - light.sengled_e11g13_031c6b5a_1
1 Like

Yeah, I got mixed up with that one too. :slight_smile: Glad to have helped.