core: Tuya *De*humidifier (unsupported)
The problem
Dehumidifier (unsupported). Tuya based de-humidifier showing up as device but not showing any identity with the only notification Dehumidifier (unsupported). Used to and still works fine (creates entities) when Tuya V2 is installed via HACS.
Other devices show up right in Tuya (Smart plugs).
What version of Home Assistant Core has the issue?
core-2021.11.0b2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Tuya
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tuya
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2021-10-31 15:19:26 ERROR (MainThread) [homeassistant.components.humidifier] Error while setting up tuya platform for humidifier
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/tuya/humidifier.py", line 73, in async_setup_entry
async_discover_device([*hass_data.device_manager.device_map])
File "/usr/src/homeassistant/homeassistant/components/tuya/humidifier.py", line 69, in async_discover_device
TuyaHumidifierEntity(device, hass_data.device_manager, description)
File "/usr/src/homeassistant/homeassistant/components/tuya/humidifier.py", line 115, in __init__
self._attr_min_humidity = int(type_data.min_scaled)
File "/usr/src/homeassistant/homeassistant/components/tuya/base.py", line 38, in min_scaled
return self.scale_value(self.min)
File "/usr/src/homeassistant/homeassistant/components/tuya/base.py", line 47, in scale_value
return value * 1.0 / (10 ** self.scale)
TypeError: can't multiply sequence by non-int of type 'float'
Additional information
Device name: “Eeese Carl 24L” de-humidifier. Connected with smartlife app.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 15 (4 by maintainers)
I am in the same situation with the : Product Name D23 CLASSY Product Category cs Home Assistant version: 2021.11.0
It appears as (unsupported) in Tuya. With previously used Tuya v2 it worked on a basic level ( I could see the device as humidifier/dehumidifier). Also I can’t access the debug info (An unexpected error has occurred.), but this is what the API call gave me : THE INSTRUCTIONS SET:
THE SPECIFICATIONS AND PROPERTIES
I don’t know which of these helps, so I called both ( via api). In the meantime I will revert my HA to work with Tuya v2 .
I am told by Tuya that this has been fixed as of today. Here is the proper data from the device debugging info:
Code | Type | Values dehumidify_set_value | Integer | { “unit”: “%”, “min”: 25, “max”: 80, “scale”: 0, “step”: 5 } switch | Boolean | “{true,false}” humidity_indoor | Integer | { “unit”: “%”, “min”: 0, “max”: 100, “scale”: 0, “step”: 1 }
Which is similar to what was provided above. @jockeb76 as I mention it should be fixed now, but I expect your model to be the same integration requirement as mine.
Hi, I contacted tuya, They gave me a method to obtain debug data via API while the issue is fixed on the platform. So here is:
{ "result": { "active_time": 1621614655, "biz_type": 18, "category": "cs", "create_time": 1610450879, "icon": "smart/icon/ay15404438611511JNJx/2737ff764087249ee37983dfa0c09c71.jpg", "id": "bf3122e089e7723e2canec", "ip": "XXX.XXX.XXX.XXX", "lat": "XXX", "local_key": "XXX", "lon": "XXX", "model": "", "name": "Dehumidifier", "online": true, "owner_id": "XXX", "product_id": "qiqgsvtajr0wagpw", "product_name": "Dehumidifier", "status": [ { "code": "switch", "value": false }, { "code": "dehumidify_set_value", "value": 45 }, { "code": "humidity_indoor", "value": 47 } ], "sub": false, "time_zone": "+02:00", "uid": "XXX", "update_time": 1635525179, "uuid": "XXX" }, "success": true, "t": 1635926209525 }Not that I am aware of, maybe contact Tuya support in the developers page?