]> git.basschouten.com Git - openhab-addons.git/commitdiff
State pattern with Percent as default for QuantityType:Dimensionless (#15691)
authorBernd Weymann <bernd.weymann@gmail.com>
Sun, 15 Oct 2023 08:48:54 +0000 (10:48 +0200)
committerGitHub <noreply@github.com>
Sun, 15 Oct 2023 08:48:54 +0000 (10:48 +0200)
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
bundles/org.openhab.binding.modbus.e3dc/src/main/resources/OH-INF/thing/power-channel-types.xml

index 1da9b05e5dfd99c80a0c9f77ef8042b08a26f4f0..93092d1f05b3b84b3dadeeea433913b556fa3879 100644 (file)
                <item-type>Number:Dimensionless</item-type>
                <label>Autarky</label>
                <description>Your current Autarky Level in Percent</description>
-               <state pattern="%d %unit%" readOnly="true"/>
+               <state pattern="%d %%" readOnly="true"/>
        </channel-type>
        <channel-type id="self-consumption-channel">
                <item-type>Number:Dimensionless</item-type>
                <label>Self Consumtion</label>
                <description>Your current Photovoltaic Self Consumption Level in Percent</description>
-               <state pattern="%d %unit%" readOnly="true"/>
+               <state pattern="%d %%" readOnly="true"/>
        </channel-type>
        <channel-type id="battery-soc-channel">
                <item-type>Number:Dimensionless</item-type>
                <label>Battery State Of Charge</label>
                <description>Charge Level of your attached Battery in Percent</description>
-               <state pattern="%d %unit%" readOnly="true"/>
+               <state pattern="%d %%" readOnly="true"/>
        </channel-type>
        <channel-type id="battery-charged-channel">
                <item-type>Number:Energy</item-type>