Unit TMOS PIR ESPHome コンポーネント

Unit TMOS PIR コンポーネントは、人の存在と活動状態を読み取ります。

1. コンポーネント概要

項目 情報
製品名 Unit TMOS PIR
SKU U185
主な機能 人の存在と動きの検出
通信インターフェース I2C
デフォルト I2C アドレス 0x5A
ESPHome コンポーネント sths34pf80(外部コンポーネント)
必要な ESPHome バージョン 2026.2.2 以降

2. コンポーネントの説明

外部コンポーネントの読み込み

YAML ファイルに External Components の設定を追加し、STHS34PF80 センサードライバーを読み込みます。

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

Sensor と Binary Sensor の設定

sths34pf80 Sensor Platform を追加して、存在量、動き、チップ温度を公開します。presencemotiontemperature はオプションです。pres_flagmot_flag は、このプラットフォームの下に Binary Sensor エンティティを作成します。

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

主なパラメータ:

パラメータ 説明
presence_threshold 存在検出のしきい値。範囲 032767、デフォルト 200
motion_threshold 動き検出のしきい値。範囲 032767、デフォルト 200
presence_hysteresis 存在検出のヒステリシス。範囲 0255、デフォルト 50
motion_hysteresis 動き検出のヒステリシス。範囲 0255、デフォルト 50
odr チップ内部の出力データレート。範囲 18、デフォルト 8(30 Hz)。

3. 参考例

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

4. 関連リンク

Page Tools
PDF
On This Page