@@ -47,6 +47,10 @@ public Battery
4747 {
4848 Chemistry = BatteryChemistry . LithiumIon ;
4949 }
50+ else if ( batteryInfo . Chemistry . SequenceEqual ( new [ ] { 'L' , 'i' , 'P' , '\0 ' } ) )
51+ {
52+ Chemistry = BatteryChemistry . LithiumPolymer ;
53+ }
5054 else if ( batteryInfo . Chemistry . SequenceEqual ( new [ ] { 'N' , 'i' , 'C' , 'd' } ) )
5155 {
5256 Chemistry = BatteryChemistry . NickelCadmium ;
@@ -72,12 +76,19 @@ public Battery
7276 _fullChargedCapacity = new Sensor ( "Fully-Charged Capacity" , 1 , SensorType . Energy , this , settings ) ;
7377 _degradationLevel = new Sensor ( "Degradation Level" , 1 , SensorType . Level , this , settings ) ;
7478 _chargeLevel = new Sensor ( "Charge Level" , 0 , SensorType . Level , this , settings ) ;
79+ ActivateSensor ( _chargeLevel ) ;
7580 _voltage = new Sensor ( "Voltage" , 0 , SensorType . Voltage , this , settings ) ;
81+ ActivateSensor ( _voltage ) ;
7682 _remainingCapacity = new Sensor ( "Remaining Capacity" , 2 , SensorType . Energy , this , settings ) ;
83+ ActivateSensor ( _remainingCapacity ) ;
7784 _chargeDischargeCurrent = new Sensor ( "Charge/Discharge Current" , 0 , SensorType . Current , this , settings ) ;
85+ ActivateSensor ( _chargeDischargeCurrent ) ;
7886 _chargeDischargeRate = new Sensor ( "Charge/Discharge Rate" , 0 , SensorType . Power , this , settings ) ;
87+ ActivateSensor ( _chargeDischargeRate ) ;
7988 _remainingTime = new Sensor ( "Remaining Time (Estimated)" , 0 , SensorType . TimeSpan , this , settings ) ;
89+ ActivateSensor ( _remainingTime ) ;
8090 _temperature = new Sensor ( "Battery Temperature" , 0 , SensorType . Temperature , this , settings ) ;
91+ ActivateSensor ( _temperature ) ;
8192
8293 if ( batteryInfo . FullChargedCapacity is not Kernel32 . BATTERY_UNKNOWN_CAPACITY &&
8394 batteryInfo . DesignedCapacity is not Kernel32 . BATTERY_UNKNOWN_CAPACITY )
0 commit comments