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

Garage Door controller - no contact sensor update #138

Closed
1aranzant opened this issue Dec 8, 2022 · 4 comments
Closed

Garage Door controller - no contact sensor update #138

1aranzant opened this issue Dec 8, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@1aranzant
Copy link

Garage door controllers have a contact sensor that should display whether the door is in close or open position.
The issue is that the state of that sensor is not updated.

Further more, nothing appears in the debug log when changing the open/close position of the sensor, but it does work well in the Tuya app.

@1aranzant 1aranzant added the bug Something isn't working label Dec 8, 2022
@0x5e
Copy link
Owner

0x5e commented Dec 8, 2022

If no messages received during open/close the door, but the door already has the position sensor, please see #111 .
And, please also upload your device info json so I can confirm what cause the problem.

@1aranzant
Copy link
Author

1aranzant commented Dec 8, 2022

I changed to DP instructions, but still the same issue.

image

Here is the device info json:

{
   "active_time": 1670321049,
   "biz_type": 0,
   "category": "ckmkzq",
   "create_time": 1670321049,
   "icon": "smart/icon/ay1559113396016bSygG/9719ce2bebaeb6ccfadbe2c28d7d9df8.jpg",
   "id": "7061448370039f9086c6",
   "ip": "xxxxx",
   "lat": "xxxx",
   "local_key": "xxxxx",
   "lon": "xxxxx",
   "model": "WG-088",
   "name": "Contrôleur de portail",
   "online": true,
   "owner_id": "3466908",
   "product_id": "b1uk4ftduaqopxv1",
   "product_name": "Garage door opener",
   "status": [
     {
       "code": "doorcontact_state",
       "value": false
     },
     {
       "code": "switch_1",
       "value": false
     }
   ],
   "sub": false,
   "time_zone": "+01:00",
   "uid": "xxxx",
   "update_time": 1670321064,
   "uuid": "7061448370039f9086c6",
   "schema": [
     {
       "code": "doorcontact_state",
       "mode": "ro",
       "type": "Boolean",
       "property": {}
     },
     {
       "code": "switch_1",
       "mode": "rw",
       "type": "Boolean",
       "property": {}
     }
   ]
 },

@0x5e
Copy link
Owner

0x5e commented Dec 8, 2022

Have you enabled the debug mode? Does the unlock function works well?
From the info, the device have switch_1 and doorcontact_state this is a standard device.

@1aranzant
Copy link
Author

I fixed the issue ! Very stupid of me...
I did not have the "Device Status Notification" authorized in Tuya IOT Platform Service APIs.
Thanks a lot for your time @0x5e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants