English
English
简体中文
日本語

Unit TMOS PIR ESPHome Component

The Unit TMOS PIR component reads human presence and activity status.

1. Component Overview

Item Information
Product Name Unit TMOS PIR
SKU U185
Main Function Human presence and motion detection
Communication Interface I2C
Default I2C Address 0x5A
ESPHome Component sths34pf80 (external component)
ESPHome Version Requirement 2026.2.2 and later

2. Component Description

Including the External Component

Add the External Components configuration to the YAML file to load the STHS34PF80 sensor driver.

external_components:
  - source: github://m5stack/esphome-yaml/components
    components: [sths34pf80]
    refresh: 0s

Sensor and Binary Sensor Configuration

Add the sths34pf80 Sensor Platform to publish presence, motion, and chip temperature. presence, motion, and temperature are optional. pres_flag and mot_flag create Binary Sensor entities under this platform.

sensor:
  - platform: sths34pf80
    presence:
      name: "TMOS Presence"
    motion:
      name: "TMOS Motion"
    temperature:
      name: "TMOS Temperature"
    pres_flag:
      name: "TMOS Presence Detected"
    mot_flag:
      name: "TMOS Motion Detected"
    presence_threshold: 200
    motion_threshold: 200
    presence_hysteresis: 50
    motion_hysteresis: 50
    odr: 8
    update_interval: 1s

Main parameters:

Parameter Description
presence_threshold Presence detection threshold, range 032767, default 200.
motion_threshold Motion detection threshold, range 032767, default 200.
presence_hysteresis Presence hysteresis, range 0255, default 50.
motion_hysteresis Motion hysteresis, range 0255, default 50.
odr Internal output data rate, range 18, default 8 (30 Hz).

3. Reference Example

yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
external_components:
  - source: github://m5stack/esphome-yaml/components
    components: [sths34pf80]
    refresh: 0s

i2c:
  sda: GPIOXX
  scl: GPIOXX
  scan: true

sensor:
  - platform: sths34pf80
    id: tmos_pir
    presence:
      name: "TMOS Presence"
    motion:
      name: "TMOS Motion"
    temperature:
      name: "TMOS Temperature"
    pres_flag:
      name: "TMOS Presence Detected"
    mot_flag:
      name: "TMOS Motion Detected"
    presence_threshold: 200
    motion_threshold: 200
    presence_hysteresis: 50
    motion_hysteresis: 50
    odr: 8
    update_interval: 1s
Page Tools
PDF
On This Page