]> git.basschouten.com Git - openhab-addons.git/commitdiff
[senechome] changed BatteryState to String (#9521)
authorKorbinian Probst <27731930+KorbinianP@users.noreply.github.com>
Sat, 26 Dec 2020 08:36:28 +0000 (09:36 +0100)
committerGitHub <noreply@github.com>
Sat, 26 Dec 2020 08:36:28 +0000 (09:36 +0100)
Signed-off-by: Korbinian Probst <kp.droid.dev@gmail.com>
bundles/org.openhab.binding.senechome/src/main/resources/OH-INF/thing/thing-types.xml

index 9c22dff0f824b5b2b351dc121a967698f7c457bf..e05d8d2301ebfa6a5b9ab2063a00d0b716f8d94d 100644 (file)
@@ -16,7 +16,7 @@
                        <channel id="energyProduction" typeId="energyProduction"/>
                        <channel id="batteryPower" typeId="batteryPower"/>
                        <channel id="batteryFuelCharge" typeId="batteryFuelCharge"/>
-                       <channel id="batteryState" typeId="system.battery-level"/>
+                       <channel id="batteryState" typeId="batteryState"/>
                        <channel id="batteryStateValue" typeId="batteryStateValue"/>
                        <channel id="gridPower" typeId="gridPower"/>
                        <channel id="gridPowerSupply" typeId="gridPowerSupply"/>
                <state readOnly="true" pattern="%.0f %unit%"/>
        </channel-type>
 
+       <channel-type id="batteryState">
+               <item-type>String</item-type>
+               <label>Battery State</label>
+               <category>Battery</category>
+               <state readOnly="true" pattern="%s"/>
+       </channel-type>
+
        <channel-type id="batteryStateValue">
                <item-type>Number</item-type>
                <label>Battery State Value</label>