I am trying this device which connects perfectly fine with Tuya and was easily discovered in OH.
Problem is, the Thing added now reports:
HANDLER_INITIALIZING_ERROR
A unit hint must not be set if the item type is not a number with dimension!
I’ve even tried to add it manually, by adding a Generic Tuya device and inserting all necessary data, but unfortunately it gives me the exact message.
Any suggestion on how I can “override” this somehow?
While using the Tuya IoT Platform, I can see for this device this information regarding the Standard Status Set:
temp_current Integer
{
"unit": "℃",
"min": -550,
"max": 1250,
"scale": 1,
"step": 1
}
humidity_value Integer
{
"unit": "%",
"min": 0,
"max": 1000,
"scale": 1,
"step": 1
}
battery_state Enum
{
"range": [
"low",
"middle",
"high"
]
}
charge_state Boolean
"{true,false}"
temp_unit_convert Enum
{
"range": [
"c",
"f"
]
}
maxtemp_set Integer
{
"unit": "℃",
"min": -550,
"max": 1250,
"scale": 1,
"step": 1
}
minitemp_set Integer
{
"unit": "℃",
"min": -550,
"max": 1250,
"scale": 1,
"step": 1
}
maxhum_set Integer
{
"unit": "%",
"min": 0,
"max": 1000,
"scale": 1,
"step": 1
}
minihum_set Integer
{
"unit": "%",
"min": 0,
"max": 1000,
"scale": 1,
"step": 1
}
temp_alarm Enum
{
"range": [
"loweralarm",
"upperalarm",
"cancel"
]
}
hum_alarm Enum
{
"range": [
"loweralarm",
"upperalarm",
"cancel"
]
}
bright_value Integer
{
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
temp_periodic_report Integer
{
"unit": "秒",
"min": 30,
"max": 3600,
"scale": 0,
"step": 1
}
switch Boolean
"{true,false}"
temp_calibration Integer
{
"unit": "℃",
"min": -30,
"max": 30,
"scale": 1,
"step": 1
}
hum_calibration Integer
{
"unit": "%",
"min": -200,
"max": 200,
"scale": 1,
"step": 1
}
alarm_time Integer
{
"unit": "秒",
"min": 1,
"max": 3600,
"scale": 0,
"step": 1
}
beep Boolean
"{true,false}"
I can also see the Standard Instruction Set:
temp_unit_convert Enum
{
"range": [
"c",
"f"
]
}
maxtemp_set Integer
{
"unit": "℃",
"min": -550,
"max": 1250,
"scale": 1,
"step": 1
}
minitemp_set Integer
{
"unit": "℃",
"min": -550,
"max": 1250,
"scale": 1,
"step": 1
}
maxhum_set Integer
{
"unit": "%",
"min": 0,
"max": 1000,
"scale": 1,
"step": 1
}
minihum_set Integer
{
"unit": "%",
"min": 0,
"max": 1000,
"scale": 1,
"step": 1
}
temp_periodic_report Integer
{
"unit": "秒",
"min": 30,
"max": 3600,
"scale": 0,
"step": 1
}
switch Boolean
"{true,false}"
temp_calibration Integer
{
"unit": "℃",
"min": -30,
"max": 30,
"scale": 1,
"step": 1
}
hum_calibration Integer
{
"unit": "%",
"min": -200,
"max": 200,
"scale": 1,
"step": 1
}
alarm_time Integer
{
"unit": "秒",
"min": 1,
"max": 3600,
"scale": 0,
"step": 1
}
beep Boolean
"{true,false}"
In the JSON editor, I have these options:
[
{
"code": "temp_unit_convert",
"value": "c"
},
{
"code": "maxtemp_set",
"value": 1250
},
{
"code": "minitemp_set",
"value": -400
},
{
"code": "maxhum_set",
"value": 1000
},
{
"code": "minihum_set",
"value": 0
},
{
"code": "temp_periodic_report",
"value": 60
},
{
"code": "switch",
"value": true
},
{
"code": "temp_calibration",
"value": 0
},
{
"code": "hum_calibration",
"value": 0
},
{
"code": "alarm_time",
"value": 15
},
{
"code": "beep",
"value": true
}
]
Product name appears like so: (停产)WIFI温湿度报警器
If any other information might be needed in order to fix the binding, please let me know so I can pass that and make it work properly.
Thank you very much!