PID alarm redisign & airset termostat cmd compat

This commit is contained in:
2022-01-27 02:37:00 +03:00
parent b7c6eaaff1
commit c7d1bc65c0
2 changed files with 9 additions and 0 deletions

View File

@@ -1066,6 +1066,13 @@ int Item::Ctrl(itemCmd cmd, char* subItem, bool allowRecursion)
debugSerial<<F("ON:Already Active\n"); debugSerial<<F("ON:Already Active\n");
return -3; return -3;
} }
//newly added. For climate commands need to restore previous temperature
case CMD_AUTO:
case CMD_COOL:
case CMD_HEAT:
case CMD_FAN:
case CMD_DRY:
if (!cmd.isValue()) cmd.loadItemDef(this); // if no_suffix - both, command ON and value provided if (!cmd.isValue()) cmd.loadItemDef(this); // if no_suffix - both, command ON and value provided
status2Send |= SEND_COMMAND | SEND_PARAMETERS | SEND_IMMEDIATE; status2Send |= SEND_COMMAND | SEND_PARAMETERS | SEND_IMMEDIATE;
toExecute=true; toExecute=true;
@@ -1700,6 +1707,7 @@ int Item::VacomSetFan(itemCmd st) {
switch (cmd){ switch (cmd){
case CMD_OFF: case CMD_OFF:
case CMD_HALT: case CMD_HALT:
// produvka here
val=0; val=0;
break; break;

View File

@@ -41,5 +41,6 @@ public:
protected: protected:
pidPersistent * store; pidPersistent * store;
bool getConfig(); bool getConfig();
int getAlarmVal();
}; };
#endif #endif