Complete novice here so apologies for whats probably a very basic question. I have tried researching this but have been unsuccessful.
I have several lights but I would like the light in the hall (if its on, which is half hour before sunset until 11pm, but it dims lower at 8pm) to turn its brightness up if our ring doorbell rings, then revert back to its previous brightness level after a set time (something like 2 mins).
I can make the automation (if ring doorbell activates and time is between xx then call script etc but the problem I have is storing the brightness level and then setting brighness back to that level.
I have come up with this, its a bit messy but it works. I have made 3 scripts (1 to get current brightness, 1 to set the brightness high and another to set brightness back to what it was.