11 #ifdef USE_BINARY_SENSOR 59 #ifdef USE_TEXT_SENSOR 63 #ifdef USE_BINARY_SENSOR 64 SUB_BINARY_SENSOR(charging_mos_enabled)
65 SUB_BINARY_SENSOR(discharging_mos_enabled)
68 void setup()
override;
void set_address(uint8_t address)
void dump_config() override
This class simplifies creating components that periodically check a state.
void request_data_(uint8_t data_id)
virtual void setup()
Where the component's initialization should happen.
void decode_data_(std::vector< uint8_t > data)
DalyBmsComponent()=default
std::vector< uint8_t > data_
uint32_t last_transmission_
float get_setup_priority() const override
Implementation of SPI Controller mode.
SUB_SENSOR(voltage) SUB_SENSOR(current) SUB_SENSOR(battery_level) SUB_SENSOR(max_cell_voltage) SUB_SENSOR(max_cell_voltage_number) SUB_SENSOR(min_cell_voltage) SUB_SENSOR(min_cell_voltage_number) SUB_SENSOR(max_temperature) SUB_SENSOR(max_temperature_probe_number) SUB_SENSOR(min_temperature) SUB_SENSOR(min_temperature_probe_number) SUB_SENSOR(remaining_capacity) SUB_SENSOR(cells_number) SUB_SENSOR(temperature_1) SUB_SENSOR(temperature_2) SUB_SENSOR(cell_1_voltage) SUB_SENSOR(cell_2_voltage) SUB_SENSOR(cell_3_voltage) SUB_SENSOR(cell_4_voltage) SUB_SENSOR(cell_5_voltage) SUB_SENSOR(cell_6_voltage) SUB_SENSOR(cell_7_voltage) SUB_SENSOR(cell_8_voltage) SUB_SENSOR(cell_9_voltage) SUB_SENSOR(cell_10_voltage) SUB_SENSOR(cell_11_voltage) SUB_SENSOR(cell_12_voltage) SUB_SENSOR(cell_13_voltage) SUB_SENSOR(cell_14_voltage) SUB_SENSOR(cell_15_voltage) SUB_SENSOR(cell_16_voltage) SUB_TEXT_SENSOR(status) SUB_BINARY_SENSOR(charging_mos_enabled) SUB_BINARY_SENSOR(discharging_mos_enabled) void setup() override