mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Update blueprint tutorial.markdown to reflect updated selector: syntax (#29169)
This commit is contained in:
parent
0321345502
commit
f6dc966519
@ -177,15 +177,17 @@ blueprint:
|
||||
description: This sensor will be synchronized with the light.
|
||||
selector:
|
||||
entity:
|
||||
domain: binary_sensor
|
||||
device_class: motion
|
||||
filter:
|
||||
- domain: binary_sensor
|
||||
- device_class: motion
|
||||
target_light:
|
||||
name: Lights
|
||||
description: The lights to keep in sync.
|
||||
selector:
|
||||
target:
|
||||
entity:
|
||||
domain: light
|
||||
filter:
|
||||
- domain: light
|
||||
```
|
||||
|
||||
By limiting our blueprint to working with lights and motion sensors, we unlock a couple of benefits: the UI will be able to limit suggested values to lights and motion sensors instead of all devices. It will also allow the user to pick an area to control the lights in.
|
||||
@ -207,15 +209,17 @@ blueprint:
|
||||
description: This sensor will be synchronized with the light.
|
||||
selector:
|
||||
entity:
|
||||
domain: binary_sensor
|
||||
device_class: motion
|
||||
filter:
|
||||
- domain: binary_sensor
|
||||
- device_class: motion
|
||||
target_light:
|
||||
name: Lights
|
||||
description: The lights to keep in sync.
|
||||
selector:
|
||||
target:
|
||||
entity:
|
||||
domain: light
|
||||
filter:
|
||||
- domain: light
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
@ -282,4 +286,4 @@ If you follow the [Rules and format for posting](/get-blueprints), you can share
|
||||
- [Blueprint selectors](/docs/blueprint/selectors/)
|
||||
- [Blueprint schema](/docs/blueprint/schema/)
|
||||
- [About blueprints](/docs/blueprint/)
|
||||
- [Using automation blueprints](/docs/automation/using_blueprints/)
|
||||
- [Using automation blueprints](/docs/automation/using_blueprints/)
|
||||
|
Loading…
x
Reference in New Issue
Block a user