Skip to content

Instantly share code, notes, and snippets.

@kaystrobach
Created March 2, 2023 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaystrobach/0894726007b91694d066c28ce27a08ee to your computer and use it in GitHub Desktop.
Save kaystrobach/0894726007b91694d066c28ce27a08ee to your computer and use it in GitHub Desktop.
Remote automation for typical dimmer switch with home assistant
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