iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
402 stars 166 forks source link

This plugin generated a warning from the characteristic 'Rotation Speed': #461

Open ItsHaysus opened 6 months ago

ItsHaysus commented 6 months ago

Checklist

Describe the bug 1/05/2024, 11:01:23] [homebridge-tuya] Discovered Master Bedroom Fan (eb6c561adf3640a5c5fidh) identified as Fan (3.3) [01/05/2024, 11:01:23] [homebridge-tuya] Discovered Living Room Fan (ebac25b682252579b3ajiq) identified as Fan (3.3) [01/05/2024, 11:01:23] [homebridge-tuya] Discovery ended. [01/05/2024, 11:01:23] [homebridge-tuya] Connected to Master Bedroom Fan [01/05/2024, 11:01:23] [homebridge-tuya] Connected to Living Room Fan [01/05/2024, 11:01:23] [homebridge-tuya] Ready to handle Living Room Fan (Fan:3.3) with signature {"1":false,"2":0,"3":"level_1","101":1} [01/05/2024, 11:01:23] [homebridge-tuya] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info. [01/05/2024, 11:01:23] [homebridge-tuya] Ready to handle Master Bedroom Fan (Fan:3.3) with signature {"1":true,"2":0,"3":"level_2","101":1} [01/05/2024, 11:01:23] [homebridge-tuya] This plugin generated a warning from the characteristic 'Rotation Speed': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.

To Reproduce "devices": [ { "type": "Fan", "name": "Living Room Fan", "id": "id", "key": "key", "ip": "ip", "manufacturer": "TREATLIFE", "model": "DS02F_BK", "maxSpeed": 4, "fanDefaultSpeed": 2 }, { "type": "Fan", "name": "Master Bedroom Fan", "id": "id", "key": "key", "ip": "ip", "manufacturer": "TREATLIFE", "model": "DS02F_BK", "maxSpeed": 4, "fanDefaultSpeed": 1 } ]

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

jlg89 commented 6 months ago

The switch itself sends the fan speed as text instead of a number. It's really a bug in the switch firmware, but good luck getting them to fix it.