-
Notifications
You must be signed in to change notification settings - Fork 186
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
Door lock control (MK device) - how to locally get state and control #557
Comments
I also tried setting a DPS:
|
It has been my experience that these types of devices do not respond to polls. If you have a monitor script running (i.e. https://github.com/jasonacox/tinytuya/blob/master/examples/monitor.py) you will see async updates as settings are changed, however there is no way that I know of to query the current state. I have one that I've been meaning to add a Contrib module for for like a year now, but it keeps getting pushed back with all the other stuff I'm working on. |
Looks like it was #438 . The DP reference at https://developer.tuya.com/en/docs/iot/datapoint-reference?id=Kadhd28uy4rvp still looks valid. |
The device is a fob/smart door control which I've been using via the tuya cloud, however the developer account has now expired and so I'm looking to start using local control for it.
The device is a "MK" branded smart door lock:
Under IOT cloud I can query/unlock it, etc, however I want to now talk to it locally.
Querying it via scan (after adding the localkey) I get:
So it appears to DPs are reported. using my own basic query (data = d.status()) confirms this, no DPs reported.
I've gone onto Tuya IOT cloud and done a DP dump using the guide and got:
But if they aren't visible when querying status, how can I use this information? Is the device not correctly communicating. It's on the wifi, and it's mains powered so it is constantly connected/active.
How can I go about further debugging the device and digging further?
I put tinytuya into debug output and included it below, there do appear to be DPs in this output so how would I go about getting these more exposed?
The text was updated successfully, but these errors were encountered: