Water heater target temperature changed

The Water heater target temperature changed trigger fires when the target temperature setting of a water heater entityAn entity represents a sensor, actor, or function in Home Assistant. Entities are used to monitor physical properties or to control other entities. An entity is usually part of a device or a service. [Learn more] changes. The target temperature is the setpoint you want the water heater to maintain, not the current measured water temperature. Use this trigger when you want to react to any meaningful setpoint change, like sending an alert when someone raises the target temperature higher than usual.

Use the threshold type to decide which changes matter. You can fire on any change, only when the new setpoint is above or below a value, or only when it lands inside or outside a range.

Labs

Requires the Purpose-specific triggers and conditions Labs preview feature. Enable it at Settings > System > Labs.

Using this trigger from the user interface

If you prefer building automations visually, Home Assistant walks you through this trigger step by step. You pick what to watch, tweak a few options, and save. No YAML knowledge required.

To use Water heater target temperature changed in an automation:

  1. Go to Settings > Automations & scenes.
  2. Open an existing automation, or select Create automation > Create new automation.
  3. In the When section, select Add trigger.
  4. Select what you want to monitor. Under By target (see Targets), pick the area your water heater is in, or select a device, a specific entity, a floor, or a label.
  5. From the triggers shown for that target, select Water heater target temperature changed.
  6. Under Threshold type, choose which kind of setpoint change should fire the trigger:
    • Select Any change to fire on any setpoint change.
    • Select Above or Below to fire only when the new setpoint lands above or below a value.
    • Select In range or Outside range to fire only when the new setpoint lands inside or outside a range.
    • You can use a fixed number or select a temperature sensor, a temperature number entity, or a number helper as the threshold.
    • If you need a helper, create the helperA helper is a virtual entity you create inside Home Assistant. It is not backed by a physical device. Helpers store values, track state, or do calculations that your automations and dashboards need. [Learn more] separately before using it here.
  7. Under Unit, select the temperature unit to use for the comparison when you enter a number.
  8. Select Save.

Options in the UI

Threshold type

Controls which setpoint changes fire the trigger:

  • Any change: Fires on any setpoint change.
  • Above or Below (exclusive): Fires only when the new setpoint is strictly above or below the threshold. A setpoint equal to the threshold does not fire the trigger.
  • In range (exclusive): Fires only when the new setpoint is strictly between the two bounds. A setpoint equal to either bound does not fire the trigger.
  • Outside range (inclusive): Fires when the new setpoint is at or below the lower bound, or at or above the upper bound. A setpoint equal to either bound fires the trigger.

You can use a fixed number or select a temperature sensor, a temperature number entity, or a number helper as the threshold.

Unit

The temperature unit to use for threshold comparison. Accepts °C or °F. Required when using numerical thresholds (not required when using entity references). Default is °C.

Using this trigger in YAML

If you work directly in YAML, or you want to know exactly what Home Assistant does under the hood, this section has the technical reference. It lists the field names you use in YAML, their types, and which ones are required.

In YAML, Water heater target temperature changed is referred to as water_heater.target_temperature_changed. A basic example looks like this:

TriggerA trigger is a set of values or conditions of a platform that are defined to cause an automation to run. [Learn more]
trigger: water_heater.target_temperature_changed
target:
  entity_id: water_heater.utility_room
options:
  threshold:
    type: above
    value:
      number: 55
      unit_of_measurement: "°C"

This fires when the target temperature of water_heater.utility_room changes to a value above 55°C.

To fire when the setpoint lands outside a preferred range:

TriggerA trigger is a set of values or conditions of a platform that are defined to cause an automation to run. [Learn more]
trigger: water_heater.target_temperature_changed
target:
  entity_id: water_heater.utility_room
options:
  threshold:
    type: outside
    value_min:
      entity: input_number.water_heater_min_target
    value_max:
      entity: input_number.water_heater_max_target

Options in YAML

YAML sometimes provides additional options for more complex use cases that are not available through the UI.

threshold map Required

A mapping that defines which setpoint changes fire the trigger:

  • type: any: Fires on any target temperature change.
  • type: above (exclusive): Fires when the new setpoint lands strictly above value. A setpoint equal to value does not fire the trigger.
  • type: below (exclusive): Fires when the new setpoint lands strictly below value. A setpoint equal to value does not fire the trigger.
  • type: between (exclusive): Fires when the new setpoint lands strictly between value_min and value_max. A setpoint equal to either bound does not fire the trigger.
  • type: outside (inclusive): Fires when the new setpoint is at or below value_min, or at or above value_max. A setpoint equal to either bound fires the trigger.

For type: above and type: below, use value with either number and unit_of_measurement, or entity. For type: between and type: outside, use value_min and value_max, each with either number and unit_of_measurement, or entity.

The entity value can reference an input_number, sensor, or number entity. When you use a helper, create the helperA helper is a virtual entity you create inside Home Assistant. It is not backed by a physical device. Helpers store values, track state, or do calculations that your automations and dashboards need. [Learn more] separately before using it here.

Targets of the trigger

This trigger requires a target. The target is the object that Home Assistant will watch. You can select a single entityAn entity represents a sensor, actor, or function in Home Assistant. Entities are used to monitor physical properties or to control other entities. An entity is usually part of a device or a service. [Learn more], a device, an area, a floor, or a label as a target, and Home Assistant will watch every matching water_heater entity behind that target.

  • Entity: one specific water_heater entity, such as water_heater.living_room.
  • Device: every water_heater entity that belongs to a device.
  • Area: every water_heater entity in a room or area.
  • Floor: every water_heater entity on a floor.
  • Label: every water_heater entity that shares a label.

You can also select different target types in one trigger. For example, you can add a specific entity and an area as targets in the same trigger to monitor both of them at once.

Good to know

  • This trigger watches the target temperature setpoint, not the current measured water temperature.
  • To react only when the setpoint crosses a threshold boundary, use Water heater target temperature crossed threshold.
  • When you use an entity as the threshold, Home Assistant uses that entity’s current value when the setpoint changes.
  • The threshold entities must provide temperature values. Supported threshold sources are temperature sensors, temperature number entities, and input_number helpers.

Try it yourself

Ready to test this? Go to Settings > Automations & scenes, create a new automation, and add this trigger. Save the automation, then change the state of the targeted entity to watch the trigger fire on your actual entitiesAn entity represents a sensor, actor, or function in Home Assistant. Entities are used to monitor physical properties or to control other entities. An entity is usually part of a device or a service. [Learn more].

More examples

Real scenarios where this trigger fires in automations and scripts. Copy any example and adapt it to your setup.

Tip

You don’t need to edit YAML to use these examples. Copy a YAML snippet from this page, open the automation editor in Home Assistant, and press Ctrl+V (or Cmd+V on Mac). Home Assistant automatically converts the pasted YAML into the visual editor format, whether it’s a full automation, a single trigger, a condition, or an action.

Automation: notify when the target temperature is raised above a safe routine

When someone raises the water heater target temperature above your usual daily setting, send a notification so you can double-check the change.

  • Trigger: Water heater target temperature changed
    • Target: Utility room water heater
    • Threshold type: Above (55°C)
  • Action: Send a notification message
    • Target: My Device (notify.my_device)
YAML example for a high setpoint notification
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Notify when the water heater target temperature is raised"
triggers:
  - trigger: water_heater.target_temperature_changed
    target:
      entity_id: water_heater.utility_room
    options:
      threshold:
        type: above
        value:
          number: 55
          unit_of_measurement: "°C"
actions:
  - action: notify.send_message
    target:
      entity_id: notify.my_device
    data:
      message: "The water heater target temperature is now above 55°C."

Automation: switch to Eco mode when the setpoint returns to the normal range

When the target temperature is changed back into your normal range, switch the water heater back to an energy-saving mode.

  • Trigger: Water heater target temperature changed
    • Target: Utility room water heater
    • Threshold type: In range (50-52°C)
  • Action: Set water heater operation mode
YAML example for returning to Eco mode
AutomationAutomations in Home Assistant allow you to automatically respond to things that happen in and around your home. [Learn more]
alias: "Return water heater to Eco mode"
triggers:
  - trigger: water_heater.target_temperature_changed
    target:
      entity_id: water_heater.utility_room
    options:
      threshold:
        type: between
        value_min:
          number: 50
          unit_of_measurement: "°C"
        value_max:
          number: 52
          unit_of_measurement: "°C"
actions:
  - action: water_heater.set_operation_mode
    target:
      entity_id: water_heater.utility_room
    data:
      operation_mode: eco

Still stuck?

The Home Assistant community is quick to help: join Discord for real-time chat, post on the community forum with the trigger you’re using and what you expected to happen, or share on our subreddit /r/homeassistant.

Tip

AI assistants like ChatGPT or Claude can also explain triggers or suggest the right one when you describe what you want in plain language.

Related triggers

These triggers work well alongside this one: