Skip to content

Commit

Permalink
[growatt] change battery display channel unit to volt (openhab#16377)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
  • Loading branch information
andrewfg authored and austvik committed Mar 27, 2024
1 parent abea473 commit c957f5e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public UoM(Unit<?> units, float divisor) {
new AbstractMap.SimpleEntry<String, UoM>("battery-type", new UoM(Units.ONE, 1)),
new AbstractMap.SimpleEntry<String, UoM>("battery-voltage", new UoM(Units.VOLT, 10)),
new AbstractMap.SimpleEntry<String, UoM>("battery-temperature", new UoM(SIUnits.CELSIUS, 10)),
new AbstractMap.SimpleEntry<String, UoM>("battery-display", new UoM(Units.ONE, 10)),
new AbstractMap.SimpleEntry<String, UoM>("battery-display", new UoM(Units.VOLT, 10)),
new AbstractMap.SimpleEntry<String, UoM>("battery-soc", new UoM(Units.PERCENT, 1)),

// fault codes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ thing-type.growatt.bridge.description = Bridge Thing for Growatt Binding
thing-type.growatt.inverter.label = Growatt Inverter
thing-type.growatt.inverter.description = Inverter Thing for Growatt Binding
thing-type.growatt.inverter.channel.battery-display.label = Battery Display
thing-type.growatt.inverter.channel.battery-display.description = Battery display code.
thing-type.growatt.inverter.channel.battery-display.description = Battery display voltage.
thing-type.growatt.inverter.channel.battery-soc.label = Battery Charge
thing-type.growatt.inverter.channel.battery-soc.description = Battery state of charge.
thing-type.growatt.inverter.channel.battery-temperature.label = Battery Temperature
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,9 @@
<label>Battery Voltage</label>
<description>Battery voltage.</description>
</channel>
<channel id="battery-display" typeId="advanced-status-code">
<channel id="battery-display" typeId="advanced-electric-voltage">
<label>Battery Display</label>
<description>Battery display code.</description>
<description>Battery display voltage.</description>
</channel>
<channel id="battery-soc" typeId="advanced-percent">
<label>Battery Charge</label>
Expand Down

0 comments on commit c957f5e

Please sign in to comment.