From ba662fb9b76388dfd77081f6518a94dc971992f3 Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 23 Jan 2022 15:14:28 +0100 Subject: [PATCH] Add loadpoint number as ${loadpoint} (#2383) --- core/site.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/site.go b/core/site.go index 9b7ba509b..35fae45e8 100644 --- a/core/site.go +++ b/core/site.go @@ -459,6 +459,10 @@ func (site *Site) Prepare(uiChan chan<- util.Param, pushChan chan<- push.Event) }(id) lp.Prepare(lpUIChan, lpPushChan, site.lpUpdateChan) + + // add loadpoint number + num := id + 1 + lp.publish("loadpoint", &num) } }