Skip to content

Commit

Permalink
minor debug
Browse files Browse the repository at this point in the history
  • Loading branch information
aficustree committed Jun 18, 2018
1 parent 112f3e5 commit 2545d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class AlarmdecoderPlatform {
stateObj.panel_armed_night = true;
/* 0 = stay, 1 = away, 2 = night, 3 = disarmed, 4 = alarm */
this.log(JSON.stringify(stateObj));
if(stateObj.panel_alarming || stateObj.panel_panicked)
if(stateObj.panel_alarming || stateObj.panel_panicked || stateObj.panel_fire_detected)
this.alarmDecoderSystem.state = 4;
else if(stateObj.panel_armed_night)
this.alarmDecoderSystem.state = 2;
Expand Down

0 comments on commit 2545d14

Please sign in to comment.