-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZ2M - IKEA E1744 SYMFONISK.yaml
65 lines (65 loc) · 2.18 KB
/
Z2M - IKEA E1744 SYMFONISK.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
blueprint:
name: Controller - SYMFONISK
description: 'Controller - IKEA E1744 SYMFONISK Rotary Remote\n\nController automation for executing any kind of action triggered by the provided IKEA E1744 SYMFONISK Rotary Remote'
source_url: https://github.com/evorgevol/hassio/blob/main/Z2M%20-%20IKEA%20E1744%20SYMFONISK.yaml
domain: automation
input:
controller_entity:
name: (Zigbee2MQTT) Controller Entity
description: The action switch of the controller to use for the automation
default: ''
selector:
entity:
domain:
- sensor
multiple: false
action_click:
name: (Optional) Action to run when button pressed
description: Action to run when button pressed
default: []
selector:
action: {}
action_rotate_clockwise:
name: (Optional) Action to run when rotated clockwise
description: Action to run when rotated clockwise
default: []
selector:
action: {}
action_rotate_anticlockwise:
name: (Optional) Action to run when rotated anti-clockwise
description: Action to run when rotated anti-clockwise
default: []
selector:
action: {}
variables:
trigger_action: '{{ trigger.event.data.new_state.state }}'
action_entities: !input action_click
controller_entity: !input controller_entity
mode: queued
max_exceeded: silent
trigger:
- platform: event
event_type: state_changed
event_data:
entity_id: !input controller_entity
action:
- event: evo_controller_event
event_data:
controller: '{{ controller_entity }}'
action: '{{ trigger_action }}'
- choose:
- conditions: "{{ trigger_action == 'toggle' }}"
sequence:
- choose:
- conditions: []
sequence: !input action_click
- conditions: "{{ trigger_action == 'brightness_move_down' }}"
sequence:
- choose:
- conditions: []
sequence: !input action_rotate_anticlockwise
- conditions: "{{ trigger_action == 'brightness_move_up' }}"
sequence:
- choose:
- conditions: []
sequence: !input action_rotate_clockwise