mirror of
https://github.com/excaliburpartners/OmniLinkBridge
synced 2025-05-12 10:43:12 +00:00

- Update docker run command to use local time zone - Improve area and zone MQTT support - Add option to change MQTT prefix to support multiple instances - Add detailed zone sensor and thermostat humidity sensor - Add prefix for MQTT discovery entity name - Request zone status update on area status change
33 lines
890 B
C#
33 lines
890 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 Sensor : Device
|
|
{
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public enum DeviceClass
|
|
{
|
|
humidity,
|
|
temperature
|
|
}
|
|
|
|
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
|
public DeviceClass? device_class { get; set; }
|
|
|
|
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
|
public string icon { get; set; }
|
|
|
|
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
|
public string unit_of_measurement { get; set; }
|
|
|
|
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
|
public string value_template { get; set; }
|
|
}
|
|
}
|