diff --git a/api/feature.go b/api/feature.go index 15d7e200f..44b5240c5 100644 --- a/api/feature.go +++ b/api/feature.go @@ -10,4 +10,5 @@ const ( IntegratedDevice Heating Retryable + WelcomeCharge ) diff --git a/api/feature_enumer.go b/api/feature_enumer.go index 858b77ac9..736284087 100644 --- a/api/feature_enumer.go +++ b/api/feature_enumer.go @@ -7,11 +7,11 @@ import ( "strings" ) -const _FeatureName = "OfflineCoarseCurrentIntegratedDeviceHeatingRetryable" +const _FeatureName = "OfflineCoarseCurrentIntegratedDeviceHeatingRetryableWelcomeCharge" -var _FeatureIndex = [...]uint8{0, 7, 20, 36, 43, 52} +var _FeatureIndex = [...]uint8{0, 7, 20, 36, 43, 52, 65} -const _FeatureLowerName = "offlinecoarsecurrentintegrateddeviceheatingretryable" +const _FeatureLowerName = "offlinecoarsecurrentintegrateddeviceheatingretryablewelcomecharge" func (i Feature) String() string { i -= 1 @@ -30,9 +30,10 @@ func _FeatureNoOp() { _ = x[IntegratedDevice-(3)] _ = x[Heating-(4)] _ = x[Retryable-(5)] + _ = x[WelcomeCharge-(6)] } -var _FeatureValues = []Feature{Offline, CoarseCurrent, IntegratedDevice, Heating, Retryable} +var _FeatureValues = []Feature{Offline, CoarseCurrent, IntegratedDevice, Heating, Retryable, WelcomeCharge} var _FeatureNameToValueMap = map[string]Feature{ _FeatureName[0:7]: Offline, @@ -45,6 +46,8 @@ var _FeatureNameToValueMap = map[string]Feature{ _FeatureLowerName[36:43]: Heating, _FeatureName[43:52]: Retryable, _FeatureLowerName[43:52]: Retryable, + _FeatureName[52:65]: WelcomeCharge, + _FeatureLowerName[52:65]: WelcomeCharge, } var _FeatureNames = []string{ @@ -53,6 +56,7 @@ var _FeatureNames = []string{ _FeatureName[20:36], _FeatureName[36:43], _FeatureName[43:52], + _FeatureName[52:65], } // FeatureString retrieves an enum value from the enum constants string name. diff --git a/assets/js/components/Loadpoint.vue b/assets/js/components/Loadpoint.vue index abcaf409c..82499a1b8 100644 --- a/assets/js/components/Loadpoint.vue +++ b/assets/js/components/Loadpoint.vue @@ -170,6 +170,7 @@ export default { // details vehicleClimaterActive: Boolean, + vehicleWelcomeActive: Boolean, chargePower: Number, chargedEnergy: Number, chargeRemainingDuration: Number, diff --git a/assets/js/components/MaterialIcon/Welcome.vue b/assets/js/components/MaterialIcon/Welcome.vue new file mode 100644 index 000000000..29bd3464a --- /dev/null +++ b/assets/js/components/MaterialIcon/Welcome.vue @@ -0,0 +1,17 @@ + + + diff --git a/assets/js/components/Vehicle.vue b/assets/js/components/Vehicle.vue index 7f8ca75d4..cb0308161 100644 --- a/assets/js/components/Vehicle.vue +++ b/assets/js/components/Vehicle.vue @@ -95,6 +95,7 @@ export default { chargedEnergy: Number, charging: Boolean, vehicleClimaterActive: Boolean, + vehicleWelcomeActive: Boolean, connected: Boolean, currency: String, effectiveLimitSoc: Number, diff --git a/assets/js/components/VehicleStatus.story.vue b/assets/js/components/VehicleStatus.story.vue index 8c1dacf10..5e75a69cf 100644 --- a/assets/js/components/VehicleStatus.story.vue +++ b/assets/js/components/VehicleStatus.story.vue @@ -232,5 +232,8 @@ const planProjectedEnd = getFutureTime(5, 43); vehicleClimaterActive /> + + + diff --git a/assets/js/components/VehicleStatus.vue b/assets/js/components/VehicleStatus.vue index 54fe4e35d..40d204766 100644 --- a/assets/js/components/VehicleStatus.vue +++ b/assets/js/components/VehicleStatus.vue @@ -66,6 +66,15 @@ > +
+ +