36static constexpr float IRA211_MIN_TEMPERATURE = 5.0f;
37static constexpr float IRA211_MAX_TEMPERATURE = 35.0f;
49 static_cast<uint8_t
>(lroundf(clamp(
temperature, IRA211_MIN_TEMPERATURE, IRA211_MAX_TEMPERATURE) * 2.0f));
63DECLARE_REMOTE_PROTOCOL(IRA211)
optional< IRA211Data > decode(RemoteReceiveData src)
void encode(RemoteTransmitData *dst, const IRA211Data &data)
void dump(const IRA211Data &data)
@ IRA211_COMMAND_TEMP_DOWN
float get_temperature() const
void set_temperature(float temperature)
Rounds to the nearest half degree and clamps to the 5 to 35 C range the thermostat accepts.
bool operator==(const IRA211Data &rhs) const
Compares the command and only the fields that command carries.