Got a Hue Dimmer Switch, automated it
This commit is contained in:
@ -865,3 +865,48 @@
|
|||||||
entity_id: input_boolean.tornado_watch
|
entity_id: input_boolean.tornado_watch
|
||||||
alias: Control input boolean
|
alias: Control input boolean
|
||||||
mode: restart
|
mode: restart
|
||||||
|
- id: '1679104710155'
|
||||||
|
alias: Living Room Switch Handler
|
||||||
|
description: ''
|
||||||
|
use_blueprint:
|
||||||
|
path: codycodes/hue-remote-dimmer-december-2021.yaml
|
||||||
|
input:
|
||||||
|
dimmer_device: ccc672e3d924e72a952d801736ea59d3
|
||||||
|
on_short_action: []
|
||||||
|
on_long_action:
|
||||||
|
- service: input_select.select_option
|
||||||
|
data:
|
||||||
|
option: Adaptive
|
||||||
|
target:
|
||||||
|
entity_id: input_select.living_room_scenes
|
||||||
|
brightness_up_short_action:
|
||||||
|
- service: switch.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: switch.adaptive_lighting_living_room
|
||||||
|
brightness_down_short_action:
|
||||||
|
- service: switch.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: switch.adaptive_lighting_living_room
|
||||||
|
off_short_action:
|
||||||
|
- service: input_boolean.turn_on
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: input_boolean.living_room_dynamic_scenes
|
||||||
|
- service: input_select.select_option
|
||||||
|
data:
|
||||||
|
option: Tokyo
|
||||||
|
target:
|
||||||
|
entity_id: input_select.living_room_scenes
|
||||||
|
brightness_up_long_action:
|
||||||
|
- service: switch.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: switch.adaptive_lighting_living_room
|
||||||
|
brightness_down_long_action:
|
||||||
|
- service: switch.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: switch.adaptive_lighting_living_room
|
||||||
|
off_long_action: []
|
||||||
|
@ -0,0 +1,159 @@
|
|||||||
|
blueprint:
|
||||||
|
name: Hue Dimmer Remote
|
||||||
|
description: '(Dec 2021 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 and RWL022, but community says it also works with RWL021!
|
||||||
|
|
||||||
|
'
|
||||||
|
domain: automation
|
||||||
|
source_url: https://gist.github.com/codycodes/f051781c35cfdfee15162ff680c9cbd8
|
||||||
|
input:
|
||||||
|
dimmer_device:
|
||||||
|
name: Dimmer Remote Device
|
||||||
|
description: Your Hue dimmer remote (e.g. RWL020); check Hue integration and/or
|
||||||
|
Hue app if you don't know the name
|
||||||
|
selector:
|
||||||
|
device:
|
||||||
|
integration: hue
|
||||||
|
multiple: false
|
||||||
|
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: {}
|
||||||
|
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_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: {}
|
||||||
|
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: {}
|
||||||
|
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: 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: 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: short_release
|
||||||
|
subtype: 4
|
||||||
|
id: off short
|
||||||
|
- device_id: !input dimmer_device
|
||||||
|
domain: hue
|
||||||
|
platform: device
|
||||||
|
type: long_release
|
||||||
|
subtype: 4
|
||||||
|
id: off long
|
||||||
|
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: 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 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: off short
|
||||||
|
sequence: !input off_short_action
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: off long
|
||||||
|
sequence: !input off_long_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
|
Reference in New Issue
Block a user