mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 17:57:14 +00:00
Small example code improvements to deCONZ (#17132)
This commit is contained in:
parent
c1bae9664b
commit
c19755a095
@ -192,20 +192,20 @@ automation:
|
|||||||
- alias: "'Toggle lamp from dimmer'"
|
- alias: "'Toggle lamp from dimmer'"
|
||||||
initial_state: "on"
|
initial_state: "on"
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
- platform: event
|
||||||
event_type: deconz_event
|
event_type: deconz_event
|
||||||
event_data:
|
event_data:
|
||||||
id: remote_control_1
|
id: remote_control_1
|
||||||
event: 1002
|
event: 1002
|
||||||
action:
|
action:
|
||||||
service: light.toggle
|
- service: light.toggle
|
||||||
target:
|
target:
|
||||||
entity_id: light.lamp
|
entity_id: light.lamp
|
||||||
|
|
||||||
- alias: "Increase brightness of lamp from dimmer"
|
- alias: "Increase brightness of lamp from dimmer"
|
||||||
initial_state: "on"
|
initial_state: "on"
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
- platform: event
|
||||||
event_type: deconz_event
|
event_type: deconz_event
|
||||||
event_data:
|
event_data:
|
||||||
id: remote_control_1
|
id: remote_control_1
|
||||||
@ -222,7 +222,7 @@ automation:
|
|||||||
- alias: "Decrease brightness of lamp from dimmer"
|
- alias: "Decrease brightness of lamp from dimmer"
|
||||||
initial_state: "on"
|
initial_state: "on"
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
- platform: event
|
||||||
event_type: deconz_event
|
event_type: deconz_event
|
||||||
event_data:
|
event_data:
|
||||||
id: remote_control_1
|
id: remote_control_1
|
||||||
@ -239,13 +239,13 @@ automation:
|
|||||||
- alias: 'Turn lamp on when turning cube clockwise'
|
- alias: 'Turn lamp on when turning cube clockwise'
|
||||||
initial_state: "on"
|
initial_state: "on"
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
- platform: event
|
||||||
event_type: deconz_event
|
event_type: deconz_event
|
||||||
event_data:
|
event_data:
|
||||||
id: remote_control_1
|
id: remote_control_1
|
||||||
gesture: 7
|
gesture: 7
|
||||||
action:
|
action:
|
||||||
service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: light.lamp
|
entity_id: light.lamp
|
||||||
```
|
```
|
||||||
@ -299,12 +299,12 @@ automation:
|
|||||||
hue: 65535
|
hue: 65535
|
||||||
sat: 255
|
sat: 255
|
||||||
bri: 255
|
bri: 255
|
||||||
alert: breathe
|
alert: "breathe"
|
||||||
- delay: 00:00:15
|
- delay: 00:00:15
|
||||||
- service: deconz.configure
|
- service: deconz.configure
|
||||||
data:
|
data:
|
||||||
entity: light.hue_lamp
|
entity: light.hue_lamp
|
||||||
field: /state
|
field: "/state"
|
||||||
data:
|
data:
|
||||||
'on': false
|
'on': false
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user