mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Added pattern for DateTime channel types (#11681)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
parent
6c6c93e8f0
commit
6da7defddf
@ -8,62 +8,60 @@
|
||||
<item-type>String</item-type>
|
||||
<label>Last Error Event</label>
|
||||
<description>Displays contents of last [ERROR] event</description>
|
||||
<state readOnly="true"></state>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
<channel-type id="lastWarningEvent">
|
||||
<item-type>String</item-type>
|
||||
<label>Last Warning Event</label>
|
||||
<description>Displays contents of last [WARN] event</description>
|
||||
<state readOnly="true"></state>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
<channel-type id="lastCustomEvent" advanced="true">
|
||||
<item-type>String</item-type>
|
||||
<label>Last Custom Event</label>
|
||||
<description>Displays contents of last custom event</description>
|
||||
<state readOnly="true"></state>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
<channel-type id="warningEvents">
|
||||
<item-type>Number</item-type>
|
||||
<label>Warning Events Matched</label>
|
||||
<description>Displays number of [WARN] lines matched to search pattern</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
<channel-type id="errorEvents">
|
||||
<item-type>Number</item-type>
|
||||
<label>Error Events Matched</label>
|
||||
<description>Displays number of [ERROR] lines matched to search pattern</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
<channel-type id="customEvents" advanced="true">
|
||||
<item-type>Number</item-type>
|
||||
<label>Custom Events Matched</label>
|
||||
<description>Displays number of custom lines matched to search pattern</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
<channel-type id="logRotated" advanced="true">
|
||||
<item-type>DateTime</item-type>
|
||||
<label>Log Rotated</label>
|
||||
<description>Last time when log rotated recognized</description>
|
||||
<state readOnly="true"></state>
|
||||
<category>Time</category>
|
||||
<state readOnly="true" pattern="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="newErrorEvent">
|
||||
<kind>trigger</kind>
|
||||
<label>New Error Event</label>
|
||||
<description>Fires when a new [ERROR] appears in the log</description>
|
||||
<event>
|
||||
</event>
|
||||
</channel-type>
|
||||
<channel-type id="newWarningEvent">
|
||||
<kind>trigger</kind>
|
||||
<label>New Warning Event</label>
|
||||
<description>Fires when a new [WARN] appears in the log</description>
|
||||
<event>
|
||||
</event>
|
||||
</channel-type>
|
||||
<channel-type id="newCustomEvent" advanced="true">
|
||||
<kind>trigger</kind>
|
||||
<label>New Custom Event</label>
|
||||
<description>Fires when a new [CUSTOM] appears in the log</description>
|
||||
<event>
|
||||
</event>
|
||||
</channel-type>
|
||||
|
||||
</thing:thing-descriptions>
|
||||
|
Loading…
Reference in New Issue
Block a user