V0.16 cardSupervision/cardSupervision2 added
This release Implements two new cards: cardSupervision and cardSupervision2.
This cards can be used to supervise the state of all items in an openHAB group against a value, theshold or timeout.
All items which match the configured supervision mode are shown in the card.
Example to supervise a group of plant moisture sensors agains a group of threshold values:
Example openHAB groups:
Group Moisture
Group Thresholds
//Plant moisture measurement items:
Number M_Plant_A "01. Kaktus" (Moisture)
Number M_Plant_B "02. Monstera" (Moisture)
//Plant moisture threshold values:
Dimmer TH_Plant_A "01. Kaktus" (Thresholds)
Dimmer TH_Plant_B "02. Monstera" (Thresholds)
//Result item
Number NSPanelPlantCheckResult "Number of dry plants"Example card yaml for this setup:
cards:
- name: PlantSupervsion
title: Dry plants
type: cardSupervision
ohGroup: Moisture
values: Thresholds
result: NSPanelPlantCheckResult
mode: "<="
icon: palm-tree
iconColor: yellowIn this configuration the card shows the M_Plan_A item, when the state is smaller or equal to the value of TH_Plant_A, because M_Plant_A has the same label ("01. Kaktus") as TH_Plant_A.
As cardSupervision:
As cardSupervision2:
Supervision mode timeout
The timeout supervision mode can be used to supervise when an item got the last update. This is useful for battery driven devices to check if they are still alive or dead because of a drained battery.
You can add all the battery state items to a group and supervise them with a longer timeout. For zigbee devices a timeout of 900 minutes or longer must be used to check if they are still alive.
Example card yaml for a timeout supervision:
cards:
- name: BatterySupervsion
title: Battery check
type: cardSupervision
ohGroup: gBattery
values: NSPanelBatteryTimeout
mode: "timeout"
icon: battery-remove
iconColor: red