18 void setup()
override;
This class simplifies creating components that periodically check a state.
bool update_status_()
Attempts to update the climate device from the last received BedjetStatusPacket.
BedjetTemperatureSource temperature_source_
climate::ClimateTraits traits() override
BedjetHeatMode heating_mode_
void on_bedjet_state(bool is_ready) override
void reset_state_()
Resets states to defaults.
void set_temperature_source(BedjetTemperatureSource source)
Sets the temperature source to use for the climate entity's current temperature.
void control(const climate::ClimateCall &call) override
void set_heating_mode(BedjetHeatMode mode)
Sets the default strategy to use for climate::CLIMATE_MODE_HEAT.
float get_setup_priority() const override
void dump_config() override
std::string describe() override
void on_status(const BedjetStatusPacket *data) override
This class is used to encode all control actions on a climate device.
ClimateDevice - This is the base class for all climate integrations.
ClimateMode mode
The active mode of the climate device.
float target_temperature
The target temperature of the climate device.
float current_temperature
The current temperature of the climate device, as reported from the integration.
This class contains all static data for climate devices.
void set_visual_max_temperature(float visual_max_temperature)
void set_supported_modes(std::set< ClimateMode > modes)
void set_supported_custom_fan_modes(std::set< std::string > supported_custom_fan_modes)
void set_supports_action(bool supports_action)
void set_supported_custom_presets(std::set< std::string > supported_custom_presets)
void add_supported_custom_preset(const std::string &preset)
void set_visual_temperature_step(float temperature_step)
void set_visual_min_temperature(float visual_min_temperature)
void set_supported_presets(std::set< ClimatePreset > presets)
void set_supports_current_temperature(bool supports_current_temperature)
BedjetHeatMode
Optional heating strategies to use for climate::CLIMATE_MODE_HEAT.
@ HEAT_MODE_EXTENDED
HVACMode.HEAT is handled using BTN_EXTHT.
@ HEAT_MODE_HEAT
HVACMode.HEAT is handled using BTN_HEAT (default)
@ TEMPERATURE_SOURCE_AMBIENT
@ CLIMATE_PRESET_BOOST
Device is in boost preset.
@ CLIMATE_MODE_DRY
The climate device is set to dry/humidity mode.
@ CLIMATE_MODE_FAN_ONLY
The climate device only has the fan enabled, no heating or cooling is taking place.
@ CLIMATE_MODE_HEAT
The climate device is set to heat to reach the target temperature.
@ CLIMATE_MODE_OFF
The climate device is off.
const float AFTER_WIFI
For components that should be initialized after WiFi is connected.
Providing packet encoding functions for exchanging data with a remote host.
The format of a BedJet V3 status packet.