mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 03:57:27 +00:00
fix: fixes for room combination in manual/auto mode with actual crestron partition sensors
This commit is contained in:
parent
71815eff17
commit
a3351812cd
2 changed files with 6 additions and 2 deletions
|
|
@ -87,6 +87,8 @@ namespace PepperDash.Essentials.Core
|
||||||
|
|
||||||
public void SetAutoMode()
|
public void SetAutoMode()
|
||||||
{
|
{
|
||||||
|
Debug.LogMessage(Serilog.Events.LogEventLevel.Verbose, $"Setting {Key} to Auto Mode", this);
|
||||||
|
|
||||||
IsInAutoMode = true;
|
IsInAutoMode = true;
|
||||||
if (PartitionPresentFeedback != null)
|
if (PartitionPresentFeedback != null)
|
||||||
{
|
{
|
||||||
|
|
@ -106,6 +108,8 @@ namespace PepperDash.Essentials.Core
|
||||||
|
|
||||||
public void SetManualMode()
|
public void SetManualMode()
|
||||||
{
|
{
|
||||||
|
Debug.LogMessage(Serilog.Events.LogEventLevel.Verbose, $"Setting {Key} to Manual Mode", this);
|
||||||
|
|
||||||
IsInAutoMode = false;
|
IsInAutoMode = false;
|
||||||
if (PartitionPresentFeedback != null)
|
if (PartitionPresentFeedback != null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -132,8 +132,6 @@ namespace PepperDash.Essentials.Core
|
||||||
|
|
||||||
void PartitionPresentFeedback_OutputChange(object sender, FeedbackEventArgs e)
|
void PartitionPresentFeedback_OutputChange(object sender, FeedbackEventArgs e)
|
||||||
{
|
{
|
||||||
if (!IsInAutoMode) return;
|
|
||||||
|
|
||||||
StartDebounceTimer();
|
StartDebounceTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -239,6 +237,8 @@ namespace PepperDash.Essentials.Core
|
||||||
{
|
{
|
||||||
partition.SetAutoMode();
|
partition.SetAutoMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DetermineRoomCombinationScenario();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetManualMode()
|
public void SetManualMode()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue