Fix missing loadpoint id for messaging

This commit is contained in:
andig 2023-02-03 17:46:23 +01:00
parent 7a307c356a
commit 80acb35d76
2 changed files with 1 additions and 2 deletions

View file

@ -178,7 +178,6 @@ export default {
chargeCurrent: Number,
connectedDuration: Number,
chargeCurrents: Array,
chargeConfigured: Boolean,
chargeRemainingEnergy: Number,
phaseAction: String,
phaseRemaining: Number,

View file

@ -312,7 +312,6 @@ func (site *Site) DumpConfig() {
lp.log.INFO.Printf(" meters: charge %s", presence[lp.HasChargeMeter()])
lp.publish("chargeConfigured", lp.HasChargeMeter())
if lp.HasChargeMeter() {
lp.log.INFO.Printf(meterCapabilities("charge", lp.chargeMeter))
}
@ -617,6 +616,7 @@ func (site *Site) Prepare(uiChan chan<- util.Param, pushChan chan<- push.Event)
}(id)
lp.Prepare(lpUIChan, lpPushChan, site.lpUpdateChan)
lp.publish("loadpoint", id+1) // 1-based loadpoint id
}
}