ESPHome  2024.11.0
Data Structures | Enumerations | Functions | Variables
esphome::bedjet Namespace Reference

Data Structures

class  BedJetClient
 
class  BedJetClimate
 
class  BedjetCodec
 This class is responsible for encoding command packets and decoding status packets. More...
 
class  BedJetFan
 
class  BedJetHub
 Hub component connecting to the BedJet device over Bluetooth. More...
 
struct  BedjetPacket
 
class  BedjetSensor
 
struct  BedjetStatusPacket
 The format of a BedJet V3 status packet. More...
 

Enumerations

enum  BedjetPacketFormat : uint8_t { PACKET_FORMAT_DEBUG = 0x05, PACKET_FORMAT_V3_HOME = 0x56 }
 
enum  BedjetPacketType : uint8_t { PACKET_TYPE_STATUS = 0x1, PACKET_TYPE_DEBUG = 0x2 }
 
enum  BedjetNotification : uint8_t {
  NOTIFY_NONE = 0, NOTIFY_FILTER = 1, NOTIFY_UPDATE = 2, NOTIFY_UPDATE_FAIL = 3,
  NOTIFY_BIO_FAIL_CLOCK_NOT_SET = 4, NOTIFY_BIO_FAIL_TOO_LONG = 5
}
 
enum  BedjetMode : uint8_t {
  MODE_STANDBY = 0, MODE_HEAT = 1, MODE_TURBO = 2, MODE_EXTHT = 3,
  MODE_COOL = 4, MODE_DRY = 5, MODE_WAIT = 6
}
 
enum  BedjetHeatMode { HEAT_MODE_HEAT, HEAT_MODE_EXTENDED }
 Optional heating strategies to use for climate::CLIMATE_MODE_HEAT. More...
 
enum  BedjetTemperatureSource { TEMPERATURE_SOURCE_OUTLET, TEMPERATURE_SOURCE_AMBIENT }
 
enum  BedjetButton : uint8_t {
  BTN_OFF = 0x1, BTN_COOL = 0x2, BTN_HEAT = 0x3, BTN_TURBO = 0x4,
  BTN_DRY = 0x5, BTN_EXTHT = 0x6, BTN_M1 = 0x20, BTN_M2 = 0x21,
  BTN_M3 = 0x22, MAGIC_DEBUG_ON = 0x40, MAGIC_DEBUG_OFF = 0x41, MAGIC_CONNTEST = 0x42,
  MAGIC_UPDATE = 0x43, MAGIC_NOTIFY_ACK = 0x52
}
 
enum  BedjetCommand : uint8_t {
  CMD_BUTTON = 0x1, CMD_SET_RUNTIME = 0x2, CMD_SET_TEMP = 0x3, CMD_STATUS = 0x6,
  CMD_SET_FAN = 0x7, CMD_SET_CLOCK = 0x8
}
 

Functions

float bedjet_temp_to_f (const uint8_t temp)
 Converts a BedJet temp step into degrees Fahrenheit. More...
 
float bedjet_temp_to_c (uint8_t temp)
 Converts a BedJet temp step into degrees Celsius. More...
 
struct esphome::bedjet::BedjetStatusPacket __attribute__ ((packed))
 

Variables

class esphome::bedjet::BedjetCodec __attribute__
 

Enumeration Type Documentation

◆ BedjetButton

Enumerator
BTN_OFF 

Turn BedJet off.

BTN_COOL 

Enter Cool mode (fan only)

BTN_HEAT 

Enter Heat mode (limited to 4 hours)

BTN_TURBO 

Enter Turbo mode (high heat, limited to 10 minutes)

BTN_DRY 

Enter Dry mode (high speed, no heat)

BTN_EXTHT 

Enter Extended Heat mode (limited to 10 hours)

BTN_M1 

Start the M1 biorhythm/preset program.

BTN_M2 

Start the M2 biorhythm/preset program.

BTN_M3 

Start the M3 biorhythm/preset program.

MAGIC_DEBUG_ON 

Turn debug mode on/off.

MAGIC_DEBUG_OFF 
MAGIC_CONNTEST 

Perform a connection test.

MAGIC_UPDATE 

Request a firmware update. This will also restart the Bedjet.

MAGIC_NOTIFY_ACK 

Acknowledge notification handled. See BedjetNotify.

Definition at line 51 of file bedjet_const.h.

◆ BedjetCommand

Enumerator
CMD_BUTTON 
CMD_SET_RUNTIME 
CMD_SET_TEMP 
CMD_STATUS 
CMD_SET_FAN 
CMD_SET_CLOCK 

Definition at line 85 of file bedjet_const.h.

◆ BedjetHeatMode

Optional heating strategies to use for climate::CLIMATE_MODE_HEAT.

Enumerator
HEAT_MODE_HEAT 

HVACMode.HEAT is handled using BTN_HEAT (default)

HEAT_MODE_EXTENDED 

HVACMode.HEAT is handled using BTN_EXTHT.

Definition at line 36 of file bedjet_const.h.

◆ BedjetMode

Enumerator
MODE_STANDBY 

BedJet is Off.

MODE_HEAT 

BedJet is in Heat mode (limited to 4 hours)

MODE_TURBO 

BedJet is in Turbo mode (high heat, limited time)

MODE_EXTHT 

BedJet is in Extended Heat mode (limited to 10 hours)

MODE_COOL 

BedJet is in Cool mode (actually "Fan only" mode)

MODE_DRY 

BedJet is in Dry mode (high speed, no heat)

MODE_WAIT 

BedJet is in "wait" mode, a step during a biorhythm program.

Definition at line 18 of file bedjet_const.h.

◆ BedjetNotification

Enumerator
NOTIFY_NONE 

No notification pending.

NOTIFY_FILTER 

Clean Filter / Please check BedJet air filter and clean if necessary.

NOTIFY_UPDATE 

Firmware Update / A newer version of firmware is available.

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_BIO_FAIL_TOO_LONG 

The specified sequence cannot be run because it contains steps that would be too long running from the current time.

Definition at line 27 of file bedjet_codec.h.

◆ BedjetPacketFormat

Enumerator
PACKET_FORMAT_DEBUG 
PACKET_FORMAT_V3_HOME 

Definition at line 17 of file bedjet_codec.h.

◆ BedjetPacketType

Enumerator
PACKET_TYPE_STATUS 
PACKET_TYPE_DEBUG 

Definition at line 22 of file bedjet_codec.h.

◆ BedjetTemperatureSource

Enumerator
TEMPERATURE_SOURCE_OUTLET 
TEMPERATURE_SOURCE_AMBIENT 

Definition at line 44 of file bedjet_const.h.

Function Documentation

◆ __attribute__()

struct esphome::bedjet::BedjetStatusPacket esphome::bedjet::__attribute__ ( (packed)  )

◆ bedjet_temp_to_c()

float esphome::bedjet::bedjet_temp_to_c ( uint8_t  temp)

Converts a BedJet temp step into degrees Celsius.

Definition at line 163 of file bedjet_codec.cpp.

◆ bedjet_temp_to_f()

float esphome::bedjet::bedjet_temp_to_f ( const uint8_t  temp)

Converts a BedJet temp step into degrees Fahrenheit.

Definition at line 9 of file bedjet_codec.cpp.

Variable Documentation

◆ __attribute__

enum esphome::bedjet::BedjetMode esphome::bedjet::__attribute__