Skip to content

Commit

Permalink
addes silent to shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
misanorot committed Nov 5, 2023
1 parent 9cffc44 commit 50a1803
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
### **WORK IN PROGRESS**
* (misanorot) added silent_alarm (state list) to shortcuts

### 3.4.2 (2023-10-31)
* (misanorot) added enhancement #170

Expand Down
2 changes: 1 addition & 1 deletion admin/index_m.html
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@
data-options="status.state_list;status.activated;status.gets_activated;status.deactivated;status.burglar_alarm;status.silent_alarm;status.siren;status.activation_failed;status.sleep;status.activated_with_warnings;status.enableable;status.sharp_inside_activated;status.siren_inside;info.notification_circuit_changes;status.alarm_flash;status.silent_flash;other_alarms.one_changes;other_alarms.two_changes"
class=" translate">Name</th>
<th data-name="trigger_val" style="background: #174475" data-type="select"
data-options=" ;true;false;deactivated;sharp;sharp_inside;burglary;night_rest;gets_activated;activation_failed;activation_aborted"
data-options=" ;true;false;deactivated;sharp;sharp_inside;burglary;night_rest;gets_activated;activation_failed;activation_aborted;silent_alarm"
class=" translate">Trigger</th>
<th data-name="name" style="background: #174475" data-type="text" class=" translate">Name</th>
<th data-name="name_id" style="background: #174475" data-type="text" class=" translate">Object-ID
Expand Down
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1728,6 +1728,9 @@ class Alarm extends utils.Adapter {
case 7:
setVal = 'activation_aborted';
break;
case 8:
setVal = 'silent_alarm';
break;
default:
setVal = val;
this.log.warn(`Wrong list state at shortcuts: ${val}`);
Expand Down

0 comments on commit 50a1803

Please sign in to comment.