Skip to content

Instantly share code, notes, and snippets.

@maciejmajewski
Created April 6, 2022 10:53
Show Gist options
  • Save maciejmajewski/48e367ea33d024c9c6ce66a675f0e541 to your computer and use it in GitHub Desktop.
Save maciejmajewski/48e367ea33d024c9c6ce66a675f0e541 to your computer and use it in GitHub Desktop.
Shelly Button Automations
alias: Living Room F1 F2 F*
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 967c22b13ac4d96b7033ac98a3cdaa98
type: button_short_press
subtype: button_3
discovery_id: shellypro4pm-083af27beeec-input-2 single_push
id: f1
- platform: device
domain: mqtt
device_id: 967c22b13ac4d96b7033ac98a3cdaa98
type: button_short_press
subtype: button_2
discovery_id: shellypro4pm-083af27beeec-input-2 single_push
id: f2
- platform: device
domain: mqtt
device_id: 967c22b13ac4d96b7033ac98a3cdaa98
type: button_short_press
subtype: button_0
discovery_id: shellypro4pm-083af27beeec-input-2 single_push
id: f_
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: f1
sequence:
- service: light.toggle
data: {}
target:
entity_id: light.livingroom_f1_dali
- conditions:
- condition: trigger
id: f2
sequence:
- service: light.toggle
data: {}
target:
entity_id: light.livingroom_f2_dali
- conditions:
- condition: trigger
id: f_
sequence:
- service: light.toggle
data: {}
target:
entity_id: light.kitchen_g2_bulb
default: []
mode: parallel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment