mirror of
https://github.com/excaliburpartners/OmniLinkBridge
synced 2025-05-08 01:33:12 +00:00

- Restructured code to be event based with modules - Added MQTT module for Home Assistant - Added pushover notifications - Added web service API subscriptions file to persist subscriptions
31 lines
674 B
C#
31 lines
674 B
C#
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace OmniLinkBridge.MQTT
|
|
{
|
|
public class BinarySensor : Device
|
|
{
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public enum DeviceClass
|
|
{
|
|
battery,
|
|
door,
|
|
garage_door,
|
|
gas,
|
|
moisture,
|
|
motion,
|
|
problem,
|
|
smoke,
|
|
window
|
|
}
|
|
|
|
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
|
public DeviceClass? device_class { get; set; }
|
|
}
|
|
}
|