ControllerX E1743 Trådfri ZHA toggle two booleans

Hello everyone,

I can’t get my head around how to set up ControllerX the right way.
Right now I’m using ZHA and a E1743 Trådfri IKEA switch with “on” and “off” which is working just fine to turn on and off a simple outlet or lamp.

But now too my issue. I have 2 booleans in HA helpers which I want to toogle with the IKEA button.
So if I press the “ON” button it toggles between on<->off boolean1 and if I press the “OFF” button between on<->off boolean2. I tried a lot of diffrent configurations but nothing workes until now, what am I missing.

test_switch:
  module: controllerx
  class: E1743SwitchController
  controller: 34:25:b4:ff:fe:08:8f:df
  integration: zha
  switch: input_boolean.test_button
  mapping:
    "on"
      - service: input_boolean.toggle
        data:
            entity_id: input_boolean.test_1
    "off"
      - service: input_boolean.toggle
        data:
            entity_id: input_boolean.test_2

Hi @Joronik ,

Following configuration should work:

test_switch:
  module: controllerx
  class: E1743SwitchController
  controller: 34:25:b4:ff:fe:08:8f:df
  integration: zha
  switch: input_boolean.test_button
  mapping:
    "on":
      - service: input_boolean.toggle
        entity_id: input_boolean.test_1
    "off":
      - service: input_boolean.toggle
        entity_id: input_boolean.test_2

However, this will not do anything with the switch since you will be overwriting the on and off actions.

Regards,
Xavi M.

1 Like