Created
March 2, 2023 16:16
-
-
Save kaystrobach/0894726007b91694d066c28ce27a08ee to your computer and use it in GitHub Desktop.
Remote automation for typical dimmer switch with home assistant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: "Arbeitszimmer: Rollo" | |
description: "" | |
trigger: | |
- device_id: 98e90028cce28707c8ae4eccd5923d88 | |
domain: zha | |
platform: device | |
type: remote_button_short_press | |
subtype: button_1 | |
id: top | |
- device_id: 98e90028cce28707c8ae4eccd5923d88 | |
domain: zha | |
platform: device | |
type: remote_button_short_press | |
subtype: button_2 | |
id: middle | |
- device_id: 98e90028cce28707c8ae4eccd5923d88 | |
domain: zha | |
platform: device | |
type: remote_button_short_press | |
subtype: button_3 | |
id: bottom | |
- device_id: 98e90028cce28707c8ae4eccd5923d88 | |
domain: zha | |
platform: device | |
type: remote_button_long_release | |
subtype: button_2 | |
id: hold-middle | |
condition: [] | |
action: | |
- if: | |
- condition: trigger | |
id: top | |
then: | |
- service: cover.open_cover | |
data: {} | |
target: | |
device_id: | |
- da6229c7e0424df923e98c1906f1e380 | |
- 28745072baa4d60d3dd1dd455d776486 | |
- if: | |
- condition: trigger | |
id: middle | |
then: | |
- service: cover.stop_cover | |
data: {} | |
target: | |
device_id: | |
- da6229c7e0424df923e98c1906f1e380 | |
- 28745072baa4d60d3dd1dd455d776486 | |
- if: | |
- condition: trigger | |
id: bottom | |
then: | |
- service: cover.close_cover | |
data: {} | |
target: | |
device_id: | |
- da6229c7e0424df923e98c1906f1e380 | |
- 28745072baa4d60d3dd1dd455d776486 | |
- if: | |
- condition: trigger | |
id: hold-middle | |
then: | |
- service: cover.set_cover_position | |
data: | |
position: 74 | |
target: | |
device_id: | |
- da6229c7e0424df923e98c1906f1e380 | |
- 28745072baa4d60d3dd1dd455d776486 | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment