Skip to content

Home Assistant recipes, by sensor

Teach every sensor what to say

A sensor that only shows a number on a dashboard has not protected anything yet. Pick the kind of sensor, fill in its name, and the bench writes the automation that turns its reading into a notice on your phone.

  • 6kinds of sensor, each with a recipe written for it.
  • 40°Fis when the freeze recipe speaks, while there is still time before 32°F.
  • 24 hoursof silence and the watchdog asks you to check a sensor.

The recipe bench

Runs in your browser. Nothing you type is sent.

SensorRadioAutomationYou

Leak sensor. When the sensor reads wet, send you a notice to close the main valve.

Why this recipe looks like this

automations.yaml

- alias: "Leak: water detected"
  mode: single
  triggers:
    - trigger: state
      entity_id: binary_sensor.water_heater_leak
      to: "on"
  actions:
    - action: notify.mobile_app_your_phone
      data:
        title: "Water detected"
        message: "{{ trigger.to_state.name }} is wet. Close the main water valve."

Rename the entities to your own, then paste. Syntax: Home Assistant: Automation triggers.

Every recipe, with why it looks the way it does

More from the bench

Where should the sensors go in the first place? The guides live on Leak and Freeze, this site's sister.

Sensor House