Hello,
I mounted a reed switch/sensor on my front door and I want to use it as a trigger for bluetooth presence detection. I set “interval_seconds: 0” in configuration for bluetooth tracker, but apparently this doesn’t disable automatic scanning, because my presence is still being updated without the front door being opened/closed.
device_tracker:
- platform: bluetooth_tracker
interval_seconds: 0
new_device_defaults:
track_new_devices: false
- id: '1563064900120'
alias: Preverjanje prisotnosti, ko se vhodna vrata odprejo
trigger:
- entity_id: binary_sensor.vhodna_vrata
from: Closed
platform: state
to: Open
condition: []
action:
- service: device_tracker.bluetooth_tracker_update
- id: '1563064900130'
alias: Preverjanje prisotnosti, ko se vhodna vrata zaprejo
trigger:
- entity_id: binary_sensor.vhodna_vrata
from: Open
platform: state
to: Closed
condition: []
action:
- service: device_tracker.bluetooth_tracker_update
- delay: '120'
- service: device_tracker.bluetooth_tracker_update
- delay: '300'
- service: device_tracker.bluetooth_tracker_update