Skip to content

Conversation

@pipiche38
Copy link

No description provided.

@pipiche38
Copy link
Author

@doudz , don't where the changes on Application.py are coming from.

Copy link
Collaborator

@doudz doudz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also add a unit test to validate two stages pairing ?

0x8007: (t.uint8_t,),
0x8009: (t.NWK, t.EUI64, t.uint16_t, t.uint64_t, t.uint8_t),
0x8010: (t.uint16_t, t.uint16_t),
0x8012: (t.uint8_t, t.uint8_t, t.uint8_t, t.Address, t.uint8_t),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicated line

ieee = zigpy.types.EUI64(response[1])
parent_nwk = 0
self.handle_join(nwk, ieee, parent_nwk)
#time.sleep(2.0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove commented line

parent_nwk = 0
self.handle_join(nwk, ieee, parent_nwk)
#time.sleep(2.0)
#self.handle_join(nwk, ieee, parent_nwk)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

# else:
# LOGGER.debug('Start pairing {} (1st device announce)'.format(nwk))
# self._pending_join.append(nwk)
rejoin = response[3]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also update line 47 to set minimal firmware to 3.2

0x8701: (t.uint8_t, t.uint8_t),
0x8702: (t.uint8_t, t.uint8_t, t.uint8_t, t.Address, t.uint8_t),
0x8806: (t.uint8_t,),
0x9999: (t.uint8_t,),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also handle the message with logger

@pipiche38
Copy link
Author

we are currently working on zigpy-zigate library under a fork dedicated to our project, we don't have the possibility to test it under the ZHA environment but if you are ready to do, you can eventually use it
https://github.com/zigbeefordomoticz/zigpy-zigate

When ready we will be providing PRs against the main stream

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

Successfully merging this pull request may close these issues.

2 participants