Hey there, appreciate your good work on this project. I'm having difficulty with it using some Fan controller devices. The Tuya device finds 4 devices (correct number) but only successfully creates 2 component devices, seemingly crashing while creating the first of the Fan devices:
dev:6752022-02-21 12:01:07.965 am errorgroovy.json.JsonException: expecting a ',' or a ']', but got ............................^ on line 1687 (method tuyaGetDeviceSpecificationsResponse) {"range":["cancel","1h","2h""4h","8h"]} index number 28 line number 1 the current character of '"' with an int value of 34 on array index of 3 expecting a ',' or a ']', but got The current character read is '"' with an int value of 34 the current character of '"' with an int value of 34 on array index of 3
Now at first I thought that potentially there was some dodgy json being passed by tuya (dropping the , between "2h","4h" above. And that seems to be confirmed by the debug logging i inserted into the driver. Now my problem is figuring out how to fix it.
[
category: fsd,
functions: [
[
code: fan_countdown_set,
type: Enum,
values: {
"range": [
"cancel",
"1h",
"2h""4h",
"8h"
]
}
],
[
code: fan_mode,
type: Enum,
values: {
"range": [
"nature",
"sleep"
]
}
],
[
code: temp_value,
type: Integer,
values: {
"unit": "",
"min": 0,
"max": 100,
"scale": 0,
"step": 2
}
],
[
code: bright_value,
type: Integer,
values: {
"unit": "",
"min": 0,
"max": 100,
"scale": 0,
"step": 2
}
],
[
code: switch_led,
type: Boolean,
values: {
}
],
[
code: fan_direction,
type: Enum,
values: {
"range": [
"forward",
"reverse"
]
}
],
[
code: fan_switch,
type: Boolean,
values: {
}
]
],
status: [
[
code: fan_switch,
type: Boolean,
values: {
}
],
[
code: fan_direction,
type: Enum,
values: {
"range": [
"forward",
"reverse"
]
}
],
[
code: switch_led,
type: Boolean,
values: {
}
],
[
code: bright_value,
type: Integer,
values: {
"unit": "",
"min": 0,
"max": 100,
"scale": 0,
"step": 2
}
],
[
code: temp_value,
type: Integer,
values: {
"unit": "",
"min": 0,
"max": 100,
"scale": 0,
"step": 2
}
],
[
code: fan_mode,
type: Enum,
values: {
"range": [
"sleep",
"nature"
]
}
],
[
code: fan_countdown_set,
type: Enum,
values: {
"range": [
"cancel",
"1h",
"2h",
"4h",
"8h"
]
}
]
]
]
Any thoughts? Happy to supply whatever info is needed to help the process?