ESPHome  2024.10.2
Data Fields
esphome::bedjet::BedjetStatusPacket Struct Reference

The format of a BedJet V3 status packet. More...

#include <bedjet_codec.h>

Data Fields

bool is_partial: 8
 1 indicates that this is a partial packet, and more data can be read directly from the characteristic. More...
 
BedjetPacketFormat packet_format: 8
 BedjetPacketFormat::PACKET_FORMAT_V3_HOME for BedJet V3 status packet format. More...
 
uint8_t expecting_length: 8
 The expected total length of the status packet after merging the extra packet. More...
 
BedjetPacketType packet_type: 8
 Typically BedjetPacketType::PACKET_TYPE_STATUS for BedJet V3 status packet. More...
 
uint8_t time_remaining_hrs: 8
 Hours remaining in program runtime. More...
 
uint8_t time_remaining_mins: 8
 Minutes remaining in program runtime. More...
 
uint8_t time_remaining_secs: 8
 Seconds remaining in program runtime. More...
 
uint8_t actual_temp_step: 8
 Actual temp of the air blown by the BedJet fan; value represents 2 * degrees_celsius. More...
 
uint8_t target_temp_step: 8
 Target temp that the BedJet will try to heat to. See actual_temp_step. More...
 
BedjetMode mode: 8
 BedJet operating mode. More...
 
uint8_t fan_step: 8
 BedJet fan speed; value is in the 0-19 range, representing 5% increments (5%-100%): `5 + 5. More...
 
uint8_t max_hrs: 8
 Max hours of mode runtime. More...
 
uint8_t max_mins: 8
 Max minutes of mode runtime. More...
 
uint8_t min_temp_step: 8
 Min temp allowed in mode. See actual_temp_step. More...
 
uint8_t max_temp_step: 8
 Max temp allowed in mode. See actual_temp_step. More...
 
uint16_t turbo_time: 16
 Time remaining in BedjetMode::MODE_TURBO. More...
 
uint8_t ambient_temp_step: 8
 Current ambient air temp. More...
 
uint8_t shutdown_reason: 8
 The reason for the last device shutdown. More...
 
uint8_t unused_1: 8
 
uint8_t unused_2: 8
 
uint8_t unused_3: 8
 
struct {
   int   unused_1: 1
 
   int   unused_2: 1
 
   int   unused_3: 1
 
   int   unused_4: 1
 
   int   unused_5: 1
 
   int   unused_6: 1
 
   bool   is_dual_zone: 1
 
   int   unused_7: 1
 Is part of a Dual Zone configuration. More...
 
dual_zone_flags
 
uint8_t unused_4: 8
 
uint8_t unused_5: 8
 
uint8_t unused_6: 8
 
uint8_t update_phase: 8
 The current status/phase of a firmware update. More...
 
union {
   uint8_t   flags_packed
 
}; 
 
uint8_t bio_sequence_step: 8
 
BedjetNotification notify_code: 8
 Biorhythm sequence step number. More...
 
uint16_t unused_7: 16
 See BedjetNotification. More...
 
bool conn_test_passed: 1
 (0x20) Bit is set 1 if the last connection test passed. More...
 
bool leds_enabled: 1
 (0x10) Bit is set 1 if the LEDs on the device are enabled. More...
 
bool units_setup: 1
 (0x04) Bit is set 1 if the device's units have been configured. More...
 
bool beeps_muted: 1
 (0x01) Bit is set 1 if the device's sound output is muted. More...
 

Detailed Description

The format of a BedJet V3 status packet.

Definition at line 39 of file bedjet_codec.h.

Field Documentation

◆ @7

union { ... }

◆ actual_temp_step

uint8_t esphome::bedjet::BedjetStatusPacket::actual_temp_step

Actual temp of the air blown by the BedJet fan; value represents 2 * degrees_celsius.

See bedjet_temp_to_c and bedjet_temp_to_f

Definition at line 54 of file bedjet_codec.h.

◆ ambient_temp_step

uint8_t esphome::bedjet::BedjetStatusPacket::ambient_temp_step

Current ambient air temp.

This is the coldest air the BedJet can blow. See actual_temp_step.

Definition at line 73 of file bedjet_codec.h.

◆ beeps_muted

bool esphome::bedjet::BedjetStatusPacket::beeps_muted

(0x01) Bit is set 1 if the device's sound output is muted.

Definition at line 116 of file bedjet_codec.h.

◆ bio_sequence_step

uint8_t esphome::bedjet::BedjetStatusPacket::bio_sequence_step

Definition at line 121 of file bedjet_codec.h.

◆ conn_test_passed

bool esphome::bedjet::BedjetStatusPacket::conn_test_passed

(0x20) Bit is set 1 if the last connection test passed.

Definition at line 111 of file bedjet_codec.h.

◆ dual_zone_flags

struct { ... } esphome::bedjet::BedjetStatusPacket::dual_zone_flags

◆ expecting_length

uint8_t esphome::bedjet::BedjetStatusPacket::expecting_length

The expected total length of the status packet after merging the extra packet.

Definition at line 45 of file bedjet_codec.h.

◆ fan_step

uint8_t esphome::bedjet::BedjetStatusPacket::fan_step

BedJet fan speed; value is in the 0-19 range, representing 5% increments (5%-100%): `5 + 5.

  • fan_step`

Definition at line 62 of file bedjet_codec.h.

◆ flags_packed

uint8_t esphome::bedjet::BedjetStatusPacket::flags_packed

Definition at line 106 of file bedjet_codec.h.

◆ is_dual_zone

bool esphome::bedjet::BedjetStatusPacket::is_dual_zone

Definition at line 91 of file bedjet_codec.h.

◆ is_partial

bool esphome::bedjet::BedjetStatusPacket::is_partial

1 indicates that this is a partial packet, and more data can be read directly from the characteristic.

Definition at line 41 of file bedjet_codec.h.

◆ leds_enabled

bool esphome::bedjet::BedjetStatusPacket::leds_enabled

(0x10) Bit is set 1 if the LEDs on the device are enabled.

Definition at line 112 of file bedjet_codec.h.

◆ max_hrs

uint8_t esphome::bedjet::BedjetStatusPacket::max_hrs

Max hours of mode runtime.

Definition at line 64 of file bedjet_codec.h.

◆ max_mins

uint8_t esphome::bedjet::BedjetStatusPacket::max_mins

Max minutes of mode runtime.

Definition at line 65 of file bedjet_codec.h.

◆ max_temp_step

uint8_t esphome::bedjet::BedjetStatusPacket::max_temp_step

Max temp allowed in mode. See actual_temp_step.

Definition at line 67 of file bedjet_codec.h.

◆ min_temp_step

uint8_t esphome::bedjet::BedjetStatusPacket::min_temp_step

Min temp allowed in mode. See actual_temp_step.

Definition at line 66 of file bedjet_codec.h.

◆ mode

BedjetMode esphome::bedjet::BedjetStatusPacket::mode

BedJet operating mode.

Definition at line 59 of file bedjet_codec.h.

◆ notify_code

BedjetNotification esphome::bedjet::BedjetStatusPacket::notify_code

Biorhythm sequence step number.

Definition at line 123 of file bedjet_codec.h.

◆ packet_format

BedjetPacketFormat esphome::bedjet::BedjetStatusPacket::packet_format

BedjetPacketFormat::PACKET_FORMAT_V3_HOME for BedJet V3 status packet format.

BedjetPacketFormat::PACKET_FORMAT_DEBUG for debugging packets.

Definition at line 43 of file bedjet_codec.h.

◆ packet_type

BedjetPacketType esphome::bedjet::BedjetStatusPacket::packet_type

Typically BedjetPacketType::PACKET_TYPE_STATUS for BedJet V3 status packet.

Definition at line 46 of file bedjet_codec.h.

◆ shutdown_reason

uint8_t esphome::bedjet::BedjetStatusPacket::shutdown_reason

The reason for the last device shutdown.

Definition at line 75 of file bedjet_codec.h.

◆ target_temp_step

uint8_t esphome::bedjet::BedjetStatusPacket::target_temp_step

Target temp that the BedJet will try to heat to. See actual_temp_step.

Definition at line 56 of file bedjet_codec.h.

◆ time_remaining_hrs

uint8_t esphome::bedjet::BedjetStatusPacket::time_remaining_hrs

Hours remaining in program runtime.

Definition at line 49 of file bedjet_codec.h.

◆ time_remaining_mins

uint8_t esphome::bedjet::BedjetStatusPacket::time_remaining_mins

Minutes remaining in program runtime.

Definition at line 50 of file bedjet_codec.h.

◆ time_remaining_secs

uint8_t esphome::bedjet::BedjetStatusPacket::time_remaining_secs

Seconds remaining in program runtime.

Definition at line 51 of file bedjet_codec.h.

◆ turbo_time

uint16_t esphome::bedjet::BedjetStatusPacket::turbo_time

Time remaining in BedjetMode::MODE_TURBO.

Definition at line 70 of file bedjet_codec.h.

◆ units_setup

bool esphome::bedjet::BedjetStatusPacket::units_setup

(0x04) Bit is set 1 if the device's units have been configured.

Definition at line 114 of file bedjet_codec.h.

◆ unused_1 [1/2]

uint8_t esphome::bedjet::BedjetStatusPacket::unused_1

Definition at line 79 of file bedjet_codec.h.

◆ unused_1 [2/2]

int esphome::bedjet::BedjetStatusPacket::unused_1

Definition at line 85 of file bedjet_codec.h.

◆ unused_2 [1/2]

uint8_t esphome::bedjet::BedjetStatusPacket::unused_2

Definition at line 80 of file bedjet_codec.h.

◆ unused_2 [2/2]

int esphome::bedjet::BedjetStatusPacket::unused_2

Definition at line 86 of file bedjet_codec.h.

◆ unused_3 [1/2]

uint8_t esphome::bedjet::BedjetStatusPacket::unused_3

Definition at line 81 of file bedjet_codec.h.

◆ unused_3 [2/2]

int esphome::bedjet::BedjetStatusPacket::unused_3

Definition at line 87 of file bedjet_codec.h.

◆ unused_4 [1/2]

int esphome::bedjet::BedjetStatusPacket::unused_4

Definition at line 88 of file bedjet_codec.h.

◆ unused_4 [2/2]

uint8_t esphome::bedjet::BedjetStatusPacket::unused_4

Definition at line 95 of file bedjet_codec.h.

◆ unused_5 [1/2]

int esphome::bedjet::BedjetStatusPacket::unused_5

Definition at line 89 of file bedjet_codec.h.

◆ unused_5 [2/2]

uint8_t esphome::bedjet::BedjetStatusPacket::unused_5

Definition at line 96 of file bedjet_codec.h.

◆ unused_6 [1/2]

int esphome::bedjet::BedjetStatusPacket::unused_6

Definition at line 90 of file bedjet_codec.h.

◆ unused_6 [2/2]

uint8_t esphome::bedjet::BedjetStatusPacket::unused_6

Definition at line 97 of file bedjet_codec.h.

◆ unused_7 [1/2]

int esphome::bedjet::BedjetStatusPacket::unused_7

Is part of a Dual Zone configuration.

Definition at line 92 of file bedjet_codec.h.

◆ unused_7 [2/2]

uint16_t esphome::bedjet::BedjetStatusPacket::unused_7

See BedjetNotification.

Definition at line 125 of file bedjet_codec.h.

◆ update_phase

uint8_t esphome::bedjet::BedjetStatusPacket::update_phase

The current status/phase of a firmware update.

Definition at line 102 of file bedjet_codec.h.


The documentation for this struct was generated from the following file: