Closed cyberrock closed 3 years ago
Hi! This is my request too. I have a Wofea WG-088 garage door opener which is not handled by any Home Assistant Tuya integration (Tuya, Tuya V2 nor localtuya). Please read more about the issue I have created in the localtuya github: #330 If you need any info from my side, I am more than happy to help. This garage door opener is recognized and operational only by the Tuya App
Can you provide your device specifications? https://github.com/tuya/tuya-home-assistant/wiki/How-to-Get-the-Log
@tsutsuku Hi! Yes, here you go. The WG-088 is the device which gives error
2021-07-26 09:51:17 INFO (MainThread) [custom_components.tuya_v2] Tuya async setup conf None
2021-07-26 09:51:18 INFO (MainThread) [custom_components.tuya_v2] tuya.__init__.async_setup_entry-->{'o0o0o0': '341e41c164595e97a2208979827404060ef0fa2989146099ccef4dd2b156d715aee32403c1454aae2cbfad7834e97f1e72ad54ff34e1c38904bc7433b4f305b76ce3ec129cb8c7260b072b765c2a627112b4af3c4a4fde86462d41c9f51569f09b902497d374a8c23a4ebf583db5076c4464adc155e9f615bb64790c4aa228b34fdf0e055e892c584a42d1588d71a8682007be285867f9f5a09049ef3865ba1c12e3f8a36a841fdbaac615986d18e10416ef754f185b935500612d90d071dab9547f082f7a9d95880ba1bf0d291fbdeb4899d39cc0cfc88493a367a6b421ed738c692172c038b1ddfb1d00eeecabca6befed070982d598865030efe6ce465ee4d07c7a5094ded859dab72957e4b18e66', '00oo00': 'DkUNWEdHWhsHWF4BTQFFVEMXW1hcSg1MB1BZRhcMQwI=', 'oo00oo': '9ca77c5cb7109e77763550b66823ff37f5c81060c26a6f73e85db0d44af679f6'}
2021-07-26 09:51:18 INFO (MainThread) [custom_components.tuya_v2] tuya.__init__.exist_xor_cache-->True
2021-07-26 09:51:18 DEBUG (SyncWorker_2) [tuya iot] Request: method = POST, url = https://openapi.tuyacn.com/v1.0/iot-01/associated-users/actions/authorized-login, params = None, body = {'username': 'xxxxx.yyyyy@gmail.com', 'password': '82e254faae8f09f63304b0cd984246e2', 'country_code': '36', 'schema': 'tuyaSmart'}, headers = {'client_id': 'wx87a4t5as7nzs26uh5r', 'sign': 'E3A446BB5B095CD22B5C89D3CBA71816A31643E718A53087B570F739D835AB5F', 'sign_method': 'HMAC-SHA256', 'access_token': '', 't': '1627285878033', 'lang': 'en', 'dev_lang': 'python', 'dev_version': '0.4.0', 'dev_channel': 'hass'}
2021-07-26 09:51:19 DEBUG (SyncWorker_2) [tuya iot] Response: {
"result": {
"access_token": "5bb6ab2822eb7ef8c459a8b6838b5755",
"expire_time": 7200,
"platform_url": "https://openapi.tuyacn.com",
"refresh_token": "a6c73de4fb852606e73909a0b8cd9c77",
"uid": "bay1580899911954GQc8"
},
"success": true,
"t": 1627285879186
}
2021-07-26 09:51:19 DEBUG (MainThread) [tuya iot] start
2021-07-26 09:51:19 DEBUG (Thread-4) [tuya iot] Request: method = POST, url = https://openapi.tuyacn.com/v1.0/iot-03/open-hub/access-config, params = None, body = {'uid': 'bay1580899911954GQc8', 'link_id': 'tuya-iot-app-sdk-python.425e3d92-ede6-11eb-98f1-dca632df4de4', 'link_type': 'mqtt', 'topics': 'device', 'msg_encrypted_version': '1.0'}, headers = {'client_id': 'wx87a4t5as7nzs26uh5r', 'sign': 'CD56DF970B7D143DA2C97F0FCA2CDCA754922DF6A44991DF9F6960BD852B78B6', 'sign_method': 'HMAC-SHA256', 'access_token': '5bb6ab2822eb7ef8c459a8b6838b5755', 't': '1627285879413', 'lang': 'en'}
2021-07-26 09:51:19 DEBUG (SyncWorker_20) [tuya iot] Request: method = GET, url = https://openapi.tuyacn.com/v1.0/users/bay1580899911954GQc8/devices, params = None, body = None, headers = {'client_id': 'wx87a4t5as7nzs26uh5r', 'sign': 'D1126D45C164E06AE0E6CC78D280C0CB2673E61499FEAADDEC0CD7D2746E6AE6', 'sign_method': 'HMAC-SHA256', 'access_token': '5bb6ab2822eb7ef8c459a8b6838b5755', 't': '1627285879416', 'lang': 'en'}
2021-07-26 09:51:20 DEBUG (Thread-4) [tuya iot] Response: {
"code": 28841101,
"msg": "No permissions. This API is not subscribed.",
"success": false,
"t": 1627285879674
}
2021-07-26 09:51:20 ERROR (Thread-4) [tuya iot] error while get mqtt config
2021-07-26 09:51:21 DEBUG (SyncWorker_20) [tuya iot] Response: {
"result": [
{
"active_time": 1585072962,
"biz_type": 0,
"category": "ckmkzq",
"create_time": 1577589297,
"icon": "smart/icon/1544602195su4q7rczw_0.png",
"id": "601175472462ab427c47",
"ip": "11.22.33.44",
"lat": "40.4562157",
"local_key": "b88615bdc5ddbdad",
"lon": "15.9388579",
"model": "WG-088",
"name": "Garage Door",
"online": true,
"owner_id": "11282865",
"product_id": "b1uk4ftduaqopxv1",
"product_name": "Garage door opener",
"status": [
{
"code": "switch_1",
"value": false
},
{
"code": "doorcontact_state",
"value": false
}
],
"sub": false,
"time_zone": "+01:00",
"uid": "bay1580899911954GQc8",
"update_time": 1627285706,
"uuid": "601175472462ab427c47"
},
If you need my entire log, I can share it with you via pastebin.
@tsutsuku Thank you. Looking forward to the implementation. Keep up the good work. If you need any support from my side please reach out to me.
Has anyone started working on a garage door driver yet? I was thinking about implementing it but didn't want to double the effort if someone is already working on it.
I am keen to see a driver for garage door opener too.
I submitted PR #323 with a basic implementation of a garage door device driver.
I don't have the device myself but my friend does and this works for him. Feel free to test and let me know how it works for you.
@tsutsuku this appears to be a dupe issue to #231 and #310. Any chance you can merge the issues or close the dupes so we can track in one place? Thanks!
Great, will give this a try latter today. Fingers crossed :-)
Great, will give this a try latter today. Fingers crossed :-)
@godzone Any luck with the new driver?
@mblakleyiii I am novice in Github. How can I try your driver?
@godzone Check v1.5.0.
Yayyyy... Well done and thank you :) Sent from my Galaxy -------- Original message --------From: tsutsuku @.> Date: 11/8/21 7:53 pm (GMT+08:00) To: tuya/tuya-home-assistant @.> Cc: cyberrock @.>, Author @.> Subject: Re: [tuya/tuya-home-assistant] Garage door opener (#215) @godzone Check v1.5.0.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
I have updated to v1.5.0 and the integration added my garage door immediately to Home Assistant. I will test it when I get home.
Thank you all for your support.
I have tested it and it work fine. Thank you again for your hard work and support.
@KixMan28 The status of dor opened or closed are showing and working fine for you?
@FelipeMartini yes, so far.
hey guys, great job so far. My main need is the garage door opener virtual ID: 10743505a4cf12d14250 I am happy to provide more info, I just don't know what else you need
Many regards :)