You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,8 @@ Before you can configure, you must go to the [Tuya IoT Platform](https://iot.tuy
76
76
-`options.endpoint` - **required** : The endpoint URL taken from the [API Reference > Endpoints](https://developer.tuya.com/en/docs/iot/api-request?id=Ka4a8uuo1j4t4#title-1-Endpoints) table.
77
77
-`options.accessId` - **required** : The Access ID obtained from [Tuya IoT Platform > Cloud Develop](https://iot.tuya.com/cloud)
78
78
-`options.accessKey` - **required** : The Access Secret obtained from [Tuya IoT Platform > Cloud Develop](https://iot.tuya.com/cloud)
79
+
-`options.debug` - **optional**: Includes debugging output in the Homebridge log. (Default: `false`)
80
+
-`options.debugLevel` - **optional**: An optional list of strings seperated with comma `,`. `api` represents for HTTP API log, `mqtt` represents for MQTT log, and device ID represents for device log. If blank, all logs are outputed.
79
81
80
82
#### For "Smart Home" Project
81
83
@@ -88,7 +90,9 @@ Before you can configure, you must go to the [Tuya IoT Platform](https://iot.tuy
88
90
-`options.password` - **required** : The app account's password. MD5 salted password is also available for increased security.
89
91
-`options.appSchema` - **required** : The app schema: 'tuyaSmart' for the Tuya Smart App, or 'smartlife' for the Smart Life App.
90
92
-`options.endpoint` - **optional** : The endpoint URL can be inferred from the [API Reference > Endpoints](https://developer.tuya.com/en/docs/iot/api-request?id=Ka4a8uuo1j4t4#title-1-Endpoints) table based on the country code provided. Only manually set this value if you encounter login issues and need to specify the endpoint for your account location.
91
-
-`options.homeWhitelist` - **optional**: An array of integer values for the home IDs you want to whitelist. If provided, only devices with matching Home IDs will be included. You can find the Home ID in the homebridge log.
93
+
-`options.homeWhitelist` - **optional**: An array of integer values for the home IDs you want to whitelist. If provided, only devices with matching Home IDs will be included. You can find the Home ID in the Homebridge log.
94
+
-`options.debug` - **optional**: Includes debugging output in the Homebridge log. (Default: `false`)
95
+
-`options.debugLevel` - **optional**: An optional list of strings seperated with comma `,`. `api` represents for API and MQTT log, device ID represents for specific device log. If blank, all logs are outputed.
92
96
93
97
94
98
#### Advanced options
@@ -160,15 +164,9 @@ After Homebridge has been successfully launched, the device information list wil
160
164
**⚠️Please make sure to remove sensitive information such as `ip`, `lon`, `lat`, `local_key`, and `uid` before submitting the file.**
161
165
162
166
163
-
#### 2. Enable Homebridge Debug Mode
167
+
#### 2. Enable Debug Mode
164
168
165
-
For Homebridge Web UI users:
166
-
- Go to the `Homebridge Setting` page
167
-
- Turn on the `Homebridge Debug Mode -D` switch
168
-
- Restart Homebridge.
169
-
170
-
For Homebridge Command Line Users:
171
-
- Start Homebridge with the `-D` flag: `homebridge -D`
169
+
Add debug option in the plugin config, then restart Homebridge.
Copy file name to clipboardExpand all lines: config.schema.json
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -268,6 +268,16 @@
268
268
}
269
269
}
270
270
}
271
+
},
272
+
"debug": {
273
+
"title": "Enable Debug Logging",
274
+
"type": "boolean",
275
+
"default": false
276
+
},
277
+
"debugLevel": {
278
+
"title": "Debug Level",
279
+
"description": "An optional list of strings seperated with comma `,`. `api` represents for API and MQTT log, device ID represents for specific device log. If blank, all logs are outputed.",
0 commit comments