Go to the source code of this file.
|
| bool | esphome::homeassistant::is_unset (StringRef value) |
| | True for what Home Assistant reports when there is no value: "None" for an attribute that is not set, "unavailable" and "unknown" for the state of an entity that is not ready.
|
| |
| bool | esphome::homeassistant::is_input_helper (const char *entity_id, const char *input_service) |
| | True if entity_id is an input helper; input_service must start with "input_".
|
| |
| bool | esphome::homeassistant::can_send_action (const char *tag, const char *entity_id, EntityBase *entity) |
| | Logs and returns false when no API client is connected or no entity is linked yet.
|
| |
| void | esphome::homeassistant::add_entity_id (api::HomeassistantActionRequest &resp, const char *entity_id) |
| | Adds the entity_id entry to an action's data.
|
| |
| template<typename C > |
| bool | esphome::homeassistant::emit_utf8 (uint32_t code_point, C &on_char) |
| | Emit the UTF-8 encoding of a code point. Rejects NUL, which would end the item early.
|
| |
| template<typename C , typename O > |
| bool | esphome::homeassistant::parse_python_list (StringRef src, C &&on_char, O &&on_item) |
| | Walk a list attribute as Home Assistant sends it: the Python repr of a list of strings, such as ‘['Low’, "It's high", 'caf\xe9'], or of an enum, such as[<ColorMode.HS: 'hs'>]`, where the quoted value stands for the item.
|
| |