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/automations.yaml

116 lines
3.3 KiB
YAML
Raw Normal View History

automation:
- alias: button_on
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: scene.turn_on
target:
entity_id: scene.light_adaptive
mode: single
- alias: button_off
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.light_store_off
mode: single
- alias: button_ceiling_on
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: light.toggle
target:
entity_id: light.ceiling
mode: single
- alias: button_ceiling_bed_on
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_right_click
discovery_id: 0x0c4314fffef68790 action_arrow_right_click
action:
- service: light.toggle
target:
device_id: 2f01ed8d8c56ffea9ab769ba3cf527d9
mode: single
- alias: button_sleep
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: switch.toggle
target:
entity_id: switch.adaptive_lighting_sleep_mode_default
mode: single