I made the scene as shown below, intended to switch all my lights in a room. I have a mixture of Sonoff, Tuya and KaKu devices (controlled by RFLink). All entities can be controlled without problems from the HA dashboard and with “header toggle” I can switch on/off all entities without problem.
However when I make an automation like:
- id: '1641248426939'
name: All Off
entities:
switch.kastlichten_socket_1:
device_class: outlet
friendly_name: Kastlichten Socket 1
state: 'off'
switch.piano:
friendly_name: Piano
state: 'off'
light.1000fc883e:
restored: false
supported_features: 4
friendly_name: Tafellamp
supported_color_modes:
- brightness
state: 'off'
brightness: 2
light.10011071e5:
restored: false
supported_features: 4
friendly_name: Salontafel
supported_color_modes:
- brightness
state: 'off'
brightness: 254
light.g125_gold:
min_mireds: 153
max_mireds: 500
supported_color_modes:
- brightness
- color_temp
- onoff
color_mode: color_temp
brightness: 21
color_temp: 370
hs_color:
- 28.391
- 65.659
rgb_color:
- 255
- 166
- 87
xy_color:
- 0.526
- 0.387
friendly_name: G125 Gold
supported_features: 0
state: 'off'
light.g125_gold_2:
min_mireds: 153
max_mireds: 500
supported_color_modes:
- brightness
- color_temp
- onoff
color_mode: color_temp
brightness: 21
color_temp: 370
hs_color:
- 28.391
- 65.659
rgb_color:
- 255
- 166
- 87
xy_color:
- 0.526
- 0.387
friendly_name: G125 Gold 2
supported_features: 0
state: 'off'
icon: mdi:lightbulb-group-off
I get erratic behavior and sometimes it works other times some of the entities don’t switch to off or HAS status indicates “off” but lamp is still “on”.
Any suggestions? I would like to try to put a delay between the switching of the entities but cannot figure out how to do this.