esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
Namespaces | Enumerations | Functions
entity_type.hpp File Reference

Enumeration of ESPHome entity domains and name conversion helpers. More...

#include <string>
Include dependency graph for entity_type.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::api
 

Enumerations

enum class  esphome::api::EntityType {
  esphome::api::Unknown , esphome::api::BinarySensor , esphome::api::Sensor , esphome::api::TextSensor ,
  esphome::api::Switch , esphome::api::Light , esphome::api::Cover , esphome::api::Fan ,
  esphome::api::Climate , esphome::api::Number , esphome::api::Select , esphome::api::Text ,
  esphome::api::Button , esphome::api::Lock , esphome::api::MediaPlayer , esphome::api::Camera ,
  esphome::api::Siren , esphome::api::AlarmControlPanel , esphome::api::Date , esphome::api::Time ,
  esphome::api::DateTime , esphome::api::Valve , esphome::api::Event , esphome::api::Update ,
  esphome::api::WaterHeater , esphome::api::Infrared , esphome::api::RadioFrequency
}
 One per ESPHome entity domain (the <X> in ListEntities<X>Response). More...
 

Functions

const char * esphome::api::entity_type_name (EntityType type)
 Domain name, e.g. EntityType::BinarySensor -> "BinarySensor".
 
EntityType esphome::api::entity_type_from_token (const std::string &token)
 Parse the <X> token from a message name (e.g.
 

Detailed Description

Enumeration of ESPHome entity domains and name conversion helpers.