mqtt2ha
    Preparing search index...

    Interface ClimateInfo

    Configuration interface for a climate component.

    interface ClimateInfo {
        action_template?: string;
        availability?: AvailabilityConfiguration;
        component: "climate";
        current_humidity_template?: string;
        current_temperature_template?: string;
        device?: DeviceConfiguration;
        device_class?: string;
        enabled_by_default?: boolean;
        entity_category?: "config" | "diagnostic" | "system";
        expire_after?: number;
        fan_mode_command_template?: string;
        fan_mode_state_template?: string;
        fan_modes?: string[];
        force_update?: boolean;
        icon?: string;
        initial?: number;
        json_attributes_template?: string;
        max_humidity?: number;
        max_temp?: number;
        min_humidity?: number;
        min_temp?: number;
        mode_command_template?: string;
        mode_state_template?: string;
        modes?: string[];
        name?: string;
        object_id?: string;
        optimistic?: boolean;
        origin?: OriginConfiguration;
        payload_off?: string;
        payload_on?: string;
        power_command_template?: string;
        precision?: number;
        preset_mode_command_template?: string;
        preset_mode_value_template?: string;
        preset_modes?: string[];
        qos?: number;
        retain?: boolean;
        swing_horizontal_mode_command_template?: string;
        swing_horizontal_mode_state_template?: string;
        swing_horizontal_modes?: string[];
        swing_mode_command_template?: string;
        swing_mode_state_template?: string;
        swing_modes?: string[];
        target_humidity_command_template?: string;
        target_humidity_state_template?: string;
        temp_step?: number;
        temperature_command_template?: string;
        temperature_high_command_template?: string;
        temperature_high_state_template?: string;
        temperature_low_command_template?: string;
        temperature_low_state_template?: string;
        temperature_state_template?: string;
        temperature_unit?: string;
        unique_id?: string;
        value_template?: string;
        [key: string]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown

      Additional properties to serialize as part of the configuration payload. Typically used for command and state topics.

    Index

    Properties

    action_template?: string

    A template to render the value received on the action_topic with.

    Configures the availability settings of the entity.

    component: "climate"

    The type of component, constrained to valid component types

    current_humidity_template?: string

    A template with which the value received on current_humidity_topic will be rendered.

    current_temperature_template?: string

    A template with which the value received on current_temperature_topic will be rendered.

    Information about the device this component is a part of to tie it into the device registry. Only works when unique_id is set. At least one of identifiers or connections must be present to identify the device.

    device_class?: string

    Sets the class of the device, changing the device state and icon that is displayed on the frontend. The device_class can be null. Different components have different valid device classes.

    enabled_by_default?: boolean

    Flag which defines if the entity should be enabled when first added. Default is true.

    entity_category?: "config" | "diagnostic" | "system"

    The category of the entity

    • "config": For configuration related entities.
    • "diagnostic": For read-only diagnostic entities.
    • "system": For system related entities.
    expire_after?: number

    If set, it defines the number of seconds after the sensor’s state expires, if it’s not updated. After expiry, the sensor’s state becomes unavailable. Default the sensors state never expires.

    fan_mode_command_template?: string

    A template to render the value sent to the fan_mode_command_topic with.

    fan_mode_state_template?: string

    A template to render the value received on the fan_mode_state_topic with.

    fan_modes?: string[]

    A list of supported fan modes. Default: ["auto", "low", "medium", "high"]

    force_update?: boolean

    Sends update events (which results in update of state object’s last_changed) even if the sensor’s state hasn’t changed. Useful if you want to have meaningful value graphs in history or want to create an automation that triggers on every incoming state message (not only when the sensor’s new state is different to the current one).

    icon?: string

    Icon to use for the entity in the frontend. Should be a Material Design Icon (format: mdi:icon-name).

    initial?: number

    Set the initial target temperature. The default value depends on the temperature unit and will be 21° or 69.8°F.

    json_attributes_template?: string

    Template to extract the JSON dictionary from the json_attributes_topic.

    max_humidity?: number

    The maximum target humidity percentage that can be set. Default: 99

    max_temp?: number

    Maximum set point available. The default value depends on the temperature unit, and will be 35°C or 95°F.

    min_humidity?: number

    The minimum target humidity percentage that can be set. Default: 30

    min_temp?: number

    Minimum set point available. The default value depends on the temperature unit, and will be 7°C or 44.6°F.

    mode_command_template?: string

    A template to render the value sent to the mode_command_topic with.

    mode_state_template?: string

    A template to render the value received on the mode_state_topic with.

    modes?: string[]

    A list of supported modes. Needs to be a subset of the default values. Default: ["auto", "off", "cool", "heat", "dry", "fan_only"]

    name?: string

    The name of the entity. This will be used for the entity name in the Home Assistant UI. Can be set to null if only the device name is relevant.

    object_id?: string

    Used instead of name for automatic generation of entity_id.

    optimistic?: boolean

    Flag that defines if the climate works in optimistic mode. Default: true if no state topic defined, else false.

    Information about the application that is the origin of the component.

    payload_off?: string

    The payload sent to turn off the device. Default: "OFF"

    payload_on?: string

    The payload sent to turn the device on. Default: "ON"

    power_command_template?: string

    A template to render the value sent to the power_command_topic with. The value parameter is the payload set for payload_on or payload_off.

    precision?: number

    The desired precision for this device. Can be used to match your actual thermostat's precision. Supported values are 0.1, 0.5 and 1.0. Default: 0.1 for Celsius and 1.0 for Fahrenheit.

    preset_mode_command_template?: string

    Defines a template to generate the payload to send to preset_mode_command_topic.

    preset_mode_value_template?: string

    Defines a template to extract the preset_mode value from the payload received on preset_mode_state_topic.

    preset_modes?: string[]

    List of preset modes this climate is supporting. Common examples include eco, away, boost, comfort, home, sleep and activity. Default: []

    qos?: number

    The maximum QoS level to be used when receiving and publishing messages. Default is 0.

    retain?: boolean

    Defines if published messages should have the retain flag set. Default: false

    swing_horizontal_mode_command_template?: string

    A template to render the value sent to the swing_horizontal_mode_command_topic with.

    swing_horizontal_mode_state_template?: string

    A template to render the value received on the swing_horizontal_mode_state_topic with.

    swing_horizontal_modes?: string[]

    A list of supported swing horizontal modes. Default: ["on", "off"]

    swing_mode_command_template?: string

    A template to render the value sent to the swing_mode_command_topic with.

    swing_mode_state_template?: string

    A template to render the value received on the swing_mode_state_topic with.

    swing_modes?: string[]

    A list of supported swing modes. Default: ["on", "off"]

    target_humidity_command_template?: string

    Defines a template to generate the payload to send to target_humidity_command_topic.

    target_humidity_state_template?: string

    Defines a template to extract a value for the climate target_humidity state.

    temp_step?: number

    Step size for temperature set point. Default: 1

    temperature_command_template?: string

    A template to render the value sent to the temperature_command_topic with.

    temperature_high_command_template?: string

    A template to render the value sent to the temperature_high_command_topic with.

    temperature_high_state_template?: string

    A template to render the value received on the temperature_high_state_topic with. A "None" value received will reset the temperature high set point. Empty values ( '') will be ignored.

    temperature_low_command_template?: string

    A template to render the value sent to the temperature_low_command_topic with.

    temperature_low_state_template?: string

    A template to render the value received on the temperature_low_state_topic with. A "None" value received will reset the temperature low set point. Empty values ( '') will be ignored.

    temperature_state_template?: string

    A template to render the value received on the temperature_state_topic with.

    temperature_unit?: string

    Defines the temperature unit of the device, C or F. If this is not set, the temperature unit is set to the system temperature unit.

    unique_id?: string

    An ID that uniquely identifies this entity. If two entities have the same unique ID, Home Assistant will raise an exception. Required when used with device-based discovery.

    value_template?: string

    Defines a template to extract the value from the payload. Useful when the payload isn't a simple value.