ZHA - REMOTE: Tradfri Wireless Dimmer (ICTC-G-1) for light

REMOTE Tradfri Wireless Dimmer (ICTC-G-1) for light

Blueprint to support the IKEA Tradfri Wireless Dimmer (ICTC-G-1) and allow it to control a light.

The following features are implemented:

  • rotation right/left with stop: turn on/off light
  • rotation right: dim up light
  • rotation left: dim down light

The brightness levels according to speed of rotation

IMPORT

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

BLUEPRINT

blueprint:
  name: 'REMOTE: Tradfri Wireless Dimmer for light'
  description: |
    Control light with IKEA ICTC-G-1 Tradfri Wireless Dimmer
    Usage:
    rotation right/left with stop: turn on/off light
    rotation right: dim up light
    rotation left: dim down light
  domain: automation
  input:
    remote:
      name: Tradfri Wireless Dimmer
      description: 'ZHA: Tradfri Wireless Dimmer to use (IKEA ICTC-G-1)'
      selector:
        device:
          integration: zha
          manufacturer: IKEA of Sweden
          model: TRADFRI wireless dimmer
          multiple: false
    light:
      name: Light
      description: Light to control with Tradfri Wireless Dimmer
      selector:
        entity:
          domain: light
          multiple: false
mode: restart
max_exceeded: silent
variables:
  LIGHT: !input light
trigger:
- platform: event
  event_type: zha_event
  event_data:
    device_id: !input remote
action:
- choose:
  - alias: Fast rotation right or left with stop - on/off
    conditions: '{{ trigger.event.data.command == ''move_to_level_with_on_off'' }}'
    sequence:
    - service: light.turn_on
      target:
        entity_id: '{{ LIGHT }}'
      data:
        brightness: '{{ trigger.event.data.params.level }}'
  - alias: Rotation right - dim up
    conditions: '{{ trigger.event.data.command == ''move_with_on_off'' }}'
    sequence:
    - repeat:
        while: '{{ is_state(LIGHT, ''on'') and state_attr(LIGHT, ''brightness'') | int != 255 }}'
        sequence:
        - service: light.turn_on
          target:
            entity_id: '{{ LIGHT }}'
          data:
            brightness_step: '{{ trigger.event.data.params.rate | float / 10 }}'
            transition: 0.5
        - delay:
            seconds: 0.5
  - alias: Rotation left - dim down
    conditions: '{{ trigger.event.data.command == ''move'' }}'
    sequence:
    - repeat:
        while: '{{ is_state(LIGHT, ''on'') }}'
        sequence:
        - service: light.turn_on
          target:
            entity_id: '{{ LIGHT }}'
          data:
            brightness_step: '{{ trigger.event.data.params.rate | float / -10 }}'
            transition: 0.5
        - delay:
            seconds: 0.5
  default: []

1 Like

hi, thanks for your work. I’m trying to use your automation but i have some problem: i can’t find any device compatible to use even if i have a tradfri dimmer properly connected. why? thanks