alias: 현관문열기_all_ble_wifi감지통합
description: 현관문열기_sw_on_내실timer유휴_BLE인식미인식_현관door를 열었습니다
trigger:
- platform: state
entity_id:
- device_tracker.iptime_myphone9045
from: not_home
to: home
- platform: state
entity_id:
- device_tracker.iptime_wife5763
from: not_home
to: home
- platform: state
entity_id:
- device_tracker.ibeacon_9045
to: home
from: not_home
- platform: state
entity_id:
- device_tracker.ibeacon_5763
to: home
from: not_home
- platform: state
entity_id:
- binary_sensor.esp32_s3_8m_ble2_ip74_pin_9045_ble
to: "on"
from: "off"
- platform: state
entity_id:
- binary_sensor.esp32_s3_8m_ble2_ip74_pin_5763_ble
to: "on"
from: "off"
condition: []
action:
- if:
- condition: and
conditions:
- condition: state
entity_id: timer.3min_timer_run_in_outside
state: active
- condition: state
entity_id: timer.3min_timer_run_in_inside
state: idle
- condition: state
entity_id: timer.timer_door_open
state: idle
then:
- wait_for_trigger: []
timeout:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- type: turn_on
device_id: 3a7a413dcf29a6ea0796485e9c9883e3
entity_id: 609e47efea754665a71345944bca74c1
domain: switch
- service: tts.edge_tts_say
metadata: {}
data:
cache: false
entity_id: media_player.speaker_1
message: 현관문열기,,, BLE,wifi구성으로 현관문을 열었습니다,현관문열기,,, BLE,wifi구성으로 현관문을 열었습니다,
- if:
- condition: or
conditions:
- condition: state
entity_id: timer.timer_door_open
state: active
- condition: state
entity_id: timer.3min_timer_run_in_inside
state: active
then:
- service: tts.edge_tts_say
metadata: {}
data:
cache: false
entity_id: media_player.speaker_1
message: 현관문열기,,,통과
mode: parallel