Use of zigbee2mqtt and dimmer in parallel?

Newbe question: can I pair e.g. an Ikea Tradfri wireless dimmer with an Ikea Tradfri bulb and pair both in parallel with my zigbee2mqtt (using CC2531 stick) to switch the bulb with the wireless dimmer but also with my e.g. Homebridge or FHEM or Home Assistant UI ? How should I configure this?

Today I use either or but I do not know how to pair a device with a second device or a CC2531, when it is already paired with another device.

Thanks in advance

i dont believe you can. Pair them both with home assistant, and setup an automation to control the light using the switch that way?

I did exactly that. It works… but it is very slow… the response time is around 1 second… or more…

  1. to move the dimmer
  2. the dimmer talk to the coordinator which talk to zigbee2mqtt
  3. the coordinator talk to mqtt
  4. mqtt to HA
  5. HA run automation which talk to mqtt
  6. mqtt talk to zigbee2mqtt which talk to the coordinator
  7. and finally the coordinator talk to the lamp

(and all this is repeated many times)

this is my HA config justy in case it may help

- alias: Dimmer Piano Lamp
  trigger:
    platform: mqtt
    topic: 'zigbee2mqtt/Piano Dimmer'
  condition:
    condition: template
    value_template: '{{ trigger.payload_json.brightness is number }}'
  action:
      service: light.turn_on
      data_template:
        entity_id: light.piano_lamp
        brightness: '{{ trigger.payload_json.brightness }}'

and this the how they talk each other via mqtt

11/2/2019, 6:56:56 PM - info: MQTT publish: topic 'zigbee2mqtt/Piano Lamp', payload '{"state":"OFF","brightness":255,"linkquality":84,"last_seen":"2019-11-02T18:56:56+00:00"}'
11/2/2019, 6:56:56 PM - info: Zigbee publish to device 'Piano Lamp', genOnOff - off - {} - {"manufSpec":0,"disDefaultRsp":0} - 1
11/2/2019, 6:56:56 PM - info: MQTT publish: topic 'zigbee2mqtt/Piano Lamp', payload '{"state":"OFF","brightness":255,"linkquality":84,"last_seen":"2019-11-02T18:56:56+00:00"}'
11/2/2019, 6:56:56 PM - info: Zigbee publish to device 'Piano Lamp', genOnOff - off - {} - {"manufSpec":0,"disDefaultRsp":0} - 1
11/2/2019, 6:56:56 PM - info: MQTT publish: topic 'zigbee2mqtt/Piano Lamp', payload '{"state":"OFF","brightness":255,"linkquality":84,"last_seen":"2019-11-02T18:56:56+00:00"}'
11/2/2019, 6:56:56 PM - info: Zigbee publish to device 'Piano Lamp', genOnOff - off - {} - {"manufSpec":0,"disDefaultRsp":0} - 1
11/2/2019, 6:56:56 PM - info: MQTT publish: topic 'zigbee2mqtt/Piano Lamp', payload '{"state":"OFF","brightness":255,"linkquality":84,"last_seen":"2019-11-02T18:56:56+00:00"}'
11/2/2019, 6:56:56 PM - info: Zigbee publish to device 'Piano Lamp', genOnOff - off - {} - {"manufSpec":0,"disDefaultRsp":0} - 1
11/2/2019, 6:56:56 PM - info: MQTT publish: topic 'zigbee2mqtt/Piano Lamp', payload '{"state":"OFF","brightness":255,"linkquality":84,"last_seen":"2019-11-02T18:56:56+00:00"}'
11/2/2019, 6:56:56 PM - info: Zigbee publish to device 'Piano Lamp', genOnOff - off - {} - {"manufSpec":0,"disDefaultRsp":0} - 1
11/2/2019, 6:56:56 PM - info: MQTT publish: topic 'zigbee2mqtt/Piano Lamp', payload '{"state":"OFF","brightness":255,"linkquality":84,"last_seen":"2019-11-02T18:56:56+00:00"}'
11/2/2019, 6:56:56 PM - info: Zigbee publish to device 'Piano Lamp', genOnOff - off - {} - {"manufSpec":0,"disDefaultRsp":0} - 1
11/2/2019, 6:56:56 PM - info: MQTT publish: topic 'zigbee2mqtt/Piano Lamp', payload '{"state":"OFF","brightness":255,"linkquality":84,"last_seen":"2019-11-02T18:56:56+00:00"}'
11/2/2019, 6:56:56 PM - info: Zigbee publish to device 'Piano Lamp', genOnOff - off - {} - {"manufSpec":0,"disDefaultRsp":0} - 1
11/2/2019, 6:56:56 PM - info: MQTT publish: topic 'zigbee2mqtt/Piano Lamp', payload '{"state":"OFF","brightness":255,"linkquality":84,"last_seen":"2019-11-02T18:56:56+00:00"}'
11/2/2019, 6:56:57 PM - info: Zigbee publish to device 'Piano Lamp', genLevelCtrl - moveToLevelWithOnOff - {"level":5,"transtime":0} - {"manufSpec":0,"disDefaultRsp":0} - 1
11/2/2019, 6:56:57 PM - info: MQTT publish: topic 'zigbee2mqtt/Piano Lamp', payload '{"state":"ON","brightness":5,"linkquality":84,"last_seen":"2019-11-02T18:56:57+00:00"}'
11/2/2019, 6:56:57 PM - info: MQTT publish: topic 'zigbee2mqtt/Piano Lamp', payload '{"state":"ON","brightness":5,"linkquality":84,"last_seen":"2019-11-02T18:56:57+00:00","elapsed":30782}'
11/2/2019, 6:56:57 PM - info: MQTT publish: topic 'zigbee2mqtt/Piano Lamp', payload '{"state":"ON","brightness":5,"linkquality":84,"last_seen":"2019-11-02T18:56:57+00:00","elapsed":12}'
11/2/2019, 6:56:57 PM - info: MQTT publish: topic 'zigbee2mqtt/Piano Lamp', payload '{"state":"ON","brightness":5,"linkquality":84,"last_seen":"2019-11-02T18:56:57+00:00","elapsed":6}'
11/2/2019, 6:56:57 PM - info: Zigbee publish to device 'Piano Lamp', genLevelCtrl - moveToLevelWithOnOff - {"level":5,"transtime":0} - {"manufSpec":0,"disDefaultRsp":0} - 1
11/2/2019, 6:56:57 PM - info: MQTT publish: topic 'zigbee2mqtt/Piano Lamp', payload '{"state":"ON","brightness":5,"linkquality":84,"last_seen":"2019-11-02T18:56:57+00:00"}'

Just wandering if is there a more efficient way ??

Not sure if this is an answer to your question. You can not pair a Zigbee device to multiple networks. But you can use binding.

That means your LED bulb and your switch are both paired to the same network. In order to make the switch communicate to the bulb directly (without the Switch > CCxxxx > zigbee2mqtt > [home automation software] > zigbee2mqtt > CCxxxx > Bulb roundtrip), you have to use binding:

Note: this does not work for every device. It works for me using the IKEA E1743 in combination with four IKEA Tradfri lights (all in the same group, then I bound the E1743 to this group). And another IKEA E1743 to a less common brand of light bulbs. But this also works great.

1 Like

For me the binding capability in Z2M is not working well.
I found that the following was needed:

  1. Pair the bulb (tried with Hue only) with zigbee2mqtt
  2. Pair the Ikea dimmer (I used ICTC-G-1)) with zigbee2mqtt
  3. Ensure that the dimmer, bulb and coordinator are all in same area (few meters apart) and then use the dimmer to bind with the bulbs (hold dimmer button for 10 secs). The bulb flashes a few times to indicated its bound. Repeat for all bulbs you wand the dimmer to control.
    The dimmer also still sends commands to Z2M should you need to also control something else…
1 Like

I have not set up my cc2531 yet because I want to have this info clear before doing the whole repairing and taking out the ikea tradfri gateway.

Had anyone figured out a way to do this properly already? :pensive:

Use of zigbee2mqtt and dimmer in parallel? worked for me