mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
Merge branch 'dev' of https://github.com/emsesp/EMS-ESP32 into dev
This commit is contained in:
@@ -234,7 +234,7 @@ class EMSdevice {
|
||||
|
||||
enum OUTPUT_TARGET : uint8_t { API_VERBOSE, API_SHORTNAMES, MQTT, CONSOLE };
|
||||
bool generate_values(JsonObject output, const int8_t tag_filter, const bool nested, const uint8_t output_target);
|
||||
void generate_values_web(JsonObject output);
|
||||
void generate_values_web(JsonObject output, const bool is_dashboard = false);
|
||||
void generate_values_web_customization(JsonArray output);
|
||||
|
||||
void add_device_value(int8_t tag,
|
||||
@@ -350,6 +350,15 @@ class EMSdevice {
|
||||
IVT // 13
|
||||
};
|
||||
|
||||
// Unique Identifiers for each Device type, used in Dashboard table
|
||||
// 100 and above is reserved for DeviceType
|
||||
enum DeviceTypeUniqueID : uint8_t {
|
||||
SCHEDULER_UID = 96,
|
||||
ANALOGSENSOR_UID = 97,
|
||||
TEMPERATURESENSOR_UID = 98,
|
||||
CUSTOM_UID = 99 // always 99
|
||||
};
|
||||
|
||||
enum DeviceType : uint8_t {
|
||||
SYSTEM = 0, // this is us (EMS-ESP)
|
||||
TEMPERATURESENSOR, // for internal temperature sensors
|
||||
@@ -456,6 +465,7 @@ class EMSdevice {
|
||||
static constexpr uint8_t EMS_DEVICE_FLAG_CR120 = 16; // mostly like RC300, but some changes
|
||||
|
||||
uint8_t count_entities();
|
||||
uint8_t count_entities_fav();
|
||||
bool has_entities() const;
|
||||
|
||||
// void reserve_device_values(uint8_t elements) {
|
||||
@@ -514,9 +524,12 @@ class EMSdevice {
|
||||
|
||||
std::vector<TelegramFunction> telegram_functions_; // each EMS device has its own set of registered telegram types
|
||||
|
||||
std::vector<DeviceValue> devicevalues_; // all the device values
|
||||
|
||||
std::vector<uint16_t> handlers_ignored_;
|
||||
|
||||
#if defined(EMSESP_STANDALONE) || defined(EMSESP_TEST)
|
||||
public: // so we can call it from WebCustomizationService::test()
|
||||
#endif
|
||||
std::vector<DeviceValue> devicevalues_; // all the device values
|
||||
};
|
||||
|
||||
} // namespace emsesp
|
||||
|
||||
Reference in New Issue
Block a user