Hello,
I am trying to switch gradually between two scenes several times, as a visual signal to take out the bins. Different coloured lights will pulse according to the day, at certain times.
Scene transition, configured via UI, does not work correctly out of the box in my case. Instead of smoothly transitioning, the lights flick rapidly between the scenes.
The scenes control two Athom 15w bulbs pre-flashed with Tasmota and running Tasmota 11 (code copied from scenes.yaml, configured in UI):
- id: '1649346452151'
name: Lounge Lights - Bins Wed1
entities:
light.islandnorth:
min_mireds: 153
max_mireds: 500
effect_list:
- None
- Wake up
- Cycle up
- Cycle down
- Random
supported_color_modes:
- color_temp
- hs
color_mode: hs
brightness: 71
hs_color:
- 60
- 100
rgb_color:
- 255
- 255
- 0
xy_color:
- 0.444
- 0.517
effect: None
friendly_name: Island North
supported_features: 36
state: 'on'
light.island_south:
min_mireds: 153
max_mireds: 500
effect_list:
- None
- Wake up
- Cycle up
- Cycle down
- Random
supported_color_modes:
- color_temp
- hs
color_mode: hs
brightness: 69
hs_color:
- 30
- 100
rgb_color:
- 255
- 127
- 0
xy_color:
- 0.612
- 0.374
effect: None
friendly_name: Island South
supported_features: 36
state: 'on'
icon: mdi:delete
- id: '1649346504459'
name: Lounge Lights - Bins Wed2
entities:
light.islandnorth:
min_mireds: 153
max_mireds: 500
effect_list:
- None
- Wake up
- Cycle up
- Cycle down
- Random
supported_color_modes:
- color_temp
- hs
color_mode: hs
brightness: 56
hs_color:
- 15
- 100
rgb_color:
- 255
- 63
- 0
xy_color:
- 0.677
- 0.319
effect: None
friendly_name: Island North
supported_features: 36
state: 'on'
light.island_south:
min_mireds: 153
max_mireds: 500
effect_list:
- None
- Wake up
- Cycle up
- Cycle down
- Random
supported_color_modes:
- color_temp
- hs
color_mode: hs
brightness: 66
hs_color:
- 60
- 100
rgb_color:
- 255
- 255
- 0
xy_color:
- 0.444
- 0.517
effect: None
friendly_name: Island South
supported_features: 36
state: 'on'
icon: mdi:delete
The following script (also UI configured) calls the two scenes on repeat:
sequence:
- repeat:
count: '25'
sequence:
- service: scene.turn_on
data:
transition: 300
target:
entity_id: scene.lounge_lights_bins_wed
- service: scene.turn_on
data:
transition: 300
target:
entity_id: scene.lounge_lights_bins_wed2
mode: single
icon: mdi:delete
alias: Bins Wed
The result is a flickery mess.
As you can see, the transition time is 300 seconds, the max allowed in the UI field. I started at 3s, but ended up setting it this high to test if it made a difference to the flickering (it did seem to, but only by < 1 second).
Its perhaps worth noting that these bulbs do support transition between states when used directly on the entities via light.turn_on.
I’ve checked out the following posts, but they do not address the same use case (or are orphaned):
There’s nothing in my logs related to this script except an “Alexa: THROTTLING_EXCEPTION” which I assume is because of the high number of repeat executions.
Any ideas if this is a bug or a config issue? If confirmed as the former, I’ll post an issue.
Also, I’m still on 2022.3.7.
PS. This is my first topic post. HA user since 18th August 2021, enjoying the wild ride…