uint8_t fan_step
BedJet fan speed; value is in the 0-19 range, representing 5% increments (5%-100%): 5 + 5 /< * fan_st...
This class is responsible for encoding command packets and decoding status packets.
BedjetPacket * get_set_target_temp_request(float temperature)
Returns a BedjetPacket that will set the device's target temperature.
bool compare(const uint8_t *data, uint16_t length)
void decode_extra(const uint8_t *data, uint16_t length)
Decodes the extra bytes that were received after being notified with a partial packet.
BedjetPacket * clean_packet_()
Cleans up the packet before sending.
BedjetStatusPacket * status_packet_
bool decode_notify(const uint8_t *data, uint16_t length)
Decodes the incoming status packet received on the BEDJET_STATUS_UUID.
const BedjetStatusPacket * get_status_packet() const
BedjetPacket * get_set_runtime_remaining_request(uint8_t hour, uint8_t minute)
Returns a BedjetPacket that will set the device's remaining runtime.
BedjetPacket * get_button_request(BedjetButton button)
Returns a BedjetPacket that will initiate a BedjetButton press.
uint8_t last_buffer_size_
BedjetPacket * get_set_time_request(uint8_t hour, uint8_t minute)
Returns a BedjetPacket that will set the device's current time.
BedjetPacket * get_set_fan_speed_request(uint8_t fan_step)
Returns a BedjetPacket that will set the device's target fan speed.
float bedjet_temp_to_c(uint8_t temp)
Converts a BedJet temp step into degrees Celsius.
class esphome::bedjet::BedjetCodec __attribute__
@ NOTIFY_FILTER
Clean Filter / Please check BedJet air filter and clean if necessary.
@ NOTIFY_BIO_FAIL_TOO_LONG
The specified sequence cannot be run because it contains steps that would be too long running from th...
@ NOTIFY_NONE
No notification pending.
@ NOTIFY_UPDATE_FAIL
Firmware Update / Unable to connect to the firmware update server.
@ NOTIFY_BIO_FAIL_CLOCK_NOT_SET
The specified sequence cannot be run because the clock is not set.
@ NOTIFY_UPDATE
Firmware Update / A newer version of firmware is available.
Providing packet encoding functions for exchanging data with a remote host.
The format of a BedJet V3 status packet.
uint8_t target_temp_step
Target temp that the BedJet will try to heat to. See actual_temp_step.
uint8_t time_remaining_mins
Minutes remaining in program runtime.
uint8_t actual_temp_step
Actual temp of the air blown by the BedJet fan; value represents 2 * /< degrees_celsius.
uint16_t unused_7
See BedjetNotification.
uint8_t time_remaining_secs
Seconds remaining in program runtime.
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 fan_step
BedJet fan speed; value is in the 0-19 range, representing 5% increments (5%-100%): 5 + 5 /< * fan_st...
uint16_t turbo_time
Time remaining in BedjetMode::MODE_TURBO.
bool units_setup
(0x04) Bit is set 1 if the device's units have been configured.
int unused_7
Is part of a Dual Zone configuration.
bool is_partial
1 indicates that this is a partial packet, and more data can be read directly from the characteristic...
bool conn_test_passed
(0x20) Bit is set 1 if the last connection test passed.
uint8_t min_temp_step
Min temp allowed in mode. See actual_temp_step.
uint8_t max_mins
Max minutes of mode runtime.
uint8_t max_hrs
Max hours of mode runtime.
BedjetMode mode
BedJet operating mode.
uint8_t time_remaining_hrs
Hours remaining in program runtime.
struct esphome::bedjet::BedjetStatusPacket::@5 dual_zone_flags
BedjetPacketFormat packet_format
BedjetPacketFormat::PACKET_FORMAT_V3_HOME for BedJet V3 status packet format.
bool leds_enabled
(0x10) Bit is set 1 if the LEDs on the device are enabled.
uint8_t ambient_temp_step
Current ambient air temp.
BedjetNotification notify_code
Biorhythm sequence step number.
uint8_t shutdown_reason
The reason for the last device shutdown.
BedjetPacketType packet_type
Typically BedjetPacketType::PACKET_TYPE_STATUS for BedJet V3 status packet.
uint8_t expecting_length
The expected total length of the status packet after merging the extra packet.
bool beeps_muted
(0x01) Bit is set 1 if the device's sound output is muted.
uint8_t bio_sequence_step