Files
greenhouse-MyController/conf/resources/scripts/conditions/If either garage door has been open for more than 15 minutes.js

4 lines
201 B
JavaScript

northDoorOpen = mcApi.uidTag().getByUid("north-garage-door-tripped").getResource();
southDoorOpen = mcApi.uidTag().getByUid("south-garage-door-tripped").getResource();
!northDoorOpen || !southDoorOpen