Hey guys! I’m trying to bind an Ikea LED bulb to a TRADFRI switch. But I’ve never done a zigbee mqtt binding… Is there anywhere i could get instructions?

Thanks a lot!

    • iturnedintoanewt@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      1 year ago

      OMG…I actually had done all of the parts of the first video. Super easy and intuitively. I just can’t believe that after such an easy pairing, the MQTT can’t use the UI bind options to actually pair them, and you need instead to go crawling for EVERY message each device sends, to manually assign them functions by typing them onto the configuration.yaml. I was hoping this was…a bit more straightforward. Nothing has been updated on this since the last 2 years since the video was made??

      I mean, the Zigbee2MQTT Device/Exposes, already exposes the values that can be modified for each device…So Zigbee actually KNOWS this already, no need to go to that debugger puzzle thing he was showing to get those values. But I’m not sure about any other changes.

      EDIT: Holy cow. I’m halfway there, and I don’t even know why. No yaml editing necessary anymore (mostly, I think). The OFF button DOES register to the Ikea light, and it really goes through Zigbee2mqtt. But, only to turn it off. On and the dimmer/color options are getting ignored.

      Let’s see… If I press OFF button on my Light Switch, all this happens:

      2023-06-22 21:27:56MQTT publish: topic 'zigbee2mqtt/Ikea Light Switch', payload '{"action":"off","battery":85,"linkquality":184,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":null}'
      2023-06-22 21:27:56MQTT publish: topic 'zigbee2mqtt/Ikea Light Switch', payload '{"action":"","battery":85,"linkquality":184,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":null}'
      info 2023-06-22 21:27:56MQTT publish: topic 'zigbee2mqtt/Ikea Light Switch/action', payload 'off'
      info 2023-06-22 21:27:56MQTT publish: topic 'zigbee2mqtt/Living room lights', payload '{"state":"OFF"}'
      info 2023-06-22 21:27:56MQTT publish: topic 'zigbee2mqtt/Ikea LED E27 1055lm (living room)', payload '{"brightness":216,"color_mode":"color_temp","color_temp":292,"linkquality":220,"power_on_behavior":null,"state":"OFF","update":{"installed_version":65554,"latest_version":65554,"state":"idle"},"update_available":null}'
      info 2023-06-22 21:27:56MQTT publish: topic 'zigbee2mqtt/Ikea LED E27 1055lm (living room)', payload '{"brightness":216,"color_mode":"color_temp","color_temp":292,"linkquality":224,"power_on_behavior":null,"state":"OFF","update":{"installed_version":65554,"latest_version":65554,"state":"idle"},"update_available":null}'
      2023-06-22 21:27:56MQTT publish: topic 'zigbee2mqtt/Ikea LED E27 1055lm (living room)', payload '{"brightness":216,"color_mode":"color_temp","color_temp":292,"linkquality":220,"power_on_behavior":null,"state":"OFF","update":{"installed_version":65554,"latest_version":65554,"state":"idle"},"update_available":null}'
      2023-06-22 21:28:01MQTT publish: topic 'zigbee2mqtt/Ikea Light Switch', payload '{"action":"on","battery":85,"linkquality":152,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":null}'
      2023-06-22 21:28:01MQTT publish: topic 'zigbee2mqtt/Ikea Light Switch', payload '{"action":"","battery":85,"linkquality":152,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":null}'
      
      

      However, when I press ON…only this happens:

      2023-06-22 21:28:01MQTT publish: topic 'zigbee2mqtt/Ikea Light Switch/action', payload 'on'
      2023-06-22 21:29:53MQTT publish: topic 'zigbee2mqtt/Ikea Light Switch', payload '{"action":"arrow_left_click","battery":85,"linkquality":208,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":null}'
      2023-06-22 21:29:53MQTT publish: topic 'zigbee2mqtt/Ikea Light Switch', payload '{"action":"","battery":85,"linkquality":208,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":null}'
      
      

      …Huh? Why? And then, the same with Left/Right arrows…Left:

      2023-06-22 21:29:53MQTT publish: topic 'zigbee2mqtt/Ikea Light Switch/action', payload 'arrow_left_click'
      2023-06-22 21:29:54MQTT publish: topic 'zigbee2mqtt/Ikea Light Switch', payload '{"action":"arrow_right_click","battery":85,"linkquality":244,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":null}'
      2023-06-22 21:29:54MQTT publish: topic 'zigbee2mqtt/Ikea Light Switch', payload '{"action":"","battery":85,"linkquality":244,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":null}'
      
      

      …and Right Click:

      2023-06-22 21:35:08MQTT publish: topic 'zigbee2mqtt/Ikea Light Switch', payload '{"action":"arrow_right_click","battery":85,"linkquality":232,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":null}'
      2023-06-22 21:35:08MQTT publish: topic 'zigbee2mqtt/Ikea Light Switch', payload '{"action":"","battery":85,"linkquality":232,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":null}'
      2023-06-22 21:35:08MQTT publish: topic 'zigbee2mqtt/Ikea Light Switch/action', payload 'arrow_right_click'
      

      EDIT2: OK…Finally found the reason for the errors while attempting to bind. So, the way I see it, you bind THE CONTROLLER to whatever you want it to control. So if you want to bind a remote to a light (or bunch of lights), you go to the Device / Your Remote, and from there, you choose to bind it. First, bind all possible options to the Coordinator (your HA server), then on another row, choose the same source (I think, 1), and the destination will be your light to be controlled. And now this…the moment you press bind, you need to IMMEDIATELY click any button on the remote, because otherwise it’s sleeping and it misses the bind command, erroring after a timeout. It goes back to sleep damn fast too!

      I still need to assign commands to the left/right buttons, but I’ll give it a rest for tonight :)

      This link has been rather helpful, too

      • Quinten@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        The OFF button DOES register to the Ikea light, and it really goes through Zigbee2mqtt. But, only to turn it off. On and the dimmer/color options are getting ignored

        Glad it (partly) works!

        I have returned all my Ikea stuff. It was just a painfull process to link it (and keep it that way), I did it through ZHA. Now have bulbs from Hue and have never a problem with it. Also the accessoires work seamless.