17static constexpr float BL0939_IREF = 324004 * 1 / 1.218;
18static constexpr float BL0939_UREF = 79931 * 0.51 * 1000 / (1.218 * (5 * 390 + 0.51));
19static constexpr float BL0939_PREF = 4046 * 1 * 0.51 * 1000 / (1.218 * 1.218 * (5 * 390 + 0.51));
20static constexpr float BL0939_EREF = 3.6e6 * 4046 * 1 * 0.51 * 1000 / (1638.4 * 256 * 1.218 * 1.218 * (5 * 390 + 0.51));
28static constexpr float BL0939_IREF_CT = 324004 * 0.3 / 1.218;
29static constexpr float BL0939_UREF_CT = 79931 * 24.9 * 1000 / (1.218 * 5 * 22000);
30static constexpr float BL0939_PREF_CT = 4046 * 0.3 * 24.9 * 1000 / (1.218 * 1.218 * 5 * 22000);
31static constexpr float BL0939_EREF_CT = 3.6e6 * 4046 * 0.3 * 24.9 * 1000 / (1638.4 * 256 * 1.218 * 1.218 * 5 * 22000);
101 void loop()
override;
104 void setup()
override;
BedjetMode mode
BedJet operating mode.
This class simplifies creating components that periodically check a state.
static int32_t to_int32_t(sbe24_t input)
SUB_SENSOR(voltage) SUB_SENSOR(current_1) SUB_SENSOR(current_2) SUB_SENSOR(power_1) SUB_SENSOR(power_2) SUB_SENSOR(energy_1) SUB_SENSOR(energy_2) SUB_SENSOR(energy_sum) SUB_SENSOR(internal_temperature) void set_mode(BL0939Mode mode)
static bool validate_checksum(const DataPacket *data)
static uint32_t to_uint32_t(ube24_t input)
void received_package_(const DataPacket *data) const
void dump_config() override
@ BL0939_MODE_CURRENT_TRANSFORMER
esphome::bl0939::BL0939 __attribute__