mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-14 04:04:58 +00:00
Started working on Room Occupancy
This commit is contained in:
@@ -16,7 +16,7 @@ namespace PepperDash.Essentials.Core
|
||||
{
|
||||
public abstract BoolFeedback RoomIsOnFeedback { get; protected set; }
|
||||
public abstract BoolFeedback IsCoolingDownFeedback { get; protected set; }
|
||||
public abstract BoolFeedback IsWarmingUpFeedback { get; protected set; }
|
||||
public abstract BoolFeedback IsWarmingUpFeedback { get; protected set; }
|
||||
|
||||
// In concrete classes, these should be computed from the relevant devices
|
||||
public virtual uint CooldownTime { get { return 10000; } }
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
using Crestron.SimplSharpPro.GeneralIO;
|
||||
|
||||
namespace PepperDash.Essentials.Core.Room
|
||||
{
|
||||
public interface IHasOccupancyAwareness
|
||||
{
|
||||
OccupancyStatus RoomOccupancy { get; }
|
||||
|
||||
}
|
||||
|
||||
public class OccupancyStatus
|
||||
{
|
||||
BoolFeedback RoomIsOccupied { get; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user