This repository has been archived on 2023-06-10. You can view files and clone it, but cannot push or open issues or pull requests.
homeassistant-config/packages/button/button_press.yaml

104 lines
2.9 KiB
YAML
Raw Normal View History

automation:
2022-08-07 18:10:43 +00:00
#----------------------------------------------------------------------------------#
# L/R
#----------------------------------------------------------------------------------#
# Button Left: Pos Left
- alias: button_pos_left
trigger:
2022-08-09 09:21:13 +00:00
# Bed
- platform: device
domain: mqtt
device_id: 4f9d195bf907da59e1461a5d2404f606
type: action
2022-08-07 18:10:43 +00:00
subtype: arrow_left_click
discovery_id: 0x0c4314fffee0bb44 action_arrow_left_click
2022-08-09 09:21:13 +00:00
# Door
- platform: device
domain: mqtt
device_id: 5e67efdee83ccceaac84046dfc6c735e
type: action
2022-08-07 18:10:43 +00:00
subtype: arrow_left_click
discovery_id: 0x0c4314fffef68790 action_arrow_left_click
action:
2022-08-07 18:10:43 +00:00
- service: script.pos_left_incr
mode: single
2022-08-07 18:10:43 +00:00
# Button Left: Pos Right
- alias: button_pos_right
trigger:
2022-08-09 09:21:13 +00:00
# Bed
- platform: device
domain: mqtt
device_id: 4f9d195bf907da59e1461a5d2404f606
type: action
2022-08-07 18:10:43 +00:00
subtype: arrow_right_click
discovery_id: 0x0c4314fffee0bb44 action_arrow_right_click
2022-08-09 09:21:13 +00:00
# Door
- platform: device
domain: mqtt
device_id: 5e67efdee83ccceaac84046dfc6c735e
type: action
subtype: arrow_left_click
2022-08-07 18:10:43 +00:00
discovery_id: 0x0c4314fffef68790 action_arrow_right_click
action:
2022-08-07 18:10:43 +00:00
- service: script.pos_right_incr
mode: single
2022-08-07 18:10:43 +00:00
#----------------------------------------------------------------------------------#
# Up/Down
#----------------------------------------------------------------------------------#
# Up
- alias: button_up
trigger:
2022-08-09 09:21:13 +00:00
# Desk
2022-08-07 18:10:43 +00:00
- platform: device
domain: mqtt
device_id: 121e4230e41feb19254fa92ed5335760
type: action
subtype: "on"
discovery_id: 0x2c1165fffebebf6d action_on
2022-08-09 09:21:13 +00:00
# Bed
- platform: device
domain: mqtt
device_id: 4f9d195bf907da59e1461a5d2404f606
type: action
2022-08-07 18:10:43 +00:00
subtype: "on"
discovery_id: 0x0c4314fffee0bb44 action_on
2022-08-09 09:21:13 +00:00
# Door
- platform: device
domain: mqtt
device_id: 5e67efdee83ccceaac84046dfc6c735e
type: action
2022-08-07 18:10:43 +00:00
subtype: "on"
discovery_id: 0x0c4314fffef68790 action_on
action:
2022-08-07 18:10:43 +00:00
- service: script.pos_up
mode: single
2022-08-07 18:10:43 +00:00
# Down
- alias: button_down
trigger:
2022-08-09 09:21:13 +00:00
# Desk
- platform: device
domain: mqtt
device_id: 121e4230e41feb19254fa92ed5335760
type: action
subtype: "off"
discovery_id: 0x2c1165fffebebf6d action_off
2022-08-09 09:21:13 +00:00
# Bed
- platform: device
domain: mqtt
device_id: 4f9d195bf907da59e1461a5d2404f606
type: action
subtype: "off"
discovery_id: 0x0c4314fffee0bb44 action_off
2022-08-09 09:21:13 +00:00
# Door
- platform: device
domain: mqtt
device_id: 5e67efdee83ccceaac84046dfc6c735e
type: action
subtype: "off"
discovery_id: 0x0c4314fffef68790 action_off
action:
2022-08-07 18:10:43 +00:00
- service: script.pos_down
mode: single