Hi. I created an automation whereby when I turn on my Xbox, or more specifically when the Xbox logs into my account, the light turns on 3o minutes before sunset. I don’t know what’s going on, but it’s not working. The light itself works fine and is made with ESP32+LEDs – WLED. If you have a moment, could you take a look at my blueprint and see where the error is?
You swapped your triggers & conditions. What you have right now only turns on the light if you switch on your xbox and it’s past 30 minutes before sunset.
Set the trigger to sun and the condition to xbox, and it will turn on your light 30 mins before sunset if your xbox is currently on.
That says at the exact time the sun met that condition it fired then checked whatever pixel warlord is - it checked for on. It was off so executions stopped.
First please no more screenshots most of us are reading this on our phones. And screenies are Bad.
Please download the trace and look at it and post THAT in a code block as instructed earlier in the future.
Now all of these are the same thing.
Trigger fires conditions are checked… In that order. The condition is checked ONLY when the trigger fires.
So it will Only look (trigger) when the sun GOES down not because it IS down. When it goes down at that EXACT MOMENT it checks your Status in the condition block.
In your case it was off.
It did exactly what you told it to do.
If you’re trying to make it work just because it’s dark. That’s a different story
Both your pictures show that the state of the Xbox and the Shield was unavailable when the automation triggered. This means that either you are referencing an unreliable device, or else it means that the device was offline during the automation trigger.
How are these 2 devices integrated in HA, and can you check their history to see whether you see unavailable at any point during the automation trigger time?
@NathanCu I’m not sure where you saw that the state was off. Did I miss something in the trace pictures?