🎮 ZHA, deCONZ, Zigbee2MQTT - Ikea ICTC-G-1 TRADFRI wireless dimmer Universal blueprint - all actions - control lights, media players and more with Hooks

Tags: #<Tag:0x00007fc40e7bcb20> #<Tag:0x00007fc40e7bca08> #<Tag:0x00007fc40e7bc918> #<Tag:0x00007fc40e7bc800> #<Tag:0x00007fc40e7bc738>

This blueprint is part of the Awesome HA Blueprints project.
Read more about it on the related Community Forum topic. :rocket:

Updates will be published on the project’s GitHub repository.

:arrow_down: Get Started

Option 1: My Home Assistant

Click the badge to import this Blueprint (needs Home Assistant Core 2021.3 or higher)

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

Option 2: Direct Link

Copy this link if you want to import the blueprint in your installation.

:link: Blueprint URL

:page_facing_up: Description

IKEA ICTC-G-1 TRADFRI wireless dimmer|200X200

This blueprint provides universal support for running any custom action when a button is pressed on the provided IKEA ICTC-G-1 TRADFRI wireless dimmer. Supports controllers integrated with one of the following integrations: deCONZ, ZHA, Zigbee2MQTT.

Just specify the integration used to connect the remote to Home Assistant when setting up the automation, and the blueprint will take care of all the rest.

In addition of being able to provide custom actions for every kind of button press supported by the remote, the blueprint allows to optionally loop the rotate actions while the remote is rotating either left or right. Once the remote stops rotating, the loop stops as well. This is useful when rotating the controller should result in a continuous action (such as lowering the volume of a media player, or controlling a light brightness).

Moreover, automations created with this blueprint can be connected with one or more Hooks supported by this controller.

Hooks allow to easily create controller-based automations for interacting with media players, lights, covers and more. See the list of Hooks available for this controller for additional details.

:closed_book: Full Documentation

Full documentation regarding requirements, inputs and action mappings for the supported Hooks is available here.

Docs provide all the information you need to properly configure this blueprint on your instance.

:electric_plug: Available Hooks

:bulb: Light

This Hook blueprint allows to build a controller-based automation to control a light. Supports brightness and color control both for white temperature and rgb lights.

Light Hook docs

:loud_sound: Media Player

This Hook blueprint allows to build a controller-based automation to control a media player. Supports volume setting, play/pause and track selection.

Media Player Hook docs

Changelog

  • 2021-03-26: first blueprint version :tada:
  • 2021-04-19: Fix stop rotation events not being detected with deCONZ

Happy automating to everyone! :fire:

1 Like

Hi,

Thanks for this blueprint. Does it work with this?

SYMFONISK Sound remote, black - IKEA

Hi @Kaz,

this blueprint is specifically for the IKEA ICTC-G-1 controller, but good news, the same one is available for the SYMFONISK controller as well. Here’s the link to the related forum topic. :slight_smile:

Moreover, you can always browse the full list of available Controller blueprints here.

Happy automating!

Thank you. I will check it out :slight_smile:

1 Like

Has anyone got this working with ZHA? I’ve tried setting it to just change the brightness of one lamp up and down when I turn left and right. Nothing seems to change on the lamp though (connected via the Hue integration). I think these IKEA devices are a bit weird staying connected to ZigBee networks but if I listen for ZHA events I can see them coming through when I turn the knob.

Hi @Count.Zilch, thank you for reporting.

I think these IKEA devices are a bit weird staying connected to ZigBee networks but if I listen for ZHA events I can see them coming through when I turn the knob.

As far as my little experience with IKEA controllers goes, remotes usually don’t disconnect from the Zigbee network. The main problem is though they sometimes send duplicate events eg. when rotating the knob or pressing the button (especially the E1812 shortcut button, which fires 6 events in average when pressing the button once).

I’ve tried setting it to just change the brightness of one lamp up and down when I turn left and right.

Could you please post here the YAML for the automation you’ve setup? You can grab it by navigating to Configuration->Automations->Edit Automation (the pencil icon part of the automation row), then clicking on the 3 dots on the top right->Edit as YAML.
Moreover, do you notice any entries in the Home Assistant log related to this blueprint?

Thank you! :slight_smile:

Hi Matteo. Thanks so much for the prompt reply. I’ve attached the YAML. For testing I have changed this so it should (if I understand correctly) turn one of the downlights above me on or off. Idelly it will do brightness or something. I assuming for this type of basic functionality I don’t need to use hooks or set anything else up? There are some log errors. I’ve posted them as well.

alias: Test Library Wireless Dimmer Knob
description: ''
use_blueprint:
  path: EPMatt/ikea_ictc_g_1.yaml
  input:
    integration: ZHA
    controller_device: 0ed58ebd0dd0fe932cbaf840bbce125f
    action_rotate_left:
      - type: turn_off
        device_id: 87dd712372724753a14cb63499ceb74a
        entity_id: light.library_downlight_1
        domain: light
    action_rotate_right:
      - type: turn_on
        device_id: 87dd712372724753a14cb63499ceb74a
        entity_id: light.library_downlight_1
        domain: light
        brightness_pct: 100
    rotate_left_loop: false
    rotate_right_loop: false
Logger: homeassistant.components.automation.test_library_wireless_dimmer_knob
Source: helpers/script.py:1334
Integration: Automation (documentation, issues)
First occurred: 14:01:02 (586 occurrences)
Last logged: 20:40:13

Test Library Wireless Dimmer Knob: Choose at step 2: choice 3: Choose at step 1: choice 1: Error executing script. Invalid data for call_service at pos 1: not a valid value for dictionary value @ data['entity_id']
Test Library Wireless Dimmer Knob: Choose at step 2: choice 3: Error executing script. Invalid data for choose at pos 1: not a valid value for dictionary value @ data['entity_id']
Test Library Wireless Dimmer Knob: Error executing script. Invalid data for choose at pos 2: not a valid value for dictionary value @ data['entity_id']
Test Library Wireless Dimmer Knob: Choose at step 2: choice 1: Choose at step 1: choice 1: Error executing script. Invalid data for call_service at pos 1: not a valid value for dictionary value @ data['entity_id']
Test Library Wireless Dimmer Knob: Choose at step 2: choice 1: Error executing script. Invalid data for choose at pos 1: not a valid value for dictionary value @ data['entity_id']

Hi @Count.Zilch, thank you for your quick feedback.

Your configuration is missing a value fot the helper_last_controller_event input, which is required for the blueprint to work when the remote is integrated with either Zigbee2MQTT or ZHA, as stated here in the documentation. The reason why the input is required is described in the Additional Notes.

Please provide a valid text input for the helper_last_controller_event input, then try again and check if your issue is solved. You don’t need a particular text input, just create a brand new one in Configuration → Helpers. :slight_smile:

Thank you!

Thanks for the help @epmatt! Sorry if I’m being dim about this:

  1. I believe that the input_text integration is already installed
  2. I’ve gone into the config and created Helper:
  • Name: helper_last_controller_event
  • Icon: Blank
  • Minimum L\length: 0
  • Maximum length: 100
  • Display mode: Text
  • Regex patter: [Blank]
  • Entity ID: input_text.helper_last_controller_event
  • Area: [Blank]
  • Entity Enabled: [Checked]

I restarted HA but I am still getting the @ data[‘entity_id’] errors in the logs. Can you confirm what I’ve missed? Thanks!

Hi @Count.Zilch, sorry for my late response. Thank you for your feedback.

Sorry if I’m being dim about this:

Don’t worry, I’m glad to help as I can. :slight_smile:

The only thing missing is adding the text input to your blueprint configuration, like so:

alias: Test Library Wireless Dimmer Knob
description: ''
use_blueprint:
  path: EPMatt/ikea_ictc_g_1.yaml
  input:
    integration: ZHA
    controller_device: 0ed58ebd0dd0fe932cbaf840bbce125f
    action_rotate_left:
      - type: turn_off
        device_id: 87dd712372724753a14cb63499ceb74a
        entity_id: light.library_downlight_1
        domain: light
    action_rotate_right:
      - type: turn_on
        device_id: 87dd712372724753a14cb63499ceb74a
        entity_id: light.library_downlight_1
        domain: light
        brightness_pct: 100
    rotate_left_loop: false
    rotate_right_loop: false
    helper_last_controller_event: input_text.helper_last_controller_event

I’d also like to mention that if you have multiple controllers, you’ll need to setup a separate text input for each Controller blueprint you’ll configure. You don’t need to name the text input helper_last_controller_event explicitly: you just need to pass the text entity in the blueprint configuration, as described above.

Please let me know if adding the missing input solves your issue. :wink:

Thank you!