Skip to content

How to add a switch to enable/disable battery charging for the CoreS3? #11

Closed

Description

@lboue

Could you tell me how to add a switch to enable/disable battery charging for the CoreS3?
Image

I didn't find it in the YAML file:
https://github.com/m5stack/esphome-yaml/blob/main/common/cores3-satellite-base.yaml

Activity

  1. parker-int64 commented on Dec 19, 2025

    @parker-int64
    Contributor

    Hi,

    Charge function was enabled by default, in the setup of AXP2101. If you wish to manually disable/enable the charging function, additional switch component must be implemented (in external component). As of now our example was for voice assistant, it is expected to keep the power supply all the time since battery will drain quickly.

  2. lboue commented on Dec 21, 2025

    @lboue
    ContributorAuthor

    Which axp2101 method should be called from this switch component?
    I have noticed that these methods exist:

    // Button Battery charge
    bool enableButtonBatteryCharge(void);
    bool disableButtonBatteryCharge(void);
    bool isEnableButtonBatteryCharge();
    bool setButtonBatteryChargeVoltage(uint16_t millivolt);
    uint16_t getButtonBatteryVoltage(void);

  3. parker-int64 commented on Nov 18, 2026

    @parker-int64
    Contributor

    Sorry for the long delay.

    We've update the AXP2101 component with a bit of new design (assisted by AI models), added several new entities that is available on CoreS3.

    Please check the new configuration and #126.

    The charging switch is among these newly added entities. Also this new updates comes with bunch of new features.

    Closing the issue for now, feel free to open an issue or if you have further problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions