]> git.basschouten.com Git - openhab-addons.git/commitdiff
Adjust percentage types (#17294)
authorlsiepel <leosiepel@gmail.com>
Mon, 26 Aug 2024 14:09:01 +0000 (16:09 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Aug 2024 14:09:01 +0000 (16:09 +0200)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
bundles/org.openhab.binding.evcc/src/main/resources/OH-INF/thing/thing-types.xml

index b9c062bbd24477af5cc81686e72b3b70e14e899f..3b88b6fc28207b5adcb76b5e414d98fc407c0e26 100644 (file)
                <state pattern="%.1f %unit%" readOnly="true"/>
        </channel-type>
        <channel-type id="batterySoC">
-               <item-type>Number:Dimensionless</item-type>
+               <item-type unitHint="%">Number:Dimensionless</item-type>
                <label>Battery SoC</label>
                <description>Current State of Charge of battery</description>
                <category>BatteryLevel</category>
                <state readOnly="true"/>
        </channel-type>
        <channel-type id="prioritySoC">
-               <item-type>Number:Dimensionless</item-type>
+               <item-type unitHint="%">Number:Dimensionless</item-type>
                <label>Battery Priority SoC</label>
                <description>State of Charge for which the battery has priority over charging the EV when charging mode is "pv"
                </description>
                <state min="0" step="0.1" max="100" pattern="%.0f %unit%" readOnly="false"/>
        </channel-type>
        <channel-type id="bufferSoC">
-               <item-type>Number:Dimensionless</item-type>
+               <item-type unitHint="%">Number:Dimensionless</item-type>
                <label>Battery Buffer SoC</label>
                <description>Until this State of Charge the discharging of a house battery is allowed in "pv" mode, when there is
                        insufficient solar surplus (below the minimum charging power)
                <state min="0" step="0.1" max="100" pattern="%.0f %unit%" readOnly="false"/>
        </channel-type>
        <channel-type id="bufferStartSoC">
-               <item-type>Number:Dimensionless</item-type>
+               <item-type unitHint="%">Number:Dimensionless</item-type>
                <label>Battery Buffer Start SoC</label>
                <description>State of Charge for which a charging session in "pv" mode is started, even if there is insufficient solar
                        surplus
                <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
        <channel-type id="limitSoC">
-               <item-type>Number:Dimensionless</item-type>
+               <item-type unitHint="%">Number:Dimensionless</item-type>
                <label>Charging Limit SoC</label>
                <description>Until which state of charge (SoC) should the vehicle be charged</description>
                <category>BatteryLevel</category>
                <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
        <channel-type id="effectiveLimitSoC">
-               <item-type>Number:Dimensionless</item-type>
+               <item-type unitHint="%">Number:Dimensionless</item-type>
                <label>Effective Charging Limit</label>
                <description>Effective state of charge (SoC) until which the vehicle will be charged</description>
                <category>BatteryLevel</category>
                <state pattern="%.1f %unit%" readOnly="true"/>
        </channel-type>
        <channel-type id="vehicleSoC">
-               <item-type>Number:Dimensionless</item-type>
+               <item-type unitHint="%">Number:Dimensionless</item-type>
                <label>Vehicle SoC</label>
                <description>Current State of Charge of EV</description>
                <category>BatteryLevel</category>
                <state readOnly="true"/>
        </channel-type>
        <channel-type id="vehicleMinSoC">
-               <item-type>Number:Dimensionless</item-type>
+               <item-type unitHint="%">Number:Dimensionless</item-type>
                <label>Vehicle Min SoC</label>
                <description>Minimum state of charge (SoC) a vehicle should have</description>
                <category>BatteryLevel</category>
                <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
        <channel-type id="vehicleLimitSoC">
-               <item-type>Number:Dimensionless</item-type>
+               <item-type unitHint="%">Number:Dimensionless</item-type>
                <label>Vehicle Charging Limit SoC</label>
                <description>Until which state of charge (SoC) should the specific vehicle be charged</description>
                <category>BatteryLevel</category>
                <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
        <channel-type id="vehiclePlanSoC">
-               <item-type>Number:Dimensionless</item-type>
+               <item-type unitHint="%">Number:Dimensionless</item-type>
                <label>Vehicle Plan SoC</label>
                <description>Until which state of charge (SoC) should vehicle be charged in plan</description>
                <category>BatteryLevel</category>