Skip to content

Commit

Permalink
Added vacation mode for alarm panel
Browse files Browse the repository at this point in the history
Changed some log messages from information to debug
  • Loading branch information
CyberDNS committed Feb 5, 2022
1 parent b5f4f5a commit 6b72554
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Lupusec2Mqtt/Lupusec/Dtos/AlarmMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public enum AlarmModeAction : byte
DISARM = 0,
ARM_AWAY = 1,
ARM_NIGHT = 2,
ARM_HOME = 3

ARM_HOME = 3,
ARM_VACATION = 4
}
}
2 changes: 1 addition & 1 deletion src/Lupusec2Mqtt/Lupusec/LupusecService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private async Task<T> SendRequest<T>(HttpRequestMessage request)
HttpResponseMessage response = await _client.SendAsync(request);
response.EnsureSuccessStatusCode();
T responseBody = await response.Content.ReadAsAsync<T>();
_logger.LogInformation("This was the Answer for requesting {uri}:\n{body}", request.RequestUri, responseBody);
_logger.LogDebug("This was the Answer for requesting {uri}:\n{body}", request.RequestUri, responseBody);
return responseBody;
}
catch (Exception ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ private string GetState()
case AlarmMode.HomeArm1:
return "armed_night";
case AlarmMode.HomeArm2:
case AlarmMode.HomeArm3:
return "armed_home";
case AlarmMode.HomeArm3:
return "armed_vacation";
default:
return null;
}
Expand Down

0 comments on commit 6b72554

Please sign in to comment.