8static const char *
const TAG =
"bedjet";
11inline static uint8_t bedjet_fan_step_to_speed(
const uint8_t fan) {
16inline static uint8_t bedjet_fan_speed_to_index(
const uint8_t speed) {
return speed / 5 - 1; }
94#define BEDJET_FAN_STEP_NAMES_ \
96 "5%", "10%", "15%", "20%", "25%", "30%", "35%", "40%", "45%", "50%", "55%", "60%", "65%", "70%", "75%", "80%", \
97 "85%", "90%", "95%", "100%" \
100static const uint8_t BEDJET_FAN_SPEED_COUNT = 20;
102static const char *
const BEDJET_FAN_STEP_NAMES[BEDJET_FAN_SPEED_COUNT] = BEDJET_FAN_STEP_NAMES_;
103static const std::string BEDJET_FAN_STEP_NAME_STRINGS[BEDJET_FAN_SPEED_COUNT] = BEDJET_FAN_STEP_NAMES_;
104static const std::set<std::string> BEDJET_FAN_STEP_NAMES_SET BEDJET_FAN_STEP_NAMES_;
BedjetHeatMode
Optional heating strategies to use for climate::CLIMATE_MODE_HEAT.
@ HEAT_MODE_EXTENDED
HVACMode.HEAT is handled using BTN_EXTHT.
@ HEAT_MODE_HEAT
HVACMode.HEAT is handled using BTN_HEAT (default)
@ MODE_DRY
BedJet is in Dry mode (high speed, no heat)
@ MODE_EXTHT
BedJet is in Extended Heat mode (limited to 10 hours)
@ MODE_COOL
BedJet is in Cool mode (actually "Fan only" mode)
@ MODE_TURBO
BedJet is in Turbo mode (high heat, limited time)
@ MODE_HEAT
BedJet is in Heat mode (limited to 4 hours)
@ MODE_WAIT
BedJet is in "wait" mode, a step during a biorhythm program.
@ MODE_STANDBY
BedJet is Off.
@ BTN_TURBO
Enter Turbo mode (high heat, limited to 10 minutes)
@ MAGIC_CONNTEST
Perform a connection test.
@ BTN_M1
Start the M1 biorhythm/preset program.
@ BTN_DRY
Enter Dry mode (high speed, no heat)
@ BTN_EXTHT
Enter Extended Heat mode (limited to 10 hours)
@ BTN_HEAT
Enter Heat mode (limited to 4 hours)
@ MAGIC_NOTIFY_ACK
Acknowledge notification handled. See BedjetNotify.
@ BTN_COOL
Enter Cool mode (fan only)
@ BTN_OFF
Turn BedJet off.
@ BTN_M2
Start the M2 biorhythm/preset program.
@ BTN_M3
Start the M3 biorhythm/preset program.
@ MAGIC_UPDATE
Request a firmware update. This will also restart the Bedjet.
@ MAGIC_DEBUG_ON
Turn debug mode on/off.
@ TEMPERATURE_SOURCE_OUTLET
@ TEMPERATURE_SOURCE_AMBIENT
Providing packet encoding functions for exchanging data with a remote host.