Description of an infrared device exposed as an ESPHome entity.
Adapters return a list of these from Espex.InfraredProxy.list_entities/0.
The :key is the stable identifier used by clients for state reporting and
commands — the adapter is responsible for generating keys that remain
consistent across restarts (e.g., hash of a serial number or MAC).
Summary
Functions
Build an entity from keyword options.
Convert to the protobuf message sent during ListEntitiesRequest.
Types
@type capability() :: :transmit | :receive
@type t() :: %Espex.InfraredProxy.Entity{ capabilities: [capability()], disabled_by_default: boolean(), entity_category: atom(), icon: String.t(), key: non_neg_integer(), name: String.t(), object_id: String.t() }
Functions
Build an entity from keyword options.
@spec to_proto(t()) :: Espex.Proto.ListEntitiesInfraredResponse.t()
Convert to the protobuf message sent during ListEntitiesRequest.