Add battery charging state and voltage (#1)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# ESPHome AXP2101 Component
|
||||
|
||||
This custom component implements AXP2101 support for the M5Stack Core2 V1.1, building on top of https://github.com/martydingo/esphome-axp192. The Core2 uses an AXP192 while the Core2 V1.1 uses an AXP2101.
|
||||
This custom component implements AXP2101 support for the M5Stack Core2 V1.1, building on top of https://github.com/martydingo/esphome-axp192 and https://github.com/lewisxhe/XPowersLib. The Core2 V1.1 uses an AXP2101 while the older Core2 uses an AXP192.
|
||||
|
||||
*This component does not offer full functionality yet, it only covers part of the AXP2101 features and is not fully tested.*
|
||||
|
||||
@@ -32,9 +32,12 @@ sensor:
|
||||
i2c_id: bus_a
|
||||
update_interval: 30s
|
||||
brightness: 75%
|
||||
battery_voltage:
|
||||
name: "Battery Voltage"
|
||||
battery_level:
|
||||
name: "Battery Level"
|
||||
id: battery_level
|
||||
battery_charging:
|
||||
name: "Battery Charging"
|
||||
```
|
||||
|
||||
The display component required for the M5Stack Core2 V1.1 is as follows:
|
||||
|
||||
Reference in New Issue
Block a user