mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
Added automation example for qrcode integration (#17677)
This commit is contained in:
parent
d8b25dbdcf
commit
5f4ad24a4b
@ -39,3 +39,22 @@ source:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
## Basic example
|
||||||
|
|
||||||
|
An automation using this integration could look like this:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
automation:
|
||||||
|
- alias: "Catch QR code and arm the alarm system"
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: image_processing.qr_front_door
|
||||||
|
to: ARM_QR_CODE_VALUE
|
||||||
|
action:
|
||||||
|
- service: alarm_control_panel.alarm_arm_away
|
||||||
|
target:
|
||||||
|
entity_id: alarm_control_panel.home_alarm
|
||||||
|
data:
|
||||||
|
code: MY_ALARM_CODE
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user