OK, I think I have to start at the beginning, here are some information about my system:
- Raspberry PI 4
- Home Assistant OS 7.0
- core-2021.12.7
I have 2 IKEA Tradfri wireless control outlets.
The first one is connected to the original IKEA Tradfri gateway, so I am using the IKEA Tradfri integration.
The second one is directly connected to my Home Assistant system, using a ConBee II USB stick controlled by the ZHA integration.
Both wireless control outlets are used to turn simple lamps on and off. I’d like to create a Light Group to control this two lamps together with other smart lights (e.g. this). To do so, I need to create Light Switch entities for both wireless control outlets to simulate the light behaviour.
This is from my configuration.ymal:
light:
# switch.sw001 is provided by the IKEA gateway/integration
- platform: switch
name: ls001
entity_id: switch.sw001
# switch.sw002 is provided by the ZHA integration
- platform: switch
name: ls002
entity_id: switch.sw002
# group light switch 1 and 2 together
- platform: group
name: room001
entities:
- light.ls001
- light.ls002
# - ...
light.ls001
works correctly but light.ls002
is not available although switch.sw002
also works.
Before I bought the ConBee II stick, switch.sw002
was also connected to the IKEA gateway. In that setup light.ls002
worked correctly, too.
I hope that explains my problem a little better.
@francisp: I already use those blue prints to control my Tradfri remote controls and know about zha_events. I have looked through the posts you are referring to, but I am not sure how to use this for a Light Switch.