ESPHome
2022.6.3
|
Data Structures | |
class | Bedjet |
class | BedjetCodec |
This class is responsible for encoding command packets and decoding status packets. More... | |
struct | BedjetFlags |
struct | BedjetPacket |
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 | 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 | 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 } |
enum | BedjetCommand : uint8_t { CMD_BUTTON = 0x1, CMD_SET_TEMP = 0x3, CMD_STATUS = 0x6, CMD_SET_FAN = 0x7, CMD_SET_TIME = 0x8 } |
Functions | |
float | bedjet_temp_to_c (const uint8_t temp) |
Converts a BedJet temp step into degrees Celsius. More... | |
uint8_t | bedjet_fan_step_to_speed (const uint8_t fan) |
Converts a BedJet fan step to a speed percentage, in the range of 5% to 100%. More... | |
float | bedjet_temp_to_f (const uint8_t temp) |
Converts a BedJet temp step into degrees Fahrenheit. More... | |
struct esphome::bedjet::BedjetFlags | __attribute__ ((packed)) |
Variables | |
enum esphome::bedjet::BedjetPacketFormat | __attribute__ |
enum esphome::bedjet::BedjetButton : uint8_t |
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. |
Definition at line 35 of file bedjet_const.h.
enum esphome::bedjet::BedjetCommand : uint8_t |
Enumerator | |
---|---|
CMD_BUTTON | |
CMD_SET_TEMP | |
CMD_STATUS | |
CMD_SET_FAN | |
CMD_SET_TIME |
Definition at line 67 of file bedjet_const.h.
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 28 of file bedjet_const.h.
enum esphome::bedjet::BedjetMode : uint8_t |
Definition at line 10 of file bedjet_const.h.
enum esphome::bedjet::BedjetPacketFormat : uint8_t |
Enumerator | |
---|---|
PACKET_FORMAT_DEBUG | |
PACKET_FORMAT_V3_HOME |
Definition at line 29 of file bedjet_base.h.
enum esphome::bedjet::BedjetPacketType : uint8_t |
Enumerator | |
---|---|
PACKET_TYPE_STATUS | |
PACKET_TYPE_DEBUG |
Definition at line 34 of file bedjet_base.h.
struct esphome::bedjet::BedjetFlags esphome::bedjet::__attribute__ | ( | (packed) | ) |
uint8_t esphome::bedjet::bedjet_fan_step_to_speed | ( | const uint8_t | fan | ) |
Converts a BedJet fan step to a speed percentage, in the range of 5% to 100%.
Definition at line 18 of file bedjet.cpp.
float esphome::bedjet::bedjet_temp_to_c | ( | const uint8_t | temp | ) |
Converts a BedJet temp step into degrees Celsius.
Definition at line 12 of file bedjet.cpp.
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_base.cpp.
class esphome::bedjet::BedjetCodec esphome::bedjet::__attribute__ |