/// (Optional) The MQTT topic subscribed to receive availability (online/offline) updates.
/// </summary>
/// <value></value>
publicstringAvailability_topic{get;set;}
/// <summary>
/// (Optional) Information about the device this sensor is a part of to tie it into the device registry. Only works through MQTT discovery and when unique_id is set.
/// </summary>
/// <value></value>
publicDeviceConfigModelDevice{get;set;}
/// <summary>
/// (Optional) The type/class of the sensor to set the icon in the frontend. See https://www.home-assistant.io/integrations/sensor/#device-class for options.
/// </summary>
/// <value></value>
publicstringDevice_class{get;set;}
/// <summary>
/// (Optional) Defines the number of seconds after the sensor’s state expires, if it’s not updated. After expiry, the sensor’s state becomes unavailable. Defaults to 0 in hass.
/// </summary>
/// <value></value>
publicint?Expire_after{get;set;}
/// <summary>
/// Sends update events even if the value hasn’t changed. Useful if you want to have meaningful value graphs in history.
/// </summary>
/// <value></value>
publicbool?Force_update{get;set;}
/// <summary>
/// (Optional) The icon for the sensor.
/// </summary>
/// <value></value>
publicstringIcon{get;set;}
/// <summary>
/// (Optional) Defines a template to extract the JSON dictionary from messages received on the json_attributes_topic.
/// </summary>
/// <value></value>
publicstringJson_attributes_template{get;set;}
/// <summary>
/// (Optional) The MQTT topic subscribed to receive a JSON dictionary payload and then set as sensor attributes. Implies force_update of the current sensor state when a message is received on this topic.
/// </summary>
/// <value></value>
publicstringJson_attributes_topic{get;set;}
/// <summary>
/// (Optional) The name of the MQTT sensor. Defaults to MQTT Sensor in hass.
/// </summary>
/// <value></value>
publicstringName{get;set;}
/// <summary>
/// (Optional) The payload that represents the available state.
/// </summary>
/// <value></value>
publicstringPayload_available{get;set;}
/// <summary>
/// (Optional) The payload that represents the unavailable state.
/// </summary>
/// <value></value>
publicstringPayload_not_available{get;set;}
/// <summary>
/// (Optional) The maximum QoS level of the state topic.
/// </summary>
/// <value></value>
publicint?Qos{get;set;}
/// <summary>
/// The MQTT topic subscribed to receive sensor values.
/// </summary>
/// <value></value>
publicstringState_topic{get;set;}
/// <summary>
/// (Optional) An ID that uniquely identifies this sensor. If two sensors have the same unique ID, Home Assistant will raise an exception.
/// </summary>
/// <value></value>
publicstringUnique_id{get;set;}
/// <summary>
/// (Optional) Defines the units of measurement of the sensor, if any.
/// </summary>
/// <value></value>
publicstringUnit_of_measurement{get;set;}
/// <summary>
/// (Optional) Defines a template to extract the value.
/// </summary>
/// <value></value>
publicstringValue_template{get;set;}
}
publicclassDeviceConfigModel
{
/// <summary>
/// (Optional) A list of connections of the device to the outside world as a list of tuples [connection_type, connection_identifier]. For example the MAC address of a network interface: "connections": [["mac", "02:5b:26:a8:dc:12"]].
/// (Optional) An Id to identify the device. For example a serial number.
/// </summary>
/// <value></value>
publicstringIdentifiers{get;set;}
/// <summary>
/// (Optional) The manufacturer of the device.
/// </summary>
/// <value></value>
publicstringManufacturer{get;set;}
/// <summary>
/// (Optional) The model of the device.
/// </summary>
/// <value></value>
publicstringModel{get;set;}
/// <summary>
/// (Optional) The name of the device.
/// </summary>
/// <value></value>
publicstringName{get;set;}
/// <summary>
/// (Optional) The firmware version of the device.
/// </summary>
/// <value></value>
publicstringSw_version{get;set;}
/// <summary>
/// (Optional) Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.