ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
daikin_madoka_protocol.h File Reference

Go to the source code of this file.

Data Structures

class  esphome::daikin_madoka::MessageAssembler
 Reassembles notifications (one chunk id byte followed by payload) into a message. More...
 

Namespaces

namespace  esphome
 
namespace  esphome::daikin_madoka
 

Typedefs

using esphome::daikin_madoka::QueryArgs = StaticVector<uint8_t, MAX_QUERY_ARGS>
 

Enumerations

enum class  esphome::daikin_madoka::ChunkResult : uint8_t {
  esphome::daikin_madoka::CHUNK_RESULT_PARTIAL , esphome::daikin_madoka::CHUNK_RESULT_COMPLETE , esphome::daikin_madoka::CHUNK_RESULT_INVALID_LENGTH , esphome::daikin_madoka::CHUNK_RESULT_INVALID_ID ,
  esphome::daikin_madoka::CHUNK_RESULT_TOO_LONG
}
 

Functions

bool esphome::daikin_madoka::is_valid_message (std::span< const uint8_t > msg)
 True when the length byte matches and the header (length, reserved, function id) is present.
 
uint16_t esphome::daikin_madoka::message_function_id (std::span< const uint8_t > msg)
 
std::span< const uint8_t > esphome::daikin_madoka::find_arg (std::span< const uint8_t > msg, uint8_t id)
 Returns the value of argument id, or an empty span when it is absent, has no value or the records are truncated.
 
bool esphome::daikin_madoka::merge_args (QueryArgs &args, std::span< const uint8_t > incoming)
 Merges the records {id, len, value...} of incoming into args: a record whose id is already present is replaced in place, a new one is appended.
 
void esphome::daikin_madoka::append_setpoint (QueryArgs &args, uint8_t id, float temperature)
 Appends a setpoint record {id, 2, msb, lsb}, clamped to the supported range.
 
float esphome::daikin_madoka::decode_setpoint (std::span< const uint8_t > value)
 Decodes a two byte setpoint value; the caller checks the size.