Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement binding #765

Closed
Koenkk opened this issue Dec 27, 2018 · 11 comments
Closed

Implement binding #765

Koenkk opened this issue Dec 27, 2018 · 11 comments

Comments

@Koenkk
Copy link
Owner

Koenkk commented Dec 27, 2018

Binding allows Zigbee devices to directly control other Zigbee devices and groups without the intervention of zigbee2mqtt or home automation software.

Adding this feature makes it (probably) possible to supported the following devices:

  • TRADFRI dimmer (already supported but not really usable as the interval of reports is very low)
  • TRADFRI motion sensor
  • TRADFRI five button remote

Note that the above devices will still not send any information to MQTT, but this at least makes them usable.

@trekker25
Copy link

is it possible to add binding without the bridge? Would be awesome if you could bind Hue dimmer remote to Tradfri groups etc

@Koenkk
Copy link
Owner Author

Koenkk commented Dec 29, 2018

What do you mean with without the bridge?

Koenkk added a commit that referenced this issue Dec 30, 2018
Koenkk added a commit that referenced this issue Dec 30, 2018
* Start on bind implementation. #765

* Finish binding implementation.
@Koenkk
Copy link
Owner Author

Koenkk commented Dec 30, 2018

Implemented, see #782

@Koenkk Koenkk closed this as completed Dec 30, 2018
@dmak
Copy link

dmak commented Jan 4, 2019

Am I right saying that correct binding procedure for Tradfri groups usecase is (see here):

(1) Peer the remote control with the base/gateway/hub
(2) Then you go with the prepared remote control to the light and peer that with the remote control.

@Koenkk
Copy link
Owner Author

Koenkk commented Jan 4, 2019

First pair it to zigbee2mqtt, then bind it to the bulb

@King-anderson
Copy link

@Koenkk is it possible to bind a device to hub?

@Koenkk
Copy link
Owner Author

Koenkk commented Mar 6, 2019

@msadeghz if by hub you mean coordinator, yes, many configure sections for devices do this.

@King-anderson
Copy link

King-anderson commented Mar 7, 2019

what do you mean about configuration sections?
I receive "Cannot handle MQTT message on 'zigbee2mqtt/bridge/bind/0x00124b00094b9ee2' with data '0x000d6f0011139480' "
0x00124b00094b9ee2 is IEEE address of my coordinator

{"id":1,"type":"Coordinator","ieeeAddr":"0x00124b00094b9ee2","nwkAddr":0,"manufId":0,"epList":[1,2,3,4,5,240,241,242,243,244,245,246,247,248,249,250,251,252],"status":"online","joinTime":1551963628,"endpoints":{"1":{"profId":260,"epId":1,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"2":{"profId":257,"epId":2,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"3":{"profId":261,"epId":3,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"4":{"profId":263,"epId":4,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"5":{"profId":264,"epId":5,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}},"240":{"profId":260,"epId":240,"devId":5,"inClusterList":[],"outClusterList":[],"clusters":{}}},"_id":"QQsieRu2WIFGt5u8"}

{"id":5,"type":"Router","ieeeAddr":"0x000d6f0011139480","nwkAddr":58800,"manufId":4412,"manufName":"00000","powerSource":"Mains (single phase)","modelId":"00000","epList":[1],"status":"offline","joinTime":null,"endpoints":{"1":{"profId":260,"epId":1,"devId":9,"inClusterList":[0,3,4,5,6,1794,64513],"outClusterList":[],"clusters":{"64513":{"dir":{"value":1},"attrs":{}},"genBasic":{"dir":{"value":1},"attrs":{"zclVersion":1,"manufacturerName":"000","modelId":"0000","dateCode":"20160706","powerSource":1}},"genIdentify":{"dir":{"value":1},"attrs":{"identifyTime":0}},"genGroups":{"dir":{"value":1},"attrs":{"nameSupport":0}},"genScenes":{"dir":{"value":1},"attrs":{"count":0,"currentScene":0,"currentGroup":0,"sceneValid":0,"nameSupport":0}},"genOnOff":{"dir":{"value":1},"attrs":{"onOff":0}},"seMetering":{"dir":{"value":1},"attrs":{"currentSummDelivered":{"0":0,"1":0},"status":0,"unitOfMeasure":0,"multiplier":1,"divisor":1000,"summaFormatting":251,"demandFormatting":251,"meteringDeviceType":0,"instantaneousDemand":0}}}}},"_id":"u8YPBNYjepqZKzUE"}

@Koenkk
Copy link
Owner Author

Koenkk commented Mar 7, 2019

Via MQTT it's not possible, why you want to do this?

@King-anderson
Copy link

Via MQTT it's not possible, why you want to do this?

the manufacture said I should bind to receive the device status when I push the physical button on the device.

@Koenkk
Copy link
Owner Author

Koenkk commented Mar 9, 2019

@msadeghz this is something that can be done in the configure sections, example: https://github.com/Koenkk/zigbee-shepherd-converters/blob/master/devices.js#L532

wilmardo pushed a commit to wilmardo/zigbee2mqtt that referenced this issue Sep 26, 2019
* Start on bind implementation. Koenkk#765

* Finish binding implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants