mirror of
https://github.com/anklimov/lighthub
synced 2026-10-28 11:15:00 +00:00
sprinkler DRY overrides ON
This commit is contained in:
@@ -834,6 +834,11 @@ int out_sprinkler::Ctrl(itemCmd cmd, char* subItem, bool toExecute, bool authori
|
||||
switch (cmd.getCmd())
|
||||
{
|
||||
case CMD_ON:
|
||||
if (getIntFromJson(gatesObj, "@state", SP_UNKNOWN) == SP_DRYING)
|
||||
{
|
||||
item->setCmd(CMD_DRY); //TODO- Test
|
||||
//item->SendStatusImmediate(itemCmd().Cmd(CMD_DRY).setSuffix(S_CMD), FLAG_COMMAND);
|
||||
}
|
||||
getAndNotifyStatus();
|
||||
return 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user