Update blueprint tutorial.markdown to reflect updated selector: syntax (#29169)

This commit is contained in:
Peter Hempsall 2023-10-05 07:24:39 +01:00 committed by GitHub
parent 0321345502
commit f6dc966519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/)