mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
PID alarm redisign & airset termostat cmd compat
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -41,5 +41,6 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
pidPersistent * store;
|
pidPersistent * store;
|
||||||
bool getConfig();
|
bool getConfig();
|
||||||
|
int getAlarmVal();
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user