This commit is contained in:
Paul
2020-05-25 17:13:05 +02:00
parent b2bb8e2b5a
commit d3953d90ca
29 changed files with 461 additions and 657 deletions

View File

@@ -45,6 +45,8 @@
#include "boiler.h"
#include "shower.h"
#define LOG_TRACE_WATCH_NONE 0 // no watch set
namespace emsesp {
class Shower; // forward declaration for compiler
@@ -79,8 +81,6 @@ class EMSESP {
static uint8_t actual_master_thermostat();
static void actual_master_thermostat(const uint8_t device_id);
static void trace_watch_id(uint16_t);
static void show_values(uuid::console::Shell & shell);
static void show_devices(uuid::console::Shell & shell);
static void show_emsbus(uuid::console::Shell & shell);
@@ -93,10 +93,20 @@ class EMSESP {
return sensors_.devices();
}
static void trace_watch_id(uint16_t id);
static uint16_t trace_watch_id() {
return trace_watch_id_;
}
static void trace_raw(bool trace_raw) {
trace_raw_ = trace_raw;
}
static bool trace_raw() {
return trace_raw_;
}
static bool tap_water_active() {
return tap_water_active_;
}
@@ -151,6 +161,7 @@ class EMSESP {
static uint8_t actual_master_thermostat_;
static uint16_t trace_watch_id_;
static bool trace_raw_;
static bool tap_water_active_;
static bool ems_read_only_;
};