[powermax] New channel of type Contact to show the zone arm status (#9192)

Allow using lock icon from the classic iconset
Allow displaying the "Locks" badge in MainUI

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo
2020-12-02 18:21:05 +01:00
committed by GitHub
parent 102f770881
commit ef31659452
5 changed files with 16 additions and 15 deletions

View File

@@ -109,11 +109,18 @@
<channel-type id="armed">
<item-type>Switch</item-type>
<label>Zone Armed</label>
<label>Zone Armed (Switch)</label>
<description>Whether or not the zone is armed</description>
<state readOnly="true"></state>
</channel-type>
<channel-type id="locked">
<item-type>Contact</item-type>
<label>Zone Armed (Contact)</label>
<description>Whether or not the zone is armed (CLOSED when armed)</description>
<state readOnly="true"></state>
</channel-type>
<channel-type id="pgm_status" advanced="true">
<item-type>Switch</item-type>
<label>PGM Status</label>

View File

@@ -17,6 +17,7 @@
<channels>
<channel id="tripped" typeId="tripped"/>
<channel id="armed" typeId="armed"/>
<channel id="locked" typeId="locked"/>
<channel id="last_trip" typeId="last_trip"/>
<channel id="low_battery" typeId="system.low-battery"/>
<channel id="bypassed" typeId="bypassed"/>