ESPHOME · 5 MIN READ

Use the ESPectre component built into ESPHome

ESPectre is part of ESPHome. Add motion sensing to any ESPHome YAML, with no external component.

An ESP32 board connected to an abstract YAML configuration panel and a smart-home motion icon
The component turns an ESPHome configuration into a Wi-Fi motion sensor for your home.
Sections

Built-in or external component

The built-in component and the external component, the one in the ESPectre repository, run the same SDK. They differ in what comes around it. This guide covers ESPHome 2026.11.

Built-in component compared with the external component
Built into ESPHomeExternal component
InstallPart of ESPHomeOfficial images, or external_components from GitHub
EntitiesOnly the ones you add, with the names you chooseA full set, ready for the Home Assistant dashboard
Browser tools and CLIWith the espectre_direct add-onMonitor, Device settings, and ./espectre
UpdatesWith each ESPHome releaseWith each ESPectre release, signed for official images

Start with the built-in component when you already maintain an ESPHome configuration and want motion as one more entity. Use the external component or an official image for the browser tools.

The external component is deprecated and will be removed in ESPectre 3.3, when official images move to the built-in one. The ESPHome guide shows how to move a configuration and how to add the browser tools with espectre_direct.

Your first configuration

Add the hub and a motion sensor to a configuration that already sets up Wi-Fi:

espectre:

binary_sensor:
  - platform: espectre
    motion:
      name: Motion

The sensor calibrates after each connection, while the room is quiet. Keep the room still for the first half minute after the device joins Wi-Fi.

Options

All options go under espectre: and are optional. The defaults suit most rooms.

Options of the espectre component
OptionValues
detection_algorithmlightweight (default) or high_accuracy. See detection profiles.
traffic_generator_modeping (default), dns, dns_tcp, wifi_raw, or external. wifi_raw is not available on ESP32-C6.
traffic_generator_target_ipA unicast IPv4 address for ping, dns, or dns_tcp traffic, instead of the gateway
traffic_generator_target_macA unicast MAC address for wifi_raw traffic, such as another ESPectre device
csi_traffic_multicast_groupThe multicast group of an external traffic source, with external mode
motion_on_hits, motion_off_hitsHow many detections in a row turn motion on or off, from 1 to 20
csi_target_ppsCSI packets per second to aim for, from 1 to 500
csi_sample_spacinghalf_slot (default) or distinct. On a busy channel, distinct keeps packets that arrive in back-to-back pairs.
window_size, evaluation_intervalThe detection window, from 1 to 2 seconds, and how often it is evaluated, from 10 ms to 10 s
lowpass_filter, hampel_filterSignal filters, each with enabled. The low-pass filter takes a cutoff from 5 to 20 Hz; the Hampel filter takes a window from 3 to 11 and a threshold from 1 to 10.
csi_capture_profileauto (default), lltf, or ht_vht. Leave it on auto unless you are testing.

Entities

The component creates only the entities you list. This configuration adds the ones most people want:

binary_sensor:
  - platform: espectre
    motion:
      name: Motion
    calibrating:
      name: Calibrating

sensor:
  - platform: espectre
    movement:
      name: Movement
    diagnostics:
      update_interval: 10s
      csi_accepted_rate:
        name: CSI Accepted Rate
      csi_occupancy:
        name: CSI Temporal Occupancy

number:
  - platform: espectre
    threshold:
      name: Threshold

select:
  - platform: espectre
    detection_algorithm:
      name: Detection Algorithm
    traffic_generator_mode:
      name: Traffic Mode

switch:
  - platform: espectre
    sensing:
      name: Sensing

button:
  - platform: espectre
    name: Recalibrate

What the component changes in ESPHome

CSI needs a steady stream of received packets, so the component adjusts the radio:

Current limits

For every option and platform, see the ESPHome documentation.

Guides