ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
npm1300.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::npm1300
 

Functions

 esphome::npm1300::ESPHOME_LOG_TAG (TAG, "npm1300")
 
float esphome::npm1300::ntc_temperature (uint16_t code, float inv_beta)
 Battery temperature in degrees Celsius from the NTC code and 1 / B constant of the thermistor.
 
 esphome::npm1300::PROGMEM_STRING_TABLE (ChargerStatusStrings, "Discharging", "Error", "Disabled", "Paused, PMIC Too Hot", "Charge Complete", "Trickle Charge", "Constant Current", "Constant Voltage", "Paused, Battery Too Cold", "Paused, Battery Too Hot", "Not Charging")
 
void esphome::npm1300::publish_charger_status (text_sensor::TextSensor *sensor, uint8_t &last, const NPM1300Status &status)
 Publish the charger status text, only when it differs from last
 
 esphome::npm1300::PROGMEM_STRING_TABLE (OutputNameStrings, "BUCK1", "BUCK2", "LDO1", "LDO2")