Forked from codycodes/hue-remote-dimmer-december-2021.yaml
Last active
July 6, 2023 04:19
-
-
Save lksnyder0/6ad7bd5db9201f1c26019beb8bbb0ee7 to your computer and use it in GitHub Desktop.
Blueprint to create Home Assistant automations based on Hue Remote Dimmer Button Press/Holds (created using the RWL020 dimmer)
This file contains 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
blueprint: | |
name: Hue Dimmer Remote With Hold | |
description: | | |
(Jan 2022 Update) Using a Hue bridge with which a dimmer remote is paired, allows you to configure actions based on said Hue Dimmer Remote | |
NOTE: tested with RWL020 but may also work with RWL021 | |
domain: automation | |
source_url: https://gist.github.com/lksnyder0/6ad7bd5db9201f1c26019beb8bbb0ee7 | |
input: | |
dimmer_device: | |
name: Dimmer Remote Device | |
description: "Your Hue dimmer remote (e.g. RWL020); check Hue app if you don't know the name" | |
selector: | |
device: | |
integration: hue | |
on_short_action: | |
name: On Short Press Action | |
description: Action to perform after pressing ON shortly | |
default: [] | |
selector: | |
action: | |
on_long_action: | |
name: On Long Press Action | |
description: Action to perform after pressing ON for a long period | |
default: [] | |
selector: | |
action: | |
on_repeat_action: | |
name: On Hold Action | |
description: Action to repeat as button is held. This may conflict with On Long Press Action | |
default: [] | |
selector: | |
action: | |
brightness_up_short_action: | |
name: Brightness Up Short Press Action | |
description: Action to perform after pressing brightness up shortly | |
default: [] | |
selector: | |
action: | |
brightness_up_long_action: | |
name: Brightness Up Long Press Action | |
description: Action to perform after pressing brightness up for a long period | |
default: [] | |
selector: | |
action: | |
brightness_up_repeat_action: | |
name: Brightness Up Hold Action | |
description: Action to repeat as button is held. This may conflict with On Long Press Action | |
default: [] | |
selector: | |
action: | |
brightness_down_short_action: | |
name: Brightness Down Short Press Action | |
description: Action to perform after pressing brightness down shortly | |
default: [] | |
selector: | |
action: | |
brightness_down_long_action: | |
name: Brightness Down Long Press Action | |
description: Action to perform after pressing brightness down for a long period | |
default: [] | |
selector: | |
action: | |
brightness_down_repeat_action: | |
name: Brightness Down Hold Action | |
description: Action to repeat as button is held. This may conflict with On Long Press Action | |
default: [] | |
selector: | |
action: | |
off_short_action: | |
name: Off Short Press Action | |
description: Action to perform after pressing OFF shortly | |
default: [] | |
selector: | |
action: | |
off_long_action: | |
name: Off Long Press Action | |
description: Action to perform after pressing OFF for a long period | |
default: [] | |
selector: | |
action: | |
off_repeat_action: | |
name: Off Hold Action | |
description: Action to repeat as button is held. This may conflict with On Long Press Action | |
default: [] | |
selector: | |
action: | |
mode: single | |
trigger: | |
- device_id: !input dimmer_device | |
domain: hue | |
platform: device | |
type: short_release | |
subtype: 1 | |
id: on short | |
- device_id: !input dimmer_device | |
domain: hue | |
platform: device | |
type: long_release | |
subtype: 1 | |
id: on long | |
- device_id: !input dimmer_device | |
domain: hue | |
platform: device | |
type: repeat | |
subtype: 1 | |
id: on repeat | |
- device_id: !input dimmer_device | |
domain: hue | |
platform: device | |
type: short_release | |
subtype: 2 | |
id: brightness up short | |
- device_id: !input dimmer_device | |
domain: hue | |
platform: device | |
type: long_release | |
subtype: 2 | |
id: brightness up long | |
- device_id: !input dimmer_device | |
domain: hue | |
platform: device | |
type: repeat | |
subtype: 2 | |
id: brightness up repeat | |
- device_id: !input dimmer_device | |
domain: hue | |
platform: device | |
type: short_release | |
subtype: 3 | |
id: brightness down short | |
- device_id: !input dimmer_device | |
domain: hue | |
platform: device | |
type: long_release | |
subtype: 3 | |
id: brightness down long | |
- device_id: !input dimmer_device | |
domain: hue | |
platform: device | |
type: repeat | |
subtype: 3 | |
id: brightness down repeat | |
- device_id: !input dimmer_device | |
domain: hue | |
platform: device | |
type: short_release | |
subtype: 4 | |
id: off short | |
- device_id: !input dimmer_device | |
domain: hue | |
platform: device | |
type: long_release | |
subtype: 4 | |
id: off long | |
- device_id: !input dimmer_device | |
domain: hue | |
platform: device | |
type: repeat | |
subtype: 4 | |
id: off repeat | |
condition: [] | |
action: | |
- choose: | |
- conditions: | |
- condition: trigger | |
id: on short | |
sequence: !input on_short_action | |
- conditions: | |
- condition: trigger | |
id: on long | |
sequence: !input on_long_action | |
- conditions: | |
- condition: trigger | |
id: on repeat | |
sequence: !input on_repeat_action | |
- conditions: | |
- condition: trigger | |
id: brightness up short | |
sequence: !input brightness_up_short_action | |
- conditions: | |
- condition: trigger | |
id: brightness up long | |
sequence: !input brightness_up_long_action | |
- conditions: | |
- condition: trigger | |
id: brightness up repeat | |
sequence: !input brightness_up_repeat_action | |
- conditions: | |
- condition: trigger | |
id: brightness down short | |
sequence: !input brightness_down_short_action | |
- conditions: | |
- condition: trigger | |
id: brightness down long | |
sequence: !input brightness_down_long_action | |
- conditions: | |
- condition: trigger | |
id: brightness down repeat | |
sequence: !input brightness_down_repeat_action | |
- conditions: | |
- condition: trigger | |
id: off short | |
sequence: !input off_short_action | |
- conditions: | |
- condition: trigger | |
id: off long | |
sequence: !input off_long_action | |
- conditions: | |
- condition: trigger | |
id: off repeat | |
sequence: !input off_repeat_action | |
default: | |
- service: persistent_notification.create | |
data: | |
message: | |
Hue dimmer ran default event from "choose" action on button press! | |
Please check any automations which may not be handling this event! | |
notification_id: hue_dimmer_blueprint | |
title: Uncaught Dimmer Command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment