New: the AI firewall watches every module and explains each incident in plain words. See how it works

Remote sites: UPS and cameras

The UPS gateway of the remote sites solution – keys, status words, alarm rules, the UPS watchdog root flow – and the Camera page with four live slots.

Each site of the remote sites solution has a UPS gateway that reports two UPS units, A and B, and may have cameras. This page explains the UPS profile, the watchdog that notices a silent UPS unit, the UPS page and the Camera page.

Profile: Remote sites · UPS

The UPS gateway reports both units under keys with the unit’s letter. For unit A:

KeyLabelUnit or values
ups_a_chargeUPS A charge%, 0 to 100
ups_a_voltageUPS A voltageV
ups_a_tempUPS A temperature°C
ups_a_statusUPS A battery statusA status word (below)
ups_a_alarmUPS A alarm codeAn alarm word (below)

Unit B uses the same keys with ups_b_. The profile also has lat and lng.

Status and alarm words

The battery status and the alarm code are text keys. The board shows them as coloured words:

ups_*_statusShown asColour
normalBattery normalGreen
connectedBattery connectedGreen
floatingFloating chargeAmber
equalizingEqualizing chargeAmber
dischargingDischargingAmber
low_batteryBattery lowAmber
self_testSelf testAmber
not_connectedBattery not connectedRed
faultBattery faultRed
ups_*_alarmShown asColour
mainsOn mainsGreen
battery_faultBattery faultRed
dischargingBattery dischargingAmber
low_voltageBattery voltage lowAmber
almost_emptyBattery almost emptyRed
overheatedUPS overheatedRed
supply_faultSupply faultRed
overloadedUPS overloadedRed
bypass_onBypass onAmber
bypass_faultBypass faultRed

A word the board does not know shows as Unknown status or Unknown code in amber. If your UPS reports numbers or other words, convert them in the profile’s root flow before they are stored; see Adapting a solution to your devices.

If your UPS speaks SNMP, Hermetry can poll it with the ready UPS template instead; its keys differ (battery.charge, output.source …). See SNMP templates.

Alarm rules

TypeSeverityConditionDebounce
ups_battery_lowMajorups_a_charge or ups_b_charge < 25 % (hysteresis 3)2 readings to raise, 2 to clear
ups_faultMajorEither unit’s status is fault or not_connected1 / 1
device_offlineWarningThe gateway sent nothing for 600 seconds

The UPS watchdog

The gateway can stay online while one of its units goes silent. The flow Remote sites: UPS root notices that. It is a profile root for the UPS profile: it replaces the organisation’s root flow for UPS gateways only.

Device messages (Flow input) → Alarm rules → Message type
     telemetry   → Save telemetry
                 → "Carries ups_a_voltage" → Watchdog (5 min, per device)
                        timeout → Raise alarm ups_a_offline (Warning) "UPS A stopped reporting"
                        ok      → Clear alarm ups_a_offline
                 → the same for ups_b_voltage / ups_b_offline
     attributes  → Save client attributes
     rpc_request → System log
     otherwise   → System log
Errors → System log
  • A unit that sends no ups_a_voltage (or ups_b_voltage) for 5 minutes raises ups_a_offline (or ups_b_offline) as a Warning. The next reading clears it.
  • The watchdog counts per device, so every UPS gateway has its own timer.
  • In a full installation the flow is turned on and bound to the UPS profile. Keep its Save telemetry, Save client attributes and Alarm rules blocks: without them, UPS readings are no longer stored or checked.

To change the silence time, edit the Watchdog blocks. To use the pattern for other equipment, see Counters, statistics and watchdogs and Hosts, the root flow and profile root flows.

The UPS page

The UPS page opens from the UPS units tile of a site page. It finds the site’s UPS gateway through the FEEDS relation. For each unit:

CardShows
UPS A chargeA bar: red below 25 %, amber below 50 %, green above
UPS A voltageThe voltage with “Updated … ago”: red below 200 V, amber above 245 V
UPS A temperatureBlue below 10 °C, green to 35, amber to 45, red above
UPS A battery statusThe status word, No data without a reading
UPS A alarm codeThe alarm word
UPS A historyCharge and voltage over the board window, on two axes
UPS A readingsCharge, temperature and voltage per time stamp, newest first, ten a page, export

Below them, Alarms of the UPS units lists the gateway’s alarms; a row opens the alarm’s page.

If the page is empty, check that the UPS gateway has a FEEDS relation to the site controller (from the UPS to the controller). See Relations.

The Camera page

The Camera page opens from the Cameras tile of a site page and shows the site’s cameras live.

ItemBehaviour
Which devicesThe devices placed in the site’s asset whose profile connects by RTSP or by the supported camera protocol
LayoutA fixed grid of 4 video cards (2 × 2). Card n shows the n-th camera of the site, by name.
More than fourThe count card “Cameras at this site (the first 4 are shown)” tells you; the fifth and later are not shown
A slot without a camera, or a camera without live viewStays empty, with the player’s own text, never an error
StartNever on its own: press play. Each running camera uses camera minutes.
Still watching?Asked every 5 minutes; stops when the card is out of view
Higher qualityOffered when the camera has a second usable H.264 stream

To show a camera on the page:

  1. Add the camera and turn live view on. See Add a camera or recorder and Live view.
  2. Place the camera device in the site’s asset. See Placing devices.
  3. If the camera’s profile was created after the solution was installed, edit the board’s hidden cameras parameter so that it includes that profile.

Watching needs the permission Watch the live picture of a camera and read access to the camera’s device. See Cameras on dashboards and Camera limits and privacy.

A board made from the template keeps the Camera page and its tile, but not the camera cards, because they read a relation. Add Video player cards yourself, bound to each camera’s liveUrl attribute.