My question in the Title might not be clear, but here is what I want to achieve.
I have a Shelly RGBW2 with MQTT enabled. And I can control the RGB colors.
I have a Shelly Plus 1 connected to my Doorbell.
I have installed a RGBW stripe in my study room which is controlled by the Shelly RGBW2. Mostly I use these LED stripe for ambient lighting & sometimes as general lighting.
Here is the Automation that I want to do;
Suppose my LED stripe is set to a specific color (Example: Blue) & the Doorbell is pressed. I want this action to change the color of my stripe to a color (Lets say Red) & the Effect to Breathing for 30 Seconds. Then I want my stripe to change back to previous color (which was Blue).
I had already created the scene that can change the LED color to Red. But I can’ty figure out the part to restore the color back to the state it was before the scene was triggered.
When I press the Bell Button it’s state changes from off to on & the scene that change my RGBW2 to Red triggers. I have added a 5 second delay before running my “on the fly” scene which I named as rgbwstate. But this doesn’t change the color of my RGBW2 back to its previous color; or any color, it remains Red. Can you please tell me where I am making the mistake?
Any possibility that you have already created that scene using YAML?
If the scene was previously created by scene.create, it will be overwritten. If the scene was created by YAML, nothing happens but a warning in your log files.
Managed to get it to work after using MQTT. Sorry for wasting everyone’s time. I am clearly a novice at this. Below is the automation that is working for me;