Skip to content

Commit

Permalink
out of service
Browse files Browse the repository at this point in the history
  • Loading branch information
b1conrad committed Jul 14, 2024
1 parent d59efed commit 21b646f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions krl/io.picolabs.plan.wovyn-sensors.krl
Original file line number Diff line number Diff line change
Expand Up @@ -320,4 +320,15 @@ daysInRecord()
}
if referrer then send_directive("_redirect",{"url":referrer})
}
rule takeDeviceOutOfService {
select when io_picolabs_plan_wovyn_sensors out_of_service
pre {
device = event:attr("name")
used = ent:mapping >< device
}
if not used && ent:record >< device then noop()
fired {
clear ent:record{device}
}
}
}

1 comment on commit 21b646f

@b1conrad
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For manual use.

Please sign in to comment.