mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Update terminology for built-in blueprints (#128383)
This commit is contained in:
parent
0bc572787a
commit
b07682e43c
@ -35,24 +35,24 @@ blueprint:
|
|||||||
mode: restart
|
mode: restart
|
||||||
max_exceeded: silent
|
max_exceeded: silent
|
||||||
|
|
||||||
trigger:
|
triggers:
|
||||||
platform: state
|
trigger: state
|
||||||
entity_id: !input motion_entity
|
entity_id: !input motion_entity
|
||||||
from: "off"
|
from: "off"
|
||||||
to: "on"
|
to: "on"
|
||||||
|
|
||||||
action:
|
actions:
|
||||||
- alias: "Turn on the light"
|
- alias: "Turn on the light"
|
||||||
service: light.turn_on
|
action: light.turn_on
|
||||||
target: !input light_target
|
target: !input light_target
|
||||||
- alias: "Wait until there is no motion from device"
|
- alias: "Wait until there is no motion from device"
|
||||||
wait_for_trigger:
|
wait_for_trigger:
|
||||||
platform: state
|
trigger: state
|
||||||
entity_id: !input motion_entity
|
entity_id: !input motion_entity
|
||||||
from: "on"
|
from: "on"
|
||||||
to: "off"
|
to: "off"
|
||||||
- alias: "Wait the number of seconds that has been set"
|
- alias: "Wait the number of seconds that has been set"
|
||||||
delay: !input no_motion_wait
|
delay: !input no_motion_wait
|
||||||
- alias: "Turn off the light"
|
- alias: "Turn off the light"
|
||||||
service: light.turn_off
|
action: light.turn_off
|
||||||
target: !input light_target
|
target: !input light_target
|
||||||
|
@ -25,8 +25,8 @@ blueprint:
|
|||||||
filter:
|
filter:
|
||||||
integration: mobile_app
|
integration: mobile_app
|
||||||
|
|
||||||
trigger:
|
triggers:
|
||||||
platform: state
|
trigger: state
|
||||||
entity_id: !input person_entity
|
entity_id: !input person_entity
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
@ -36,13 +36,13 @@ variables:
|
|||||||
person_entity: !input person_entity
|
person_entity: !input person_entity
|
||||||
person_name: "{{ states[person_entity].name }}"
|
person_name: "{{ states[person_entity].name }}"
|
||||||
|
|
||||||
condition:
|
conditions:
|
||||||
condition: template
|
condition: template
|
||||||
# The first case handles leaving the Home zone which has a special state when zoning called 'home'.
|
# The first case handles leaving the Home zone which has a special state when zoning called 'home'.
|
||||||
# The second case handles leaving all other zones.
|
# The second case handles leaving all other zones.
|
||||||
value_template: "{{ zone_entity == 'zone.home' and trigger.from_state.state == 'home' and trigger.to_state.state != 'home' or trigger.from_state.state == zone_state and trigger.to_state.state != zone_state }}"
|
value_template: "{{ zone_entity == 'zone.home' and trigger.from_state.state == 'home' and trigger.to_state.state != 'home' or trigger.from_state.state == zone_state and trigger.to_state.state != zone_state }}"
|
||||||
|
|
||||||
action:
|
actions:
|
||||||
- alias: "Notify that a person has left the zone"
|
- alias: "Notify that a person has left the zone"
|
||||||
domain: mobile_app
|
domain: mobile_app
|
||||||
type: notify
|
type: notify
|
||||||
|
Loading…
x
Reference in New Issue
Block a user