[senechome] changed BatteryState to String (#9521)

Signed-off-by: Korbinian Probst <kp.droid.dev@gmail.com>
This commit is contained in:
Korbinian Probst 2020-12-26 09:36:28 +01:00 committed by GitHub
parent 3533001bd7
commit 65c3d5f6f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -16,7 +16,7 @@
<channel id="energyProduction" typeId="energyProduction"/> <channel id="energyProduction" typeId="energyProduction"/>
<channel id="batteryPower" typeId="batteryPower"/> <channel id="batteryPower" typeId="batteryPower"/>
<channel id="batteryFuelCharge" typeId="batteryFuelCharge"/> <channel id="batteryFuelCharge" typeId="batteryFuelCharge"/>
<channel id="batteryState" typeId="system.battery-level"/> <channel id="batteryState" typeId="batteryState"/>
<channel id="batteryStateValue" typeId="batteryStateValue"/> <channel id="batteryStateValue" typeId="batteryStateValue"/>
<channel id="gridPower" typeId="gridPower"/> <channel id="gridPower" typeId="gridPower"/>
<channel id="gridPowerSupply" typeId="gridPowerSupply"/> <channel id="gridPowerSupply" typeId="gridPowerSupply"/>
@ -98,6 +98,13 @@
<state readOnly="true" pattern="%.0f %unit%"/> <state readOnly="true" pattern="%.0f %unit%"/>
</channel-type> </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"> <channel-type id="batteryStateValue">
<item-type>Number</item-type> <item-type>Number</item-type>
<label>Battery State Value</label> <label>Battery State Value</label>