10#ifdef USE_BINARY_SENSOR
21 void setup()
override;
28 SUB_SENSOR(primary_temperature)
29 SUB_SENSOR(secondary_temperature)
31 SUB_SENSOR(estimated_heating_time)
32 SUB_SENSOR(available_water)
34#ifdef USE_BINARY_SENSOR
35 SUB_BINARY_SENSOR(communication)
36 SUB_BINARY_SENSOR(power)
37 SUB_BINARY_SENSOR(heating)
44 static constexpr uint32_t NETWORK_STATUS_INTERVAL_ID = 0;
87 std::array<water_heater_protocol::Command, 4>
commands_{};
BedjetMode mode
BedJet operating mode.
static constexpr uint32_t POLL_INTERVAL_MS
water_heater::WaterHeaterCallInternal make_call() override
void handle_frame_type_(water_heater_protocol::FrameType type)
static SUB_SENSOR(primary_temperature) SUB_SENSOR(secondary_temperature) SUB_SENSOR(target_temperature) SUB_SENSOR(estimated_heating_time) SUB_SENSOR(available_water) SUB_BINARY_SENSOR(communication) SUB_BINARY_SENSOR(power) SUB_BINARY_SENSOR(heating) SUB_TEXT_SENSOR(mode) protected constexpr uint32_t STATUS_POLL_INTERVAL_ID
void check_timeouts_(uint32_t now)
static constexpr uint8_t POLL_CYCLE
void update_network_status_()
static constexpr uint8_t NETWORK_NOT_READY
static constexpr uint32_t NETWORK_REFRESH_MS
static constexpr uint8_t MAX_BYTES_PER_LOOP
void send_request_(uint32_t now, Awaiting kind, water_heater_protocol::FrameType type, const uint8_t *payload, size_t size, water_heater_protocol::FrameType expected)
water_heater_protocol::FrameType expected_type_
static constexpr uint8_t NETWORK_READY
void publish_status_(const water_heater_protocol::Status &status)
void send_frame_(water_heater_protocol::FrameType type, const uint8_t *payload=nullptr, size_t size=0)
water_heater_protocol::HonMode reported_mode_
static constexpr uint8_t MIN_TARGET_TEMPERATURE
void set_communication_timeout(uint32_t value)
static constexpr uint8_t MAX_TARGET_TEMPERATURE
static constexpr uint32_t RESPONSE_TIMEOUT_MS
void publish_communication_(bool connected)
static constexpr uint32_t NETWORK_ACK_TIMEOUT_MS
void read_frames_(uint32_t now)
water_heater::WaterHeaterMode last_active_mode_
void control(const water_heater::WaterHeaterCall &call) override
void confirm_control_(const water_heater_protocol::Status &status)
static constexpr uint32_t NETWORK_STATUS_INTERVAL_MS
void send_pending_(uint32_t now)
uint32_t communication_timeout_
static constexpr uint32_t CONTROL_STATUS_MAX_AGE_MS
static constexpr uint32_t FRAME_GAP_MS
void dump_config() override
water_heater::WaterHeaterTraits traits() override
void send_next_control_(uint32_t now)
water_heater_protocol::FrameParser parser_
std::array< water_heater_protocol::Command, 4 > commands_
@ WATER_HEATER_MODE_ELECTRIC