Rules Examples

From wiki.netio-products.com
Revision as of 16:27, 22 October 2021 by Djestrab (talk | contribs) (Created page with "== Watchdog monitoring == Monitor the address defined in WATCHDOG_1. If the Watchdog fails, restart device at output 1 (action 2 = SHORT OFF) <nowiki> { "conditions": {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Watchdog monitoring

Monitor the address defined in WATCHDOG_1. If the Watchdog fails, restart device at output 1 (action 2 = SHORT OFF)

{
  "conditions": {
    "WDT/WATCHDOG_1/FAIL": true
  },
  "actions": {
    "OUTPUTS/1/ACTION": 2
  }
}

Watchdog monitoring with filter

Monitor the address defined in WATCHDOG_1. If output 4 is ON (condition in filters) and the Watchdog reports a failure, restart device on output 4.

{
  "conditions": {
    "WDT/WATCHDOG_1/FAIL": true
  },
  "filters": {
    "OUTPUTS/4/STATE": "on"
  },
  "actions": {
    "OUTPUTS/4/ACTION": 2
  }
}

PAB - zones

If PAB_ZONE_1 is in zone 1 and the TestSchedule is active at the same time, turn ON output 4 (action 1 = ON)

{
  "conditions": {
    "PAB/PAB_ZONE_1/ZONE": 1
  },
  "filters": {
    "SCHEDULE/TestSchedule/ACTIVE": true
  },
  "actions": {
    "OUTPUTS/4/ACTION": 1
  }
}

PAB - range

If PAB1_1 or PAB1_2 are true, trigger an alarm in Cloud at output 1

{
  "conditions": {
    "operator": "OR",
    "PAB/PAB1_1/IN": true,
    "PAB/PAB1_2/IN": true
  },
  "actions": {
    "CLOUD/OUTPUT/1/ALARM": "${COND_RESULT}"
  }
}