mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 16:59:50 +03:00
auto get temps from RC300/3000
This commit is contained in:
28
src/ems.cpp
28
src/ems.cpp
@@ -1887,22 +1887,32 @@ void ems_getThermostatValues() {
|
|||||||
uint8_t type = EMS_Thermostat.device_id;
|
uint8_t type = EMS_Thermostat.device_id;
|
||||||
uint8_t hc = EMS_Thermostat.hc;
|
uint8_t hc = EMS_Thermostat.hc;
|
||||||
|
|
||||||
if (model_id == EMS_MODEL_RC20) {
|
switch (model_id) {
|
||||||
ems_doReadCommand(EMS_TYPE_RC20StatusMessage, type); // to get the setpoint temp
|
case EMS_MODEL_RC20:
|
||||||
|
ems_doReadCommand(EMS_TYPE_RC20StatusMessage, type); // to get the temps
|
||||||
ems_doReadCommand(EMS_TYPE_RC20Set, type); // to get the mode
|
ems_doReadCommand(EMS_TYPE_RC20Set, type); // to get the mode
|
||||||
} else if (model_id == EMS_MODEL_RC30) {
|
break;
|
||||||
ems_doReadCommand(EMS_TYPE_RC30StatusMessage, type); // to get the setpoint temp
|
case EMS_MODEL_RC30:
|
||||||
|
ems_doReadCommand(EMS_TYPE_RC30StatusMessage, type); // to get the temps
|
||||||
ems_doReadCommand(EMS_TYPE_RC30Set, type); // to get the mode
|
ems_doReadCommand(EMS_TYPE_RC30Set, type); // to get the mode
|
||||||
} else if ((model_id == EMS_MODEL_RC35) || (model_id == EMS_MODEL_ES73)) {
|
break;
|
||||||
|
case EMS_MODEL_EASY:
|
||||||
|
ems_doReadCommand(EMS_TYPE_EasyStatusMessage, type);
|
||||||
|
break;
|
||||||
|
case EMS_MODEL_RC35:
|
||||||
|
case EMS_MODEL_ES73:
|
||||||
if (hc == 1) {
|
if (hc == 1) {
|
||||||
ems_doReadCommand(EMS_TYPE_RC35StatusMessage_HC1, type); // to get the setpoint temp
|
ems_doReadCommand(EMS_TYPE_RC35StatusMessage_HC1, type); // to get the temps
|
||||||
ems_doReadCommand(EMS_TYPE_RC35Set_HC1, type); // to get the mode
|
ems_doReadCommand(EMS_TYPE_RC35Set_HC1, type); // to get the mode
|
||||||
} else if (hc == 2) {
|
} else if (hc == 2) {
|
||||||
ems_doReadCommand(EMS_TYPE_RC35StatusMessage_HC2, type); // to get the setpoint temp
|
ems_doReadCommand(EMS_TYPE_RC35StatusMessage_HC2, type); // to get the temps
|
||||||
ems_doReadCommand(EMS_TYPE_RC35Set_HC2, type); // to get the mode
|
ems_doReadCommand(EMS_TYPE_RC35Set_HC2, type); // to get the mode
|
||||||
}
|
}
|
||||||
} else if ((model_id == EMS_MODEL_EASY)) {
|
break;
|
||||||
ems_doReadCommand(EMS_TYPE_EasyStatusMessage, type);
|
case EMS_MODEL_RC300:
|
||||||
|
ems_doReadCommand(EMS_TYPE_RCPLUSStatusMessage, type);
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ems_doReadCommand(EMS_TYPE_RCTime, type); // get Thermostat time
|
ems_doReadCommand(EMS_TYPE_RCTime, type); // get Thermostat time
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define APP_NAME "EMS-ESP"
|
#define APP_NAME "EMS-ESP"
|
||||||
#define APP_VERSION "1.8.1b18"
|
#define APP_VERSION "1.8.1b19"
|
||||||
#define APP_HOSTNAME "ems-esp"
|
#define APP_HOSTNAME "ems-esp"
|
||||||
|
|||||||
Reference in New Issue
Block a user