IOS APP定位,帮我看下哪里有问题
- alias: 'User A Location '
trigger:
- platform: state
entity_id: person.showphi
action:
- service_template: >
{% if states.person.showphi == 'home' %}
input_boolean.turn_on
{% else %}
input_boolean.turn_off
{% endif %}
entity_id: input_boolean.a
- alias: 'Detect People Nearby'
trigger:
- platform: state
entity_id:
- input_boolean.a
# - input_boolean.b
to: 'on'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.nearby
- alias: 'Welcome Home'
trigger:
entity_id:
- binary_sensor.door_window_sensor_158d00023316af
platform: state
to: 'on'
condition:
- condition: state
entity_id: input_boolean.at_home
state: 'off'
- condition: state
entity_id: input_boolean.nearby
state: 'on'
action:
- service: tts.baidu_say
data_template:
entity_id: media_player.adegc_3aie3c_r_7153
message: "欢迎老爸回家,恭迎大驾!"
cache: false
- delay: '00:00:06'
- service: media_player.media_stop
entity_id: media_player.adegc_3aie3c_r_7153
|