iRayanKhan/homebridge-tuya

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

Opened this issue · 1 comments

Checklist

  • I have read the common issues wiki page
  • I have checked to make sure the plugin is up to date

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):

  • OS:
  • iOS version:
  • Homehubs:
  • Node Version:
  • Plugin Version:
  • Accessory Type

Additional context
Add any other context about the problem here.

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.