Fixed docs for adxl345

This commit is contained in:
John Dillenburg
2025-03-14 15:36:55 -05:00
parent 0b40fd337e
commit 6eb6f0eed8
2 changed files with 2 additions and 12 deletions

View File

@@ -46,16 +46,11 @@ libraries:
### Basic Configuration
```yaml
# Define component
# Define component and sensors for accel_x, accel_y and accel_z
adxl345:
- id: my_adxl345
address: 0x53
update_interval: 100ms
# Define sensors from component
sensor:
- platform: adxl345
id: my_adxl345
accel_x:
name: "Acceleration X"
accel_y:
@@ -79,11 +74,6 @@ adxl345:
address: 0x53
update_interval: 100ms
range: 4G # Options: 2G, 4G, 8G, 16G
# Define sensors with filtering
sensor:
- platform: adxl345
id: my_adxl345
accel_x:
name: "Acceleration X"
filters:

View File

@@ -218,7 +218,7 @@ sensor:
return rate;
filters:
- sliding_window_moving_average:
window_size: 10 # average 10 x 0.5 seconds = 5 seconds worth of speed
window_size: 5 # average 5 x 0.5 seconds = 2.5 seconds worth of speed
send_every: 1 # send average speed every 1/2 second
on_value:
then: