Skip to content

Commit 23b94d7

Browse files
authored
[growatt] change battery display channel unit to volt (openhab#16377)
Signed-off-by: Andrew Fiddian-Green <[email protected]>
1 parent 8955fa2 commit 23b94d7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bundles/org.openhab.binding.growatt/src/main/java/org/openhab/binding/growatt/internal/GrowattChannels.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public UoM(Unit<?> units, float divisor) {
164164
new AbstractMap.SimpleEntry<String, UoM>("battery-type", new UoM(Units.ONE, 1)),
165165
new AbstractMap.SimpleEntry<String, UoM>("battery-voltage", new UoM(Units.VOLT, 10)),
166166
new AbstractMap.SimpleEntry<String, UoM>("battery-temperature", new UoM(SIUnits.CELSIUS, 10)),
167-
new AbstractMap.SimpleEntry<String, UoM>("battery-display", new UoM(Units.ONE, 10)),
167+
new AbstractMap.SimpleEntry<String, UoM>("battery-display", new UoM(Units.VOLT, 10)),
168168
new AbstractMap.SimpleEntry<String, UoM>("battery-soc", new UoM(Units.PERCENT, 1)),
169169

170170
// fault codes

bundles/org.openhab.binding.growatt/src/main/resources/OH-INF/i18n/growatt.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ thing-type.growatt.bridge.description = Bridge Thing for Growatt Binding
1010
thing-type.growatt.inverter.label = Growatt Inverter
1111
thing-type.growatt.inverter.description = Inverter Thing for Growatt Binding
1212
thing-type.growatt.inverter.channel.battery-display.label = Battery Display
13-
thing-type.growatt.inverter.channel.battery-display.description = Battery display code.
13+
thing-type.growatt.inverter.channel.battery-display.description = Battery display voltage.
1414
thing-type.growatt.inverter.channel.battery-soc.label = Battery Charge
1515
thing-type.growatt.inverter.channel.battery-soc.description = Battery state of charge.
1616
thing-type.growatt.inverter.channel.battery-temperature.label = Battery Temperature

bundles/org.openhab.binding.growatt/src/main/resources/OH-INF/thing/thing-types.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,9 @@
364364
<label>Battery Voltage</label>
365365
<description>Battery voltage.</description>
366366
</channel>
367-
<channel id="battery-display" typeId="advanced-status-code">
367+
<channel id="battery-display" typeId="advanced-electric-voltage">
368368
<label>Battery Display</label>
369-
<description>Battery display code.</description>
369+
<description>Battery display voltage.</description>
370370
</channel>
371371
<channel id="battery-soc" typeId="advanced-percent">
372372
<label>Battery Charge</label>

0 commit comments

Comments
 (0)