Skip to content

Help with the LIDL gateway (Tuya + HomeKit version) #470

Answered by uzlonewolf
fsutter asked this question in Q&A
Discussion options

You must be logged in to vote

DEBUG:Session key negotiate success! session key: b'\xfd\r5q\x037\x8a\x8e\xca\x86,G\xe20\xb3\xc1'

This is good and proves the local key and other data is correct. I wonder if your gateway just doesn't respond to either status() or subdev_query() requests? If you know the Device ID and CID of a paired device then you could try polling it instead with

#!/usr/bin/env python3


import tinytuya


def main():
    tinytuya.set_debug(True)

    gw = tinytuya.Device(
        "xxxxxxxx",
        address="XXX.YYY.ZZZ.WWW",
        local_key="xxxxxxxx",
        version=3.5,
        persist=True,
    )

    zigbee1 = tinytuya.Device( 'eb14...w', cid='0011223344556601', parent=gw )

    print(zigbee1.s…

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@fsutter
Comment options

Comment options

You must be logged in to vote
4 replies
@uzlonewolf
Comment options

@fsutter
Comment options

@uzlonewolf
Comment options

Answer selected by fsutter
@fsutter
Comment options

Comment options

You must be logged in to vote
2 replies
@uzlonewolf
Comment options

@fsutter
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants