Describe the bug
[22/05/2023, 18:03:11] [homebridge-tuya-platform] This plugin generated a warning from the characteristic
'Brightness': characteristic was supplied illegal value: number -2 exceeded minimum of 0. See https://homebridge.io/w/JtMGR for more info.
[22/05/2023, 18:08:08] [homebridge-tuya-platform] This plugin generated a warning from the characteristic 'Brightness': characteristic was supplied illegal value: number -2 exceeded minimum of 0. See https://homebridge.io/w/JtMGR for more info.
(node:1108) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 state listeners added to [MqttClient]. Use emitter.setMaxListeners() to increase limit
(Use node --trace-warnings ... to show where the warning was created)
Expected behavior
No error.
Screenshots
n/a
Device info (please complete the following information, which can be found in log):request path = /v1.0/iot-01/associated-users/devices
"result":[{"category":"fs","devices":["bf359fe20302a5d3e5x1ml","bf664250ab51deea7bhvp1","bf4032875e6b48da7dm1dg"],"functions":[{"code":"switch","desc":"switch","name":"switch","type":"Boolean","values":"{}"},{"code":"fan_speed_percent","desc":"fan speed percent","name":"fan speed percent","type":"Integer","values":"{\"min\":\"1\",\"max\":\"6\",\"scale\":\"0\",\"step\":\"1\"}"},{"code":"light","desc":"light","name":"light","type":"Boolean","values":"{}"},{"code":"bright_value","desc":"bright value","name":"bright value","type":"Integer","values":"{\"min\":\"0\",\"max\":\"100\",\"scale\":\"0\",\"step\":\"1\"}"}],"product_id":"iarwcyttkv1kvent"}],"success":true,"t":1684772668416,"tid":"1fbf0bf3f8bd11ed9b213e97a7ff9260"} path = /v1.0/devices/functions
Adding: Bedroom Fan (fs / bf359fe20302a5d3e5x1ml)
Existing Accessory found Bedroom Fan bf359fe20302a5d3e5x1ml 9b067065-3f56-4417-b89c-341e776bda19
Adding: Livingroom Fan (fs / bf664250ab51deea7bhvp1)
Existing Accessory found SYB-SYC 2 bf664250ab51deea7bhvp1 a9db7aab-d2df-4e6d-9d49-644c62dbaee2
Adding: Office Fan (fs / bf4032875e6b48da7dm1dg)
Existing Accessory found SYB-SYC 3 bf4032875e6b48da7dm1dg 678a0138-ef34-49d1-a45c-780b0f289f9f
TuyaOpenAPI request: method = post, endpoint = https://openapi.tuyaeu.com, path = /v1.0/iot-03/open-hub/access-config, params = null, body = {"uid":"eu1654758408958hXHEM","link_id":"11c2cd40-f8bd-11ed-a5cc-79e8ddbf458d","link_type":"mqtt","topics":"device","msg_encrypted_version":"1.0"},
Describe the bug [22/05/2023, 18:03:11] [homebridge-tuya-platform] This plugin generated a warning from the characteristic 'Brightness': characteristic was supplied illegal value: number -2 exceeded minimum of 0. See https://homebridge.io/w/JtMGR for more info.
[22/05/2023, 18:08:08] [homebridge-tuya-platform] This plugin generated a warning from the characteristic 'Brightness': characteristic was supplied illegal value: number -2 exceeded minimum of 0. See https://homebridge.io/w/JtMGR for more info. (node:1108) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 state listeners added to [MqttClient]. Use emitter.setMaxListeners() to increase limit (Use
node --trace-warnings ...
to show where the warning was created)Expected behavior No error.
Screenshots n/a
Device info (please complete the following information, which can be found in log): request path = /v1.0/iot-01/associated-users/devices "result":[{"category":"fs","devices":["bf359fe20302a5d3e5x1ml","bf664250ab51deea7bhvp1","bf4032875e6b48da7dm1dg"],"functions":[{"code":"switch","desc":"switch","name":"switch","type":"Boolean","values":"{}"},{"code":"fan_speed_percent","desc":"fan speed percent","name":"fan speed percent","type":"Integer","values":"{\"min\":\"1\",\"max\":\"6\",\"scale\":\"0\",\"step\":\"1\"}"},{"code":"light","desc":"light","name":"light","type":"Boolean","values":"{}"},{"code":"bright_value","desc":"bright value","name":"bright value","type":"Integer","values":"{\"min\":\"0\",\"max\":\"100\",\"scale\":\"0\",\"step\":\"1\"}"}],"product_id":"iarwcyttkv1kvent"}],"success":true,"t":1684772668416,"tid":"1fbf0bf3f8bd11ed9b213e97a7ff9260"} path = /v1.0/devices/functions Adding: Bedroom Fan (fs / bf359fe20302a5d3e5x1ml) Existing Accessory found Bedroom Fan bf359fe20302a5d3e5x1ml 9b067065-3f56-4417-b89c-341e776bda19 Adding: Livingroom Fan (fs / bf664250ab51deea7bhvp1) Existing Accessory found SYB-SYC 2 bf664250ab51deea7bhvp1 a9db7aab-d2df-4e6d-9d49-644c62dbaee2 Adding: Office Fan (fs / bf4032875e6b48da7dm1dg) Existing Accessory found SYB-SYC 3 bf4032875e6b48da7dm1dg 678a0138-ef34-49d1-a45c-780b0f289f9f TuyaOpenAPI request: method = post, endpoint = https://openapi.tuyaeu.com, path = /v1.0/iot-03/open-hub/access-config, params = null, body = {"uid":"eu1654758408958hXHEM","link_id":"11c2cd40-f8bd-11ed-a5cc-79e8ddbf458d","link_type":"mqtt","topics":"device","msg_encrypted_version":"1.0"},