diff --git a/components/adxl345/README.md b/components/adxl345/README.md index a3f72cb..fc8730d 100644 --- a/components/adxl345/README.md +++ b/components/adxl345/README.md @@ -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: diff --git a/garage-door-controller.yaml b/garage-door-controller.yaml index e3a38f1..a20eace 100644 --- a/garage-door-controller.yaml +++ b/garage-door-controller.yaml @@ -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: