The client provides typed convenience methods for every controllable entity domain. Each method accepts the entityDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/richard87/esphome-apiclient/llms.txt
Use this file to discover all available pages before exploring further.
key (a uint32 from ListEntities) and a value or options struct. If ListEntities has been called, the key is validated against the registry before the command is sent.
Entity key validation
When the entity registry is populated (after callingListEntities), every command method validates the key:
ErrEntityNotFound— key does not exist in the registryErrEntityTypeMismatch— key exists but belongs to a different domain
Low-level: SendCommand
SendCommand accepts any pb.*CommandRequest and resolves the message type ID automatically. Use this for entity types not covered by the typed methods, or when building commands programmatically.
Typed command methods
- Lights
- Climate
- Covers & fans
- Media & locks