constexpr size_t HEATING_REPLY_VALUE_OFFSET
Offset of the first value byte in a register reply: the four header bytes it echoes.
bool decode_heating_reply(const IoFrame &reply, HeatingFunction fn, float &value)
Decode the value a heater answered a register read or write with.
constexpr size_t HEATING_PAYLOAD_MAX_SIZE
Largest payload any function produces: a set of a 16-bit value (4-byte header + 2 value bytes).
HeatingRegulatorState
Regulator states of the regulator register (HeatingFunction::REGULATOR_STATE).
@ HEATING
The element is heating.
@ STANDBY
Regulating, the element is idle.
@ AUTO
The heater's automatic mode (its own schedule and target).
size_t encode_heating_payload(HeatingFunction fn, float value, uint8_t out[HEATING_PAYLOAD_MAX_SIZE])
Encode the function the heating_control action runs: a read for a read-only register,...
HeatingFunction
Registers and functions of a 2W heater, one row of the descriptor table each.
@ MIDNIGHT_SYNC
Register 0x0130, read: the comfort/eco/auto setpoint block. Logged, never decoded.
@ TOWEL_MODE
Register 0x0136, read/write: a towel dryer's mode (TowelDryerMode).
@ ROOM_TEMPERATURE
Register 0x0115, read-only: measured room temperature, signed hundredths of a degree.
@ WORKING_RATE
Register 0x0126, read-only: share of the time the element heats, 0-100 %.
@ NIGHT_LIGHT
Register 0x0144, read/write: a heater's night light on (1) or off (0).
@ MAX_SETPOINT
Register 0x0102, read-only: highest setpoint the heater accepts, tenths of a degree.
@ POWER_ON
Register 0x012C, read: the paired-device list. Logged, never decoded.
@ TEMPORARY_STATE
Register 0x013E, read/write: a towel dryer's temporary state (HeatingTemporaryState).
@ SET_PRESENCE
Register 0x0110, write-only: someone is in the room (1) or not (0).
@ NIGHT_LIGHT_BRIGHTNESS
Register 0x0142, read/write: the night light's brightness, 0-100 %, 16-bit.
@ REGULATOR_STATE
Register 0x0117, read-only: 0 none, 1 standby, 2 heating.
@ WINDOW_OPEN
Register 0x010E, read-only: the heater's window sensor, 0 closed / 1 open.
@ SET_OPEN_WINDOW_DETECTION
Register 0x0106, read/write: open-window detection on (1) or off (0).
@ SET_TEMPERATURE
Register 0x0103, read/write: comfort setpoint, tenths of a degree.
@ TEMPERATURE_IN_FORCE
Register 0x0137, read-only: the temperature a towel dryer holds right now, tenths of a degree.
@ ECO_SETBACK
Register 0x0104, read-only: how far below the comfort setpoint a towel dryer's eco period heats,...
@ SET_MODE
Register 0x0100, read/write: operating mode (HeatingMode).
constexpr uint8_t HEATING_REGISTER_HIGH_BYTE
Payload byte at index 2: the high byte of the 16-bit register number, constant 0x01.
bool heating_function_is_readable(HeatingFunction fn)
Whether the register behind a function can be read.
TowelDryerMode
Modes of a towel dryer's mode register (HeatingFunction::TOWEL_MODE).
constexpr float HEATING_TEMP_MAX_C
Highest setpoint this codec will encode.
static constexpr float HEATING_TEMPERATURE_RANGE_MAX_C
See HEATING_TEMPERATURE_RANGE_MIN_C.
const char * heating_function_name(HeatingFunction fn)
Stable lowercase name for a heating function ("power_on", "set_temperature", ...).
bool heating_reply_echoes_register(const IoFrame &reply, uint8_t reg_hi, uint8_t reg_lo)
Is this frame a register reply that echoes a request for this register?
constexpr uint8_t HEATING_DIRECTION_SET
Payload byte at index 1 of a write ("set") request.
constexpr float HEATING_TEMP_MIN_C
Lowest setpoint this codec will encode.
constexpr uint8_t HEATING_NIGHT_LIGHT_BRIGHTNESS_MAX
Highest night light brightness (HeatingFunction::NIGHT_LIGHT_BRIGHTNESS): a percentage,...
size_t encode_heating_write(HeatingFunction fn, float value, uint8_t out[HEATING_PAYLOAD_MAX_SIZE])
Encode a write ("set") of one register into a CMD_WRITE_PRIVATE (0x20) payload.
static constexpr float HEATING_TEMPERATURE_RANGE_MIN_C
Default encoding range of a temperature main parameter, in degrees Celsius.
constexpr uint8_t HEATING_REGISTER_MODEL_NAME
Register 0x0119: the heater's model name, ASCII, not terminated ("ADELIS 2 DIGIT" on an Atlantic Adel...
HeatingMode
Operating modes of the mode register (HeatingFunction::SET_MODE).
@ PROG
Program mode; the device runs its own stored weekly schedule.
@ EXTERNAL_SETPOINT
Setpoint comes from an external controller.
@ MANUAL
Manual mode; follows the last written setpoint.
constexpr int16_t HEATING_SENSOR_FAULT_RAW
Measured value in a reading when the heater reports a sensor fault (raw -1).
constexpr uint8_t HEATING_PAYLOAD_PREFIX
Leading payload byte, common to every function.
size_t encode_heating_register_read(uint8_t reg_hi, uint8_t reg_lo, uint8_t out[HEATING_PAYLOAD_MAX_SIZE])
Encode a read ("get") of an arbitrary register into a CMD_WRITE_PRIVATE (0x20) payload.
bool heating_function_is_writable(HeatingFunction fn)
Whether the register behind a function can be written.
bool heating_function_register(HeatingFunction fn, uint8_t ®ister_low)
Low byte of the 0x01xx register behind a function.
HeatingTemporaryState
Temporary states of a towel dryer (HeatingFunction::TEMPORARY_STATE): a timed run on top of the mode,...
@ DRYING
Drying: full power for the drying duration.
size_t encode_heating_read(HeatingFunction fn, uint8_t out[HEATING_PAYLOAD_MAX_SIZE])
Encode a read ("get") of one register into a CMD_WRITE_PRIVATE (0x20) payload.
constexpr uint8_t HEATING_DIRECTION_GET
Payload byte at index 1 of a read ("get") request.
IO-Homecontrol 2W frame container: control bytes, IoFrame and (de)serialization.
What the hub has read from one heater so far.
int16_t window_open
0 closed / 1 open; -1 until read.
int16_t level
Low byte of the main parameter of a heater commanded with a prefixed value: a heating level,...
int16_t open_window_detection
1 detection on / 0 off; -1 until read.
int16_t value_of(HeatingFunction fn) const
The stored integer value of a register (a mode, a state, a flag, a percentage).
bool has(HeatingFunction fn) const
Has this register been read yet?
float setpoint_c
Comfort setpoint as the heater holds it; NaN until read.
float room_temperature_c
Measured room temperature; NaN until read or on a sensor fault.
int32_t main_parameter
The raw current main parameter of a heater commanded with an EXECUTE (a temperature,...
int16_t temporary_state
HeatingTemporaryState value; -1 until read.
bool clear(HeatingFunction fn)
Forget a register's value: it reads as "never read" again.
int16_t night_light
Night light 1 on / 0 off; -1 until read.
int16_t working_rate
Working rate, 0-100 %; -1 until read.
float temperature_of(HeatingFunction fn) const
The stored temperature of a register read in degrees.
float max_setpoint_c
Highest setpoint the heater accepts; NaN until read.
int16_t towel_mode
TowelDryerMode value; -1 until read.
int16_t mode
HeatingMode value; -1 until read.
int16_t night_light_brightness
Night light brightness, 0-100 %; -1 until read.
int16_t regulator
HeatingRegulatorState value; -1 until read.
float in_force_temperature_c
A towel dryer's temperature in force (register 0x0137); NaN until read.
float eco_setback_k
A towel dryer's eco setback (register 0x0104); NaN until read.
bool store(HeatingFunction fn, float value)
Fold one decoded register value into the readings.
Parsed IO‑Homecontrol frame (CTRL0/1 + addresses + command + data).