]> git.basschouten.com Git - openhab-addons.git/commitdiff
[modbus.sunspec] Handle floating point numbers for voltage types (#10175)
authorleoguiders <30723929+leoguiders@users.noreply.github.com>
Tue, 16 Feb 2021 17:57:04 +0000 (18:57 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Feb 2021 17:57:04 +0000 (18:57 +0100)
Signed-off-by: Jan Philipp Giel <mail@philsown.de>
bundles/org.openhab.binding.modbus.sunspec/src/main/resources/OH-INF/thing/meter-channel-types.xml

index 2187f9bc8c86eb996df916f2a661446281d942e9..c36244b677c577bf19cf49b4cff9a7ab347199c9 100644 (file)
@@ -7,12 +7,12 @@
        <channel-type id="ac-average-voltage-to-n-type">
                <item-type>Number:ElectricPotential</item-type>
                <label>Average Line To Neutral AC Voltage</label>
-               <state readOnly="true" pattern="%d %unit%"/>
+               <state readOnly="true" pattern="%.0f %unit%"/>
        </channel-type>
        <channel-type id="ac-average-voltage-to-next-type">
                <item-type>Number:ElectricPotential</item-type>
                <label>Average Line To Line AC Voltage</label>
-               <state readOnly="true" pattern="%d %unit%"/>
+               <state readOnly="true" pattern="%.0f %unit%"/>
        </channel-type>
        <channel-type id="ac-total-real-power-type">
                <item-type>Number:Power</item-type>