]> git.basschouten.com Git - openhab-addons.git/commitdiff
[modbus.sunspec] Fix decimal number handling for inverter channel types (#10195)
authorleoguiders <30723929+leoguiders@users.noreply.github.com>
Thu, 18 Feb 2021 13:07:31 +0000 (14:07 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Feb 2021 13:07:31 +0000 (14:07 +0100)
Signed-off-by: Jan Philipp Giel <mail@philsown.de>
bundles/org.openhab.binding.modbus.sunspec/src/main/resources/OH-INF/thing/inverter-channel-types.xml

index fa0506bbc02a85efcb39cae810c9a2a72d24ea7c..0ee3ccb91824a07a64a443a96bdb91a1a4590e0d 100644 (file)
                <item-type>Number:ElectricPotential</item-type>
                <label>AC Voltage</label>
                <description>This phase's AC voltage relative to the next phase</description>
-               <state readOnly="true" pattern="%d %unit%"/>
+               <state readOnly="true" pattern="%.1f %unit%"/>
        </channel-type>
 
        <channel-type id="ac-voltage-to-n-type">
                <item-type>Number:ElectricPotential</item-type>
                <label>AC Voltage Phase To N Value</label>
                <description>This phase's AC voltage relative to N line</description>
-               <state readOnly="true" pattern="%d %unit%"/>
+               <state readOnly="true" pattern="%.1f %unit%"/>
        </channel-type>
 
        <channel-type id="ac-power-type">