Hi all, I am using ESPresence with 3 sensors and 7 beacons. I have one at the gate to the property, one at the front door, and another further down the driveway. I am using these to open the gate and to dis/arm the security system. I can use the sensor at the gate to open the gate and disarm the alarm when the state of one of the beacons changes from 'not-home'
to 'gate'
. This works reasonably well, though a little slowly.
I am trying to use the speed of the cars/keys to get more sophisticated. Below is where I define the sensors.
- platform: filter
unique_id: filtered_distance_car_fiat_gate
name: Filtered Distance Car Fiat Gate
entity_id: sensor.distance_car_fiat_gate
filters:
- filter: outlier
window_size: 4
radius: 4.0
- filter: lowpass
time_constant: 10
precision: 2
- platform: filter
unique_id: filtered_distance_car_merc_gate
name: Filtered Distance Car Merc Gate
entity_id: sensor.distance_car_merc_gate
filters:
- filter: outlier
window_size: 4
radius: 4.0
- filter: lowpass
time_constant: 10
precision: 2
- platform: derivative
name: Fiat Speed
source: sensor.filtered_distance_car_fiat_gate
round: 1
unit_time: s
time_window: "00:00:05"
- platform: derivative
name: Merc Speed
source: sensor.filtered_distance_car_merc_gate
round: 1
unit_time: s
time_window: "00:00:05"
I used a filters value for the distance because the actual readings are quite noisy. I do not want to filter too much, because I need to detect that the car/keys are moving.
However, I get 0 for the speeds, even when the cars are moving. This is the reading for the gate sensor for one of the cars when we left the house to pick up some from the airport, and then arrive home.
However, the speed reports 0 m/s for the entire period.
Any ideas what I am doing incorrectly?