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

138 lines
3.9 KiB
YAML
Raw Permalink Normal View History

2022-08-30 16:42:25 +00:00
automation:
#----------------------------------------------------------------------------------#
# L/R
#----------------------------------------------------------------------------------#
# Button Left: Pos Left
- alias: button_pos_left
trigger:
# Bed
- platform: device
domain: mqtt
device_id: 4f9d195bf907da59e1461a5d2404f606
type: action
subtype: arrow_left_click
discovery_id: 0x0c4314fffee0bb44 action_arrow_left_click
# Door
- 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
- service: scene.turn_on
target:
entity_id: scene.light_adaptive
metadata: {}
2022-08-30 16:42:25 +00:00
mode: single
# Button Left: Pos Right
- alias: button_pos_right
trigger:
2023-01-01 13:12:39 +00:00
# Desk
- platform: device
domain: mqtt
device_id: 121e4230e41feb19254fa92ed5335760
type: action
subtype: "on"
discovery_id: 0x2c1165fffebebf6d action_on
2022-08-30 16:42:25 +00:00
# Bed
- platform: device
domain: mqtt
device_id: 4f9d195bf907da59e1461a5d2404f606
type: action
subtype: arrow_right_click
discovery_id: 0x0c4314fffee0bb44 action_arrow_right_click
# Door
- 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
- service: scene.turn_on
target:
entity_id: scene.light_night
metadata: {}
2022-08-30 16:42:25 +00:00
# Button Desk: Up
- alias: button_desk_up
trigger:
# Desk
- platform: device
domain: mqtt
device_id: 121e4230e41feb19254fa92ed5335760
type: action
subtype: "on"
discovery_id: 0x2c1165fffebebf6d action_on
action:
- service: script.pos_right_incr
metadata: {}
2022-08-30 16:42:25 +00:00
#----------------------------------------------------------------------------------#
# Up/Down
#----------------------------------------------------------------------------------#
# Up
- alias: button_up
trigger:
# Desk
2023-01-01 13:12:39 +00:00
#- platform: device
# domain: mqtt
# device_id: 121e4230e41feb19254fa92ed5335760
# type: action
# subtype: "on"
# discovery_id: 0x2c1165fffebebf6d action_on
2022-08-30 16:42:25 +00:00
# Bed
- platform: device
domain: mqtt
device_id: 4f9d195bf907da59e1461a5d2404f606
type: action
subtype: "on"
discovery_id: 0x0c4314fffee0bb44 action_on
# Door
- platform: device
domain: mqtt
device_id: 5e67efdee83ccceaac84046dfc6c735e
type: action
subtype: "on"
discovery_id: 0x0c4314fffef68790 action_on
action:
#- service: script.pos_up
- service: scene.turn_on
target:
entity_id: scene.light_bright
metadata: {}
2022-08-30 16:42:25 +00:00
mode: single
# Down
- alias: button_down
trigger:
# Desk
- platform: device
domain: mqtt
device_id: 121e4230e41feb19254fa92ed5335760
type: action
subtype: "off"
discovery_id: 0x2c1165fffebebf6d action_off
# Bed
- platform: device
domain: mqtt
device_id: 4f9d195bf907da59e1461a5d2404f606
type: action
subtype: "off"
discovery_id: 0x0c4314fffee0bb44 action_off
# Door
- platform: device
domain: mqtt
device_id: 5e67efdee83ccceaac84046dfc6c735e
type: action
subtype: "off"
discovery_id: 0x0c4314fffef68790 action_off
action:
#- service: script.pos_down
- service: light.turn_off
target:
entity_id: light.all_lights
2023-01-01 13:12:39 +00:00
mode: single