Added armed_custom_bypass status. (#673)

Added icons for armed_night and armed_custom_bypass.
This commit is contained in:
uchagani 2017-11-28 00:39:24 -06:00 committed by Paulus Schoutsen
parent 326fa00365
commit 2680a3f7e3
3 changed files with 10 additions and 0 deletions

View File

@ -112,6 +112,10 @@ class HaStateLabelBadge extends
return 'mdi:nature';
} else if (state.state === 'armed_home') {
return 'mdi:home-variant';
} else if (state.state === 'armed_night') {
return 'mdi:weather-night';
} else if (state.state === 'armed_custom_bypass') {
return 'mdi:security-home';
} else if (state.state === 'triggered') {
return 'mdi:alert-circle';
}

View File

@ -103,12 +103,16 @@ class MoreInfoAlarmControlPanel extends window.hassMixins.EventsMixin(Polymer.El
this.codeInputEnabled = (
newVal.state === 'armed_home' ||
newVal.state === 'armed_away' ||
newVal.state === 'armed_night' ||
newVal.state === 'armed_custom_bypass' ||
newVal.state === 'disarmed' ||
newVal.state === 'pending' ||
newVal.state === 'triggered');
this.disarmButtonVisible = (
newVal.state === 'armed_home' ||
newVal.state === 'armed_away' ||
newVal.state === 'armed_night' ||
newVal.state === 'armed_custom_bypass' ||
newVal.state === 'pending' ||
newVal.state === 'triggered');
this.armHomeButtonVisible = newVal.state === 'disarmed';

View File

@ -22,6 +22,7 @@
"armed_home": "Armed home",
"armed_away": "Armed away",
"armed_night": "Armed night",
"armed_custom_bypass": "Armed custom bypass",
"pending": "Pending",
"arming": "Arming",
"disarming": "Disarming",
@ -207,6 +208,7 @@
"armed_home": "[%key:state_badge::alarm_control_panel::armed%]",
"armed_away": "[%key:state_badge::alarm_control_panel::armed%]",
"armed_night": "[%key:state_badge::alarm_control_panel::armed%]",
"armed_custom_bypass": "[%key:state_badge::alarm_control_panel::armed%]",
"pending": "Pend",
"arming": "Arming",
"disarming": "Disarm",