diff --git a/push/hub.go b/push/hub.go index cb9007435b..4109388284 100644 --- a/push/hub.go +++ b/push/hub.go @@ -79,6 +79,10 @@ func (h *Hub) apply(ev Event, tmpl string) (string, error) { // add missing attributes if name, ok := attr["vehicleName"].(string); ok { if v, err := h.vehicles.ByName(name); err == nil { + attr["vehicleLimitSoc"] = v.GetLimitSoc() + attr["vehicleMinSoc"] = v.GetMinSoc() + attr["vehiclePlanTime"], attr["vehiclePlanSoc"] = v.GetPlanSoc() + instance := v.Instance() attr["vehicleTitle"] = instance.Title() attr["vehicleIcon"] = instance.Icon()