mirror of
https://github.com/esphome/esphome.git
synced 2026-05-25 18:47:56 +08:00
c19621e238
CI / Create common environment (push) Waiting to run
CI / Check ruff (push) Blocked by required conditions
CI / Check flake8 (push) Blocked by required conditions
CI / Check pylint (push) Blocked by required conditions
CI / Check pyupgrade (push) Blocked by required conditions
CI / Run script/ci-custom (push) Blocked by required conditions
CI / Run pytest (macOS-latest, 3.11) (push) Blocked by required conditions
CI / Run pytest (ubuntu-latest, 3.10) (push) Blocked by required conditions
CI / Run pytest (ubuntu-latest, 3.11) (push) Blocked by required conditions
CI / Run pytest (ubuntu-latest, 3.12) (push) Blocked by required conditions
CI / Run pytest (ubuntu-latest, 3.9) (push) Blocked by required conditions
CI / Run pytest (windows-latest, 3.11) (push) Blocked by required conditions
CI / Check clang-format (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 1/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 2/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 3/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 4/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 IDF (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP8266 (push) Blocked by required conditions
CI / list-components (push) Blocked by required conditions
CI / Component test ${{ matrix.file }} (push) Blocked by required conditions
CI / Split components for testing into 20 groups maximum (push) Blocked by required conditions
CI / Test split components (push) Blocked by required conditions
CI / CI Status (push) Blocked by required conditions
YAML lint / yamllint (push) Waiting to run
Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com>
49 lines
914 B
YAML
49 lines
914 B
YAML
msa3xx:
|
|
i2c_id: i2c_msa3xx
|
|
type: msa301
|
|
range: 4G
|
|
resolution: 14
|
|
update_interval: 10s
|
|
calibration:
|
|
offset_x: -0.250
|
|
offset_y: -0.400
|
|
offset_z: -0.800
|
|
transform:
|
|
mirror_x: false
|
|
mirror_y: true
|
|
mirror_z: true
|
|
swap_xy: false
|
|
on_tap:
|
|
- then:
|
|
- logger.log: "Tapped"
|
|
on_double_tap:
|
|
- then:
|
|
- logger.log: "Double tapped"
|
|
on_active:
|
|
- then:
|
|
- logger.log: "Activity detected"
|
|
on_orientation:
|
|
- then:
|
|
- logger.log: "Orientation changed"
|
|
|
|
sensor:
|
|
- platform: msa3xx
|
|
acceleration_x: Accel X
|
|
acceleration_y: Accel Y
|
|
acceleration_z: Accel Z
|
|
|
|
text_sensor:
|
|
- platform: msa3xx
|
|
orientation_xy: Orientation XY
|
|
orientation_z: Orientation Z
|
|
|
|
binary_sensor:
|
|
- platform: msa3xx
|
|
tap: Single tap
|
|
double_tap:
|
|
name: Double tap
|
|
active:
|
|
name: Active
|
|
filters:
|
|
- delayed_off: 5000ms
|