milo526 / homebridge-tuya-web

Hoobs and Homebridge plugin for Tuya devices using Home Assistant Tuya Web Api
MIT License
217 stars 93 forks source link

displayName Error #587

Closed scaleman114 closed 4 months ago

scaleman114 commented 4 months ago

Describe the bug I have an InfraRed bathroom heater that I seem to be having problems connecting. The error I get is: [TuyaWebPlatform] Cannot read properties of undefined (reading 'displayName')

Steps To Reproduce

Plugin Version 0.4.3

Homebridge Config { "name": "TuyaWebPlatform", "options": { "username": "xxxxxxxx", "password": "xxxxxxxx", "countryCode": "44", "platform": "smart_life" }, "defaults": [ { "id": "bf625ebc5bf3001835kpmc", "displayName": "Bathroom Heater", "device_type": "climate", "min_temper": "0.0", "max_temper": "20.0" } ], "scenes": false, "platform": "TuyaWebPlatform", "_bridge": { "username": "0E:72:F4:08:24:D9", "port": 32508 } }

Device Config

Getting credentials Got credentials { 'access_token': 'EUv051hbb4a4b53eu16939126904750ZDCv2XNXlBLpWf', 'expires_in': 864000, 'refresh_token': 'EUv051h3fd2f6e8eu16939126904750ZDCvVmMYRVyBo0', 'token_type': 'bearer'} Getting devices Got devices { 'header': {'code': 'SUCCESS', 'payloadVersion': 1}, 'payload': { 'devices': [ { 'data': {'online': True, 'state': 'true'}, 'dev_type': 'climate', 'ha_type': 'climate', 'icon': 'https://images.tuyaeu.com/smart/product_icon2/qn_1.png', 'id': 'bf625ebc5bf3001835kpmc', 'name': 'Bathroom Heater'}], 'scenes': []}} !!! NOW REMOVE THIS FILE, SO YOUR CREDENTIALS (username, password) WON'T LEAK !!!

Additional Context

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.