diff --git a/lib/openhab/core/timer.rb b/lib/openhab/core/timer.rb index 780af0bd40..4e6f92fb05 100644 --- a/lib/openhab/core/timer.rb +++ b/lib/openhab/core/timer.rb @@ -49,7 +49,8 @@ def initialize(time, id:, thread_locals:, block:) @id = id @thread_locals = thread_locals @block = block - @timer = ScriptExecution.create_timer(1.minute.from_now) { execute } + timer_identifier = block.source_location.join(":") + @timer = ScriptExecution.create_timer(timer_identifier, 1.minute.from_now) { execute } reschedule!(@time) end