Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Trying to create an automation to dim lights via conbee2

$
0
0

@Rdoull wrote:

Hi all,

i’m trying to get a light to dim when I press an ikea wireless dimmer switch but I’ve no idea how to do it.

currently I’m using the automation from the instructions

- id: '0000000000030'
  alias: Decrease brightness of Robins bedside light with dimmer
  initial_state: 'true'
  trigger:
    platform: event
    event_type: deconz_event
    event_data:
      id: robins_dimmer
      event: 3002
  action:
    - service: light.turn_on
      data_template:
        entity_id: light.bedside_1
        brightness: >
          {% set bri = state_attr('light.bedside_1', 'brightness') | int %}
          {{ [bri-30, 0] | max }}

the problem with this is that I have to keep pressing the button or turning the dial, stop, turn the dial… what I’d like to do is have the light increase/decrease in brightness until I release the button, or stop turning the dial.

is this possible? and could someone help me to understand how?

thank you all for your time and help

kind regards

Robin

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles