File tree 2 files changed +12
-3
lines changed
components/electricity_tariffs/energycharts
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 68
68
:step =" 0.001"
69
69
:precision =" 3"
70
70
unit =" ct/kWh"
71
+ :model-value ="
72
+ $store.state.mqtt['openWB/general/prices/servePrice'] *
73
+ 100000
74
+ "
71
75
@update:model-value ="
72
- updateConfiguration(parseFloat(($event).toFixed(7)), 'configuration.servePrice')
76
+ updateState(
77
+ 'openWB/general/prices/servePrice',
78
+ parseFloat(($event / 100000).toFixed(7)),
79
+ );
80
+ updateConfiguration(parseFloat(($event).toFixed(7)), 'configuration.servePrice')
73
81
"
74
82
>
75
83
<template #help >
85
93
</template >
86
94
87
95
<script >
88
-
96
+ import ComponentState from " /opt/openWB-dev/openwb-ui-settings/src/components/mixins/ComponentState.vue " ;
89
97
export default {
90
98
name: " ElectricityTariffEnergyCharts" ,
91
- mixins: [],
99
+ mixins: [ComponentState ],
92
100
emits: [" update:configuration" ],
93
101
props: {
94
102
electricityTariff: { type: Object , required: true },
Original file line number Diff line number Diff line change @@ -279,6 +279,7 @@ export default {
279
279
" openWB/general/prices/pv" ,
280
280
" openWB/optional/et/provider" ,
281
281
" openWB/system/configurable/electricity_tariffs" ,
282
+ " openWB/general/prices/servePrice" ,
282
283
],
283
284
};
284
285
},
You can’t perform that action at this time.
0 commit comments