Temperature Alert Automations

automation alerts temperature notifications

Get notified when temperature goes outside your comfort range.

High Temperature Alert

This automation sends a notification when indoor temperature exceeds 78°F:

alias: "Temperature Alert - Too Hot"
description: "Notify when indoor temp is too high"
trigger:
  - platform: numeric_state
    entity_id: sensor.indoor_temperature
    above: 78
action:
  - service: notify.mobile_app
    data:
      title: "Temperature Alert"
      message: "Indoor temperature is {{ states('sensor.indoor_temperature') }}°F - Consider turning on AC"
      data:
        push:
          sound: default
        action_data:
          action: "turn_on_ac"
mode: single

Low Temperature Alert

Alert when temperature drops below 65°F:

alias: "Temperature Alert - Too Cold"
description: "Notify when indoor temp is too low"
trigger:
  - platform: numeric_state
    entity_id: sensor.indoor_temperature
    below: 65
    for:
      minutes: 10
action:
  - service: notify.mobile_app
    data:
      title: "Temperature Alert"
      message: "Indoor temperature has been below 65°F for 10 minutes"
  - service: climate.set_hvac_mode
    target:
      entity_id: climate.living_room
    data:
      hvac_mode: heat
mode: single

Combined Alert with Multiple Conditions

A more advanced automation that checks both temperature and time:

alias: "Temperature Alert - Night Check"
description: "Alert if temp is uncomfortable during sleeping hours"
trigger:
  - platform: time
    at: "22:00:00"
condition:
  - condition: or
    conditions:
      - condition: numeric_state
        entity_id: sensor.bedroom_temperature
        above: 75
      - condition: numeric_state
        entity_id: sensor.bedroom_temperature
        below: 68
action:
  - service: notify.mobile_app
    data:
      title: "Bedroom Temperature Check"
      message: >
        Current bedroom temperature: {{ states('sensor.bedroom_temperature') }}°F
        Recommended range: 68-75°F for optimal sleep
mode: single

Key Features

Numeric State Triggers

Use above and below to set temperature thresholds.

Delay with for

The for parameter ensures the condition is true for a specified duration before triggering, preventing false alerts from brief temperature spikes.

Template Messages

Use {{ states('sensor.name') }} to include current sensor values in notifications.

Actionable Notifications

The first automation includes action data that can be used to trigger follow-up actions from the notification.