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

Error with the plugin #7

Open
gcorly opened this issue May 21, 2023 · 0 comments
Open

Error with the plugin #7

gcorly opened this issue May 21, 2023 · 0 comments

Comments

@gcorly
Copy link

gcorly commented May 21, 2023

Hello,

I installed this plugin earlier today, everything was running perfectly.
But, since a few hours Homebridge is ill.

in the log I can see this :
[5/21/2023, 11:31:39 PM] SyntaxError: Unexpected number in JSON at position 1
at JSON.parse ()
at LightAccessory.refreshAccessoryServiceIfNeed (/var/lib/homebridge/node_modules/homebridge-tuya-platform-talrhvfork/lib/light_accessory.js:70:103)
at new LightAccessory (/var/lib/homebridge/node_modules/homebridge-tuya-platform-talrhvfork/lib/light_accessory.js:32:10)
at TuyaPlatform.addAccessory (/var/lib/homebridge/node_modules/homebridge-tuya-platform-talrhvfork/index.js:140:27)
at TuyaPlatform.initTuyaSDK (/var/lib/homebridge/node_modules/homebridge-tuya-platform-talrhvfork/index.js:104:12)
at processTicksAndRejections (node:internal/process/task_queues:95:5)

When I disable the plugin, everything is working (but I lost my tuna accessory : a led strip)

I don't understand what happened, I didn't change anything, I can login in Tuya smart app and on https://iot.tuya.com/

My plugin conf is :
{
"options": {
"username": "my_email",
"password": "my_password",
"accessId": "my_access_ID",
"accessKey": "my_access_key",
"lang": "en",
"projectType": "2",
"appSchema": "tuyaSmart",
"countryCode": 33,
"motion": [
{
"overrideTuya": 0
}
],
"debug": false
},
"name": "TuyaPlatform",
"platform": "TuyaPlatform"
}

Could anyone help me to understand what's wrong ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant