Created
February 14, 2024 07:22
-
-
Save peyanski/bc86337f558a9f88ee4d035fd9b950be to your computer and use it in GitHub Desktop.
Gyroscope + Accelerometer (Inertial) Sensor that Works with Home Assistant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: gyro-bmi160 | |
friendly_name: Gyro_BMI160 | |
esp8266: | |
board: esp01_1m | |
# Enable logging | |
logger: | |
# Enable Home Assistant API | |
api: | |
encryption: | |
key: "C8t2fLceelvb/V5w2K4lbJMLJNf9bGNRaDnxNhf2KEk=" | |
ota: | |
password: "f2985d7771099fdee59d059217753617" | |
wifi: | |
ssid: !secret wifi_ssid | |
password: !secret wifi_password | |
# Enable fallback hotspot (captive portal) in case wifi connection fails | |
ap: | |
ssid: "Gyro-Bmi160 Fallback Hotspot" | |
password: "vWe2MwSl4lmA" | |
captive_portal: | |
i2c: | |
sda: 4 | |
scl: 5 | |
scan: True | |
web_server: | |
port: 80 | |
sensor: | |
- platform: bmi160 | |
address: 0x69 | |
update_interval: 0ms | |
acceleration_x: | |
name: "BMI160 Accel X" | |
acceleration_y: | |
name: "BMI160 Accel Y" | |
acceleration_z: | |
name: "BMI160 Accel z" | |
gyroscope_x: | |
name: "BMI160 Gyro X" | |
gyroscope_y: | |
name: "BMI160 Gyro Y" | |
gyroscope_z: | |
name: "BMI160 Gyro z" | |
temperature: | |
name: "BMI160 Temperature" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment