166 BedjetPacket *get_set_target_temp_request(
float temperature);
167 BedjetPacket *get_set_fan_speed_request(uint8_t
fan_step);
168 BedjetPacket *get_set_time_request(uint8_t
hour, uint8_t
minute);
169 BedjetPacket *get_set_runtime_remaining_request(uint8_t
hour, uint8_t
minute);
171 bool decode_notify(
const uint8_t *
data, uint16_t
length);
172 void decode_extra(
const uint8_t *
data, uint16_t
length);
175 inline bool has_status() {
return this->status_packet_ !=
nullptr; }
180 BedjetPacket *clean_packet_();
182 uint8_t last_buffer_size_ = 0;
186 BedjetStatusPacket *status_packet_;
uint8_t fan_step
BedJet fan speed; value is in the 0-19 range, representing 5% increments (5%-100%): `5 + 5...
uint16_t unused_7
See BedjetNotification.
uint8_t shutdown_reason
The reason for the last device shutdown.
uint16_t turbo_time
Time remaining in BedjetMode::MODE_TURBO.
bool is_partial
1 indicates that this is a partial packet, and more data can be read directly from the characteristic...
uint8_t target_temp_step
Target temp that the BedJet will try to heat to. See actual_temp_step.
The specified sequence cannot be run because the clock is not set.
uint8_t max_hrs
Max hours of mode runtime.
class esphome::bedjet::BedjetCodec __attribute__
uint8_t max_temp_step
Max temp allowed in mode. See actual_temp_step.
uint8_t update_phase
The current status/phase of a firmware update.
uint8_t min_temp_step
Min temp allowed in mode. See actual_temp_step.
uint8_t ambient_temp_step
Current ambient air temp.
Firmware Update / A newer version of firmware is available.
bool conn_test_passed
(0x20) Bit is set 1 if the last connection test passed.
Clean Filter / Please check BedJet air filter and clean if necessary.
The format of a BedJet V3 status packet.
BedjetMode mode
BedJet operating mode.
float bedjet_temp_to_c(uint8_t temp)
Converts a BedJet temp step into degrees Celsius.
BedjetPacketFormat packet_format
BedjetPacketFormat::PACKET_FORMAT_V3_HOME for BedJet V3 status packet format.
bool beeps_muted
(0x01) Bit is set 1 if the device's sound output is muted.
uint8_t max_mins
Max minutes of mode runtime.
BedjetPacketType packet_type
Typically BedjetPacketType::PACKET_TYPE_STATUS for BedJet V3 status packet.
uint8_t bio_sequence_step
bool units_setup
(0x04) Bit is set 1 if the device's units have been configured.
uint8_t expecting_length
The expected total length of the status packet after merging the extra packet.
int unused_7
Is part of a Dual Zone configuration.
uint8_t time_remaining_mins
Minutes remaining in program runtime.
bool leds_enabled
(0x10) Bit is set 1 if the LEDs on the device are enabled.
This class is responsible for encoding command packets and decoding status packets.
const BedjetStatusPacket * get_status_packet() const
Firmware Update / Unable to connect to the firmware update server.
struct @9 dual_zone_flags
Implementation of SPI Controller mode.
uint8_t time_remaining_secs
Seconds remaining in program runtime.
uint8_t time_remaining_hrs
Hours remaining in program runtime.
uint8_t actual_temp_step
Actual temp of the air blown by the BedJet fan; value represents 2 * degrees_celsius.
The specified sequence cannot be run because it contains steps that would be too long running from th...
uint8_t fan_step
BedJet fan speed; value is in the 0-19 range, representing 5% increments (5%-100%): `5 + 5...
BedjetNotification notify_code
Biorhythm sequence step number.