tuya / tuya-homebridge

Homebridge custom plugin for controlling Powered by Tuya (PBT) devices in HomeKit. This plugin is officially maintained by the Tuya Developer Team.
MIT License
332 stars 168 forks source link

Hama Wifi Door/Window contact does not appear in Homebrige #374

Closed KonstiR closed 2 months ago

KonstiR commented 7 months ago

Describe the bug Hama Wifi Door/Window contact does not appear in Homebridge. I'm not sure if I did something wrong with the config, but do not find additional information about the matter.

Below is the log and my config.

Login request: TuyaOpenAPI response: {"result":{"access_token":"1230191a8f8eee61ef3e59b31ecafbdb","expire_time":7200,"platform_url":"https://openapi.tuyaeu.com","refresh_token":"e24114012ea20830f0d71c4b21ac0aca","uid":"eu16872725891055ehuV"},"success":true,"t":1701442511842,"tid":"a0b14bf2905911eeb2eb7a87ec460564"} path = /v1.0/iot-01/associated-users/actions/authorized-login TuyaOpenAPI request: method = get, endpoint = https://openapi.tuyaeu.com, path = /v1.0/iot-01/associated-users/devices, params = {"size":100}, body = null, headers = {"t":"1701442511853","client_id":"ye77agv47ukhamhd4s9m","nonce":"a081e321-9059-11ee-b353-9b802c1527c6","Signature-Headers":"client_id","sign":"99E7F521267858A3F673BA5457DE1B17E259DC06B172A3C3FD4D2D06DAE65DA5","sign_method":"HMAC-SHA256","access_token":"1230191a8f8eee61ef3e59b31ecafbdb","lang":"en","dev_lang":"javascript","dev_channel":"homebridge","devVersion":"1.5.0"} TuyaOpenAPI response: {"result":{"devices":[{"active_time":1692255034,"biz_type":0,"category":"cz","create_time":1691076314,"icon":"smart/icon/ay1531739836474naEnL/2e5427df8a2ff9aff3615cebbdc62ca3.png","id":"011858148cce4e18b996","ip":"93.104.138.232","lat":"48.1600","local_key":"4cVXc<>VwkTlM2Um","lon":"11.5300","model":"","name":"Nachttischlampe ","online":true,"owner_id":"158905895","product_id":"mp3kv0ozvagrezwu","product_name":"176573","status":[{"code":"switch_1","value":false},{"code":"countdown_1","value":0}],"sub":false,"time_zone":"+01:00","uid":"eu16872725891055ehuV","update_time":1701439798,"uuid":"011858148cce4e18b996"},{"active_time":1692254856,"biz_type":0,"category":"cz","create_time":1691076453,"icon":"smart/icon/ay1531739836474naEnL/2e5427df8a2ff9aff3615cebbdc62ca3.png","id":"011858148cce4e18b287","ip":"93.104.138.232","lat":"48.1600","local_key":"v1j_jCRkmr8HL&aI","lon":"11.5300","model":"","name":"Badezimmer","online":true,"owner_id":"158905895","product_id":"mp3kv0ozvagrezwu","product_name":"176573","status":[{"code":"switch_1","value":false},{"code":"countdown_1","value":0}],"sub":false,"time_zone":"+01:00","uid":"eu16872725891055ehuV","update_time":1701439795,"uuid":"011858148cce4e18b287"},{"active_time":1692254975,"biz_type":0,"category":"cz","create_time":1675437033,"icon":"smart/icon/ay1531739836474naEnL/2e5427df8a2ff9aff3615cebbdc62ca3.png","id":"0118581470039f34f942","ip":"93.104.138.232","lat":"48.1600","local_key":"$P&Wgn;#f2/Bz?Z*","lon":"11.5300","model":"","name":"Schreibtischlampe","online":true,"owner_id":"158905895","product_id":"mp3kv0ozvagrezwu","product_name":"176573","status":[{"code":"switch_1","value":false},{"code":"countdown_1","value":0}],"sub":false,"time_zone":"+01:00","uid":"eu16872725891055ehuV","update_time":1701433870,"uuid":"0118581470039f34f942"},{"active_time":1700778750,"biz_type":0,"category":"qt","create_time":1700778750,"icon":"smart/icon/ay1531739836474naEnL/15650922466b025ff0444.png","id":"01007300308398915ad2","ip":"93.104.135.230","lat":"","local_key":"$SD;'T6{JNVdc2<-","lon":"","model":"176553","name":"Badezimmerfenster","online":false,"owner_id":"158905895","product_id":"tg43aAXlWMBBqL3T","product_name":"176553","status":[{"code":"switch","value":false},{"code":"TamperedAlarm","value":false},{"code":"Battery","value":100},{"code":"state","value":false}],"sub":false,"time_zone":"+01:00","uid":"eu16872725891055ehuV","update_time":1701425641,"uuid":"01007300308398915ad2"}],"hsa_more":false,"last_row_key":"EF5B53CDCF439A2BE879E26E54FF4FE0","total":4},"success":true,"t":1701442511948,"tid":"a0c6be0d905911ee805782e0b6121b90"} path = /v1.0/iot-01/associated-users/devices TuyaOpenAPI request: method = get, endpoint = https://openapi.tuyaeu.com, path = /v1.0/devices/functions, params = {"device_ids":"011858148cce4e18b996,011858148cce4e18b287,0118581470039f34f942,01007300308398915ad2"}, body = null, headers = {"t":"1701442511957","client_id":"ye77agv47ukhamhd4s9m","nonce":"a081e321-9059-11ee-b353-9b802c1527c6","Signature-Headers":"client_id","sign":"7AA5582274D7ABA16A4B631DEEFB80FF41ED19F6A27300BB4ED40DADD757DFDF","sign_method":"HMAC-SHA256","access_token":"1230191a8f8eee61ef3e59b31ecafbdb","lang":"en","dev_lang":"javascript","dev_channel":"homebridge","devVersion":"1.5.0"} TuyaOpenAPI response: {"result":[{"category":"cz","devices":["011858148cce4e18b996","011858148cce4e18b287","0118581470039f34f942"],"functions":[{"code":"switch_1","desc":"switch 1","name":"switch 1","type":"Boolean","values":"{}"},{"code":"countdown_1","desc":"countdown 1","name":"countdown 1","type":"Integer","values":"{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"}],"product_id":"mp3kv0ozvagrezwu"}],"success":true,"t":1701442512051,"tid":"a0d6ac8a905911eeb675fa6037e836b7"} path = /v1.0/devices/functions Adding: Nachttischlampe (cz / 011858148cce4e18b996) Existing Accessory found Nachttischlampe 011858148cce4e18b996 1ec828df-1ac0-4a96-91b9-1a02b65fe8cb Adding: Badezimmer (cz / 011858148cce4e18b287) Existing Accessory found Badezimmer 011858148cce4e18b287 3d0d3a07-31a4-43b7-a6a0-ef9b71ea0393 Adding: Schreibtischlampe (cz / 0118581470039f34f942) Existing Accessory found Schreibtischlampe 0118581470039f34f942 217d9c7a-8094-41e0-ae1e-8c0aae59692e Adding: Badezimmerfenster (qt / 01007300308398915ad2) TuyaOpenAPI request: method = post, endpoint = https://openapi.tuyaeu.com, path = /v1.0/iot-03/open-hub/access-config, params = null, body = {"uid":"eu16872725891055ehuV","link_id":"a089d260-9059-11ee-b353-9b802c1527c6","link_type":"mqtt","topics":"device","msg_encrypted_version":"1.0"}, headers = {"t":"1701442512062","client_id":"ye77agv47ukhamhd4s9m","nonce":"a081e321-9059-11ee-b353-9b802c1527c6","Signature-Headers":"client_id","sign":"CA83BB77527FEFF9CEFEA430A63D83C5E5E33FA8519521BB3569E3FF5269CB58","sign_method":"HMAC-SHA256","access_token":"1230191a8f8eee61ef3e59b31ecafbdb","lang":"en","dev_lang":"javascript","dev_channel":"homebridge","devVersion":"1.5.0"} TuyaOpenAPI response: {"code":28841002,"msg":"No permissions. Your subscription to cloud development plan has expired.","success":false,"t":1701442512138,"tid":"a0e8cef5905911ee86abc62998796177"} path = /v1.0/iot-03/open-hub/access-config config-7.json

github-actions[bot] commented 7 months ago

Thank you for your feedback, we will solve this issue soon

github-actions[bot] commented 5 months ago

Stale issue. we will close the issue soon. If this issue has not been resolved, please update the issue and contact us in time.

KonstiR commented 5 months ago

Are there any updates on the matter? The issue still is present.

github-actions[bot] commented 3 months ago

Stale issue. we will close the issue soon. If this issue has not been resolved, please update the issue and contact us in time.