OmniLinkBridge/OmniLinkBridge/MQTT/HomeAssistant/Climate.cs
2024-05-03 21:35:46 -04:00

39 lines
1.4 KiB
C#

using System.Collections.Generic;
namespace OmniLinkBridge.MQTT.HomeAssistant
{
public class Climate : Device
{
public Climate(DeviceRegistry deviceRegistry) : base(deviceRegistry)
{
}
public string status { get; set; }
public string action_topic { get; set; }
public string current_temperature_topic { get; set; }
public string temperature_low_state_topic { get; set; }
public string temperature_low_command_topic { get; set; }
public string temperature_high_state_topic { get; set; }
public string temperature_high_command_topic { get; set; }
public string min_temp { get; set; } = "45";
public string max_temp { get; set; } = "95";
public string mode_state_topic { get; set; }
public string mode_command_topic { get; set; }
public List<string> modes { get; set; } = new List<string>(new string[] { "auto", "off", "cool", "heat" });
public string fan_mode_state_topic { get; set; }
public string fan_mode_command_topic { get; set; }
public List<string> fan_modes { get; set; } = new List<string>(new string[] { "auto", "on", "cycle" });
public string preset_mode_state_topic { get; set; }
public string preset_mode_command_topic { get; set; }
public List<string> preset_modes { get; set; } = new List<string>(new string[] { "off", "on", "vacation" });
}
}