Skip to content

Commit

Permalink
Change Script to Automation
Browse files Browse the repository at this point in the history
`field:` is not allowed in scripts, so updated to (and tested) automation
  • Loading branch information
D34DC3N73R committed Nov 21, 2020
1 parent 910c811 commit 4956d22
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions source/_integrations/deconz.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -275,26 +275,30 @@ Note: Requires `on: true` to change color while the bulb is off. If `on:true` is
{% raw %}

```yaml
script:
hue_lamp_flash:
alias: Hue Lamp Flash
sequence:
automation:
- alias: Flash Hue Bulb with Doorbell Motion
trigger:
- platform: state
entity_id: binary_sensor.doorbell_motion
to: 'on'
action:
- service: deconz.configure
data:
entity: light.hue_lamp
field: /state
data:
'on': true
hue: 65535
sat: 255
bri: 255
alert: breathe
entity_id: light.hue_lamp
- delay: '15'
- delay: 00:00:15
- service: deconz.configure
data:
entity: light.hue_lamp
field: /state
data:
'on': false
entity_id: light.hue_lamp
mode: single
```

Expand Down

0 comments on commit 4956d22

Please sign in to comment.