Fix missing loadpoint id for messaging
This commit is contained in:
parent
7a307c356a
commit
80acb35d76
2 changed files with 1 additions and 2 deletions
|
|
@ -178,7 +178,6 @@ export default {
|
|||
chargeCurrent: Number,
|
||||
connectedDuration: Number,
|
||||
chargeCurrents: Array,
|
||||
chargeConfigured: Boolean,
|
||||
chargeRemainingEnergy: Number,
|
||||
phaseAction: String,
|
||||
phaseRemaining: Number,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue