Add loadpoint number as ${loadpoint} (#2383)

This commit is contained in:
andig 2022-01-23 15:14:28 +01:00 • committed by GitHub
parent 111e1cc2e7
commit ba662fb9b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}
}