94 lines
2.8 KiB
YAML
94 lines
2.8 KiB
YAML
automation:
|
|
#----------------------------------------------------------------------------------#
|
|
# L/R
|
|
#----------------------------------------------------------------------------------#
|
|
# Button Left: Pos Left
|
|
- alias: button_pos_left
|
|
trigger:
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: 4f9d195bf907da59e1461a5d2404f606
|
|
type: action
|
|
subtype: arrow_left_click
|
|
discovery_id: 0x0c4314fffee0bb44 action_arrow_left_click
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: 5e67efdee83ccceaac84046dfc6c735e
|
|
type: action
|
|
subtype: arrow_left_click
|
|
discovery_id: 0x0c4314fffef68790 action_arrow_left_click
|
|
action:
|
|
- service: script.pos_left_incr
|
|
mode: single
|
|
|
|
# Button Left: Pos Right
|
|
- alias: button_pos_right
|
|
trigger:
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: 4f9d195bf907da59e1461a5d2404f606
|
|
type: action
|
|
subtype: arrow_right_click
|
|
discovery_id: 0x0c4314fffee0bb44 action_arrow_right_click
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: 5e67efdee83ccceaac84046dfc6c735e
|
|
type: action
|
|
subtype: arrow_left_click
|
|
discovery_id: 0x0c4314fffef68790 action_arrow_right_click
|
|
action:
|
|
- service: script.pos_right_incr
|
|
mode: single
|
|
|
|
|
|
#----------------------------------------------------------------------------------#
|
|
# Up/Down
|
|
#----------------------------------------------------------------------------------#
|
|
# Up
|
|
- alias: button_up
|
|
trigger:
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: 121e4230e41feb19254fa92ed5335760
|
|
type: action
|
|
subtype: "on"
|
|
discovery_id: 0x2c1165fffebebf6d action_on
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: 4f9d195bf907da59e1461a5d2404f606
|
|
type: action
|
|
subtype: "on"
|
|
discovery_id: 0x0c4314fffee0bb44 action_on
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: 5e67efdee83ccceaac84046dfc6c735e
|
|
type: action
|
|
subtype: "on"
|
|
discovery_id: 0x0c4314fffef68790 action_on
|
|
action:
|
|
- service: script.pos_up
|
|
mode: single
|
|
# Down
|
|
- alias: button_down
|
|
trigger:
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: 121e4230e41feb19254fa92ed5335760
|
|
type: action
|
|
subtype: "off"
|
|
discovery_id: 0x2c1165fffebebf6d action_off
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: 4f9d195bf907da59e1461a5d2404f606
|
|
type: action
|
|
subtype: "off"
|
|
discovery_id: 0x0c4314fffee0bb44 action_off
|
|
- platform: device
|
|
domain: mqtt
|
|
device_id: 5e67efdee83ccceaac84046dfc6c735e
|
|
type: action
|
|
subtype: "off"
|
|
discovery_id: 0x0c4314fffef68790 action_off
|
|
action:
|
|
- service: script.pos_down
|
|
mode: single |