ESPHome  2021.9.0
Data Structures | Namespaces | Enumerations
tuya.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::tuya::TuyaDatapoint
 
struct  esphome::tuya::TuyaDatapointListener
 
struct  esphome::tuya::TuyaCommand
 
class  esphome::tuya::Tuya
 

Namespaces

 esphome
 Library based on https://github.com/miguelbalboa/rfid and adapted to ESPHome by .
 
 esphome::tuya
 

Enumerations

enum  esphome::tuya::TuyaDatapointType : uint8_t {
  esphome::tuya::TuyaDatapointType::RAW = 0x00, esphome::tuya::TuyaDatapointType::BOOLEAN = 0x01, esphome::tuya::TuyaDatapointType::INTEGER = 0x02, esphome::tuya::TuyaDatapointType::STRING = 0x03,
  esphome::tuya::TuyaDatapointType::ENUM = 0x04, esphome::tuya::TuyaDatapointType::BITMASK = 0x05
}
 
enum  esphome::tuya::TuyaCommandType : uint8_t {
  esphome::tuya::TuyaCommandType::HEARTBEAT = 0x00, esphome::tuya::TuyaCommandType::PRODUCT_QUERY = 0x01, esphome::tuya::TuyaCommandType::CONF_QUERY = 0x02, esphome::tuya::TuyaCommandType::WIFI_STATE = 0x03,
  esphome::tuya::TuyaCommandType::WIFI_RESET = 0x04, esphome::tuya::TuyaCommandType::WIFI_SELECT = 0x05, esphome::tuya::TuyaCommandType::DATAPOINT_DELIVER = 0x06, esphome::tuya::TuyaCommandType::DATAPOINT_REPORT = 0x07,
  esphome::tuya::TuyaCommandType::DATAPOINT_QUERY = 0x08, esphome::tuya::TuyaCommandType::WIFI_TEST = 0x0E, esphome::tuya::TuyaCommandType::LOCAL_TIME_QUERY = 0x1C
}
 
enum  esphome::tuya::TuyaInitState : uint8_t {
  esphome::tuya::TuyaInitState::INIT_HEARTBEAT = 0x00, esphome::tuya::TuyaInitState::INIT_PRODUCT, esphome::tuya::TuyaInitState::INIT_CONF, esphome::tuya::TuyaInitState::INIT_WIFI,
  esphome::tuya::TuyaInitState::INIT_DATAPOINT, esphome::tuya::TuyaInitState::INIT_DONE
}