On this ESPHome documentation page: https://esphome.io/cookbook/leak-detector-m5stickc it shows an example using an M5Stick and includes support for the AXP192 power management chip. I tried borrowing the YAML for enabling that on my own M5Stick, but I’m getting an error message when I try to compile it " Platform not found: ‘sensor.axp192’. "
There is no AXP192 platform listed on esphome.io so where is this support supposed to come from? Is there some way to pull in additional Arduino libraries?
The relevant bits of YAML that I used:
i2c:
- id: bus_a
sda: GPIO21
scl: GPIO22
scan: true
sensor:
- platform: axp192
address: 0x34
i2c_id: bus_a
update_interval: 30s
battery_level:
name: "${friendly_name} Battery Level"
id: "m5stick_batterylevel"