Skip to content

Commit

Permalink
Contact item in group
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Shatsillo <pshatsillo@gmail.com>
  • Loading branch information
Pshatsillo committed Apr 18, 2023
1 parent 692192f commit 9bbc16c
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,16 @@ public static String getItemsList(@Nullable String header) {
} else {
logger.debug("modesCol is null!");
}
} else if (grpItem instanceof ContactItem) {
if ((grpItem.hasTag("Door")) || (grpItem.hasTag("GarageDoor"))
|| (grpItem.hasTag("FrontDoor")) || (grpItem.hasTag("CellarDoor"))
|| (grpItem.hasTag("SideDoor")) || (grpItem.hasTag("BackDoor"))) {
yDev.addProperties(grpItem.getName(), YandexDevice.PROP_EVENT,
YandexDevice.EVENT_OPEN, "");
} else if ((grpItem.hasTag("Blinds")) || (grpItem.hasTag("Window"))) {
yDev.addProperties(grpItem.getName(), YandexDevice.PROP_EVENT,
YandexDevice.EVENT_OPEN, "");
}
}
}
}
Expand Down

0 comments on commit 9bbc16c

Please sign in to comment.