#Scene not applying to device if triggered by Automation, works if manually done

1 messages · Page 1 of 1 (latest)

icy wraith
#

I have a scene (set color value) to a device (kitchen cabinets) and this happens at 930pm every night.
After an update or two ago it stopped working.

Traces shows it executing
Scene shows it executing
Device doesn't show anything in logs
I can manually trigger the automation or scene and it works correctly

I have 3 other automation/scene pairs for this same light, they all work.

What is going on?
Thanks!

#
id: "1722114305823"
name: Color - NightLight
entities:
  light.shellyrgbw2_48e72966328b:
    effect_list:
      - "Off"
      - Meteor Shower
      - Gradual Change
      - Flash
    supported_color_modes:
      - rgbw
    effect: "Off"
    color_mode: rgbw
    brightness: 3
    hs_color:
      - 17.953
      - 100
    rgb_color:
      - 127
      - 38
      - 0
    xy_color:
      - 0.659
      - 0.335
    rgbw_color:
      - 127
      - 38
      - 0
      - 0
    friendly_name: Kitchen Cabinet
    supported_features: 36
    state: "on"
  light.shellyrgbw2_48e72965c000:
    effect_list:
      - "Off"
      - Meteor Shower
      - Gradual Change
      - Flash
    supported_color_modes:
      - rgbw
    effect: null
    color_mode: null
    brightness: null
    hs_color: null
    rgb_color: null
    xy_color: null
    rgbw_color: null
    friendly_name: mBath Floor Light
    supported_features: 36
    state: "off"
icon: mdi:format-color-fill
metadata: {}
#
alias: Color - Bedtime
description: ""
mode: single
triggers:
  - at: "21:30:00"
    trigger: time
conditions: []
actions:
  - metadata: {}
    target:
      entity_id: scene.nightlight
    action: scene.turn_on
    data: {}
#

Automation Log

#

Scene Log

#

Device Log at 930pm (automation run)

#

Device Log (manually triggered scene)

silver sleet
#

Hello @icy wraith,

#

First let me tell you that I don't use scenes, but compare the name of the scene you created with the name of the scene you called. They don't look the same to me.

icy wraith
#

Thank you, you might be on to something.

The yaml says one thing while the gui says another.

icy wraith
#

Oh wait, I forgot that I already confirmed the automation works if I trigger the automation manually.

errant granite
#

what do you see in the log of a device in the scene?

icy wraith
#

See second screenshot. (I added descriptions to help)

#

I suppose I could simply stop caring about why and fix it by changing the automation to set the color directly.

Idea of scenes is to be able to edit one scene for many devices and have a separate automation for controlling the scene.

errant granite
#

I only see a log of the light (Kitchen Cabinet) when you triggered it manually. Not when triggered by the automation.

icy wraith
#

Oh, you are right, thank you. I will capture that momentarily.
I have an image of the light when the automation is triggered by time.
I do not have one of the light when the automation is triggered manually.
I will capture the latter.

#

Very weird.

The light is changed.

But there are no logs of the change.

errant granite
#

You're not looking at the log of the light but at the log from the device. Click the left icon in the top right of the card.

icy wraith
#

My apologies.
Thank you for your patience.
You are wise to look there.
I can't believe I didn't think about that.
I am stupid.
Seems an automation is currently running right after that event and I have not noticed it changing.
One is set to a time. One is set to an elevation.
So the sun setting later in the day caused the issue.
I am dumb.
Wow.

errant granite
#

Haha, no problem! I was starting to think along those lines 😄

icy wraith
#

I completely forgot I had changed that too. 😅
I wanted to try elevation instead of a set time.
Now I remember changing it (~6 months ago).
Time change (Ugh DST is annoying).
And boom.