mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
merged with michael's changes - https://github.com/proddy/EMS-ESP/pull/393
This commit is contained in:
@@ -819,7 +819,6 @@ void EMSESP::loop() {
|
|||||||
shower_.loop(); // check for shower on/off
|
shower_.loop(); // check for shower on/off
|
||||||
sensors_.loop(); // this will also send out via MQTT
|
sensors_.loop(); // this will also send out via MQTT
|
||||||
console_.loop(); // telnet/serial console
|
console_.loop(); // telnet/serial console
|
||||||
delay(ESP_DELAY); // some time to WiFi and everything else to catch up, calls yield, and also prevent overheating
|
|
||||||
|
|
||||||
// force a query on the EMS devices to fetch latest data at a set interval (1 min)
|
// force a query on the EMS devices to fetch latest data at a set interval (1 min)
|
||||||
if ((uuid::get_uptime() - last_fetch_ > EMS_FETCH_FREQUENCY)) {
|
if ((uuid::get_uptime() - last_fetch_ > EMS_FETCH_FREQUENCY)) {
|
||||||
|
|||||||
@@ -46,7 +46,6 @@
|
|||||||
#include "shower.h"
|
#include "shower.h"
|
||||||
|
|
||||||
#define LOG_TRACE_WATCH_NONE 0 // no watch set
|
#define LOG_TRACE_WATCH_NONE 0 // no watch set
|
||||||
#define ESP_DELAY 1
|
|
||||||
|
|
||||||
namespace emsesp {
|
namespace emsesp {
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ class Sensors {
|
|||||||
#ifdef WEMOS_D1_32
|
#ifdef WEMOS_D1_32
|
||||||
static constexpr uint8_t SENSOR_GPIO = 18; // Wemos D1-32 for compatibility D5
|
static constexpr uint8_t SENSOR_GPIO = 18; // Wemos D1-32 for compatibility D5
|
||||||
#else
|
#else
|
||||||
static constexpr uint8_t SENSOR_GPIO = 14;
|
static constexpr uint8_t SENSOR_GPIO = 14; // D5 is LED on wemos lolin D32, so use GPIO14
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1456,7 +1456,7 @@ void Thermostat::console_commands(Shell & shell, unsigned int context) {
|
|||||||
EMSESPShell::commands->add_command(ShellContext::THERMOSTAT,
|
EMSESPShell::commands->add_command(ShellContext::THERMOSTAT,
|
||||||
CommandFlags::ADMIN,
|
CommandFlags::ADMIN,
|
||||||
flash_string_vector{F_(change), F_(temp)},
|
flash_string_vector{F_(change), F_(temp)},
|
||||||
flash_string_vector{F_(degrees_mandatory), F_(hc_optional),F_(mode_optional)},
|
flash_string_vector{F_(degrees_mandatory), F_(hc_optional), F_(mode_optional)},
|
||||||
[=](Shell & shell __attribute__((unused)), const std::vector<std::string> & arguments) {
|
[=](Shell & shell __attribute__((unused)), const std::vector<std::string> & arguments) {
|
||||||
uint8_t hc = (arguments.size() >= 2) ? arguments[1].at(0) - '0' : DEFAULT_HEATING_CIRCUIT;
|
uint8_t hc = (arguments.size() >= 2) ? arguments[1].at(0) - '0' : DEFAULT_HEATING_CIRCUIT;
|
||||||
if ((arguments.size() == 3)) {
|
if ((arguments.size() == 3)) {
|
||||||
@@ -1464,7 +1464,6 @@ void Thermostat::console_commands(Shell & shell, unsigned int context) {
|
|||||||
} else {
|
} else {
|
||||||
set_temperature(atof(arguments.front().c_str()), HeatingCircuit::Mode::AUTO, hc);
|
set_temperature(atof(arguments.front().c_str()), HeatingCircuit::Mode::AUTO, hc);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
EMSESPShell::commands->add_command(
|
EMSESPShell::commands->add_command(
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
#define EMSESP_APP_VERSION "2.0.0a12"
|
#define EMSESP_APP_VERSION "2.0.0a13"
|
||||||
|
|||||||
Reference in New Issue
Block a user