[SOLVED] Help understanding rules

Just logging (into openhab.log)

It is just a String for the loggerName that can be used to identify the entry in the logfile.

Just a string that is used to for the log message.

(almost) correct
The while loop will run until percent >0 (and scene is 9)
It works like this: Starting from 100%, we drop -5% every 30 secs
It will take 20 steps to go down to 0%, so: 20*30secs = 10 mins

Important Note: Thread::sleep(30000) (or 30 secs) is not recommended.
another (better) way would be: createTimer(now.plusMinutes(x))

Check: (OH 1.x and OH 2.x Rules DSL only] Why have my Rules stopped running? Why Thread::sleep is a bad idea & How to use code fences