Gate BLE detection shorten to 2 min

This commit is contained in:
2024-07-09 12:39:26 +02:00
parent 371c7e7eb7
commit 23fd4ef7ea

View File

@@ -107,8 +107,7 @@ binary_sensor:
id: ibeacon_auris id: ibeacon_auris
ibeacon_uuid: !secret ble_beacon_toyota_auris_uuid ibeacon_uuid: !secret ble_beacon_toyota_auris_uuid
name: "Vehicle iBeacon Auris" name: "Vehicle iBeacon Auris"
# filters: timeout: 2min
# - delayed_off: 30s
on_press: on_press:
- if: - if:
condition: condition:
@@ -135,6 +134,7 @@ binary_sensor:
id: ibeacon_yaris id: ibeacon_yaris
ibeacon_uuid: !secret ble_beacon_toyota_yaris_uuid ibeacon_uuid: !secret ble_beacon_toyota_yaris_uuid
name: "Vehicle iBeacon Yaris" name: "Vehicle iBeacon Yaris"
timeout: 2min
on_press: on_press:
- if: - if:
condition: condition:
@@ -161,6 +161,7 @@ binary_sensor:
id: ibeacon_pcx125 id: ibeacon_pcx125
ibeacon_uuid: !secret ble_beacon_honda_uuid ibeacon_uuid: !secret ble_beacon_honda_uuid
name: "Vehicle iBeacon Honda PCX125" name: "Vehicle iBeacon Honda PCX125"
timeout: 2min
on_press: on_press:
- if: - if:
condition: condition:
@@ -187,6 +188,7 @@ binary_sensor:
id: ibeacon_dl650 id: ibeacon_dl650
ibeacon_uuid: !secret ble_beacon_suzuki_uuid ibeacon_uuid: !secret ble_beacon_suzuki_uuid
name: "Vehicle iBeacon Suzuki DL650" name: "Vehicle iBeacon Suzuki DL650"
timeout: 2min
on_press: on_press:
- if: - if:
condition: condition:
@@ -279,30 +281,3 @@ select:
- Closing - Closing
initial_option: Closed initial_option: Closed
optimistic: true optimistic: true
# set_action:
# - lambda: |-
# // Update the text sensor state
# id(gate_state).publish_state(x);
# // Update the cover state
# if (x == "Opening") {
# id(gate_cover).current_operation = COVER_OPERATION_OPENING;
# } else if (x == "Closing") {
# id(gate_cover).current_operation = COVER_OPERATION_CLOSING;
# } else {
# id(gate_cover).current_operation = COVER_OPERATION_IDLE;
# }
# id(gate_cover).publish_state();
# cover:
# - platform: template
# id: gate_cover
# name: "Gate"
# device_class: gate
# lambda: |-
# if (id(gate_state).state == "Closed") {
# return COVER_CLOSED;
# } else {
# return COVER_OPEN;
# }
# optimistic: true