sprinkler DRY overrides ON

This commit is contained in:
2026-09-27 23:19:10 +03:00
parent 0afe8bc866
commit 47fe53db41
+5
View File
@@ -834,6 +834,11 @@ int out_sprinkler::Ctrl(itemCmd cmd, char* subItem, bool toExecute, bool authori
switch (cmd.getCmd()) switch (cmd.getCmd())
{ {
case CMD_ON: 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(); getAndNotifyStatus();
return 1; return 1;