-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[New device request] Ledkia fan with light controller #234
Comments
My bad, I had the log set to ERROR. |
This has a light type switch according to the docs at iot.tuya.com, though the value is not showing in the sample data captured by the log. Since the colour temperature and color options only make sense for LED lights, this is used to restrict those settings to only when LED lights are configured. But if that value is never returned, then it will always only work as a dimmer. In any case, we cannot know the capabilities of the LED bulb fitted - some are not even dimmable. Issue #234
I added a config file for this, but as a lot of the documented values are not being returned in the log, it is difficult to know whether the config is correct. In particular, I have had to guess at the format for color_data (I guessed it will be the same as another supported bulb that uses the same dps indexes and ranges for colour_temp and brightness). |
Missed to add the new config file in previous commit. Issue #234
the lamp is a dimmable white light LED and it is possible to change only the color temperature in three preset values that change the value of COLOR_TEMP which in this case is TEMP_VALUE (DP23) in 0 -> 500 -> 1000 (warm white, white light, cold white). There is a timer, COUNTDOWN_LEFT_FAN that accepts values from 0 to 540. |
It seems that the iot.tuya.com documentation is misleading. - colour_mode is always white, never any of the other values. - bulb type is LED, not changeable. - color/scene/music are therefore never available. Issue #234
Almost perfect. the fan works perfectly. |
I removed one condition I'd put on the color temp that might have been causing two dps to be set at once. If the behaviour persists please file a new bug with a full description of what appears to be going wrong. |
Hi, I have tried to integrate this device with no success. No information about the device DP appears in the log. The DP returned by the explorer API seem to be totally different from the standard ones. Any way to integrate it into this component? Any help would be greatly appreciated!
The DP of the API explorer are as follows
{ "result": { "category": "fsd", "functions": [ { "code": "switch_led", "dp_id": 20, "type": "Boolean", "values": "{}" }, { "code": "work_mode", "dp_id": 21, "type": "Enum", "values": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}" }, { "code": "bright_value", "dp_id": 22, "type": "Integer", "values": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}" }, { "code": "temp_value", "dp_id": 23, "type": "Integer", "values": "{\"min\":0,\"max\":1000,\"scale\":0,\"step\":1}" }, { "code": "colour_data", "dp_id": 24, "type": "Json", "values": "{}" }, { "code": "scene_data", "dp_id": 25, "type": "String", "values": "{\"maxlen\":255}" }, { "code": "control_data", "dp_id": 28, "type": "String", "values": "{\"maxlen\":255}" }, { "code": "brightness_min_1", "dp_id": 58, "type": "Integer", "values": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}" }, { "code": "led_type_1", "dp_id": 59, "type": "Enum", "values": "{\"range\":[\"led\",\"incandescent\",\"halogen\"]}" }, { "code": "fan_switch", "dp_id": 60, "type": "Boolean", "values": "{}" }, { "code": "fan_speed", "dp_id": 62, "type": "Integer", "values": "{\"unit\":\"\",\"min\":1,\"max\":6,\"scale\":0,\"step\":1}" }, { "code": "fan_direction", "dp_id": 63, "type": "Enum", "values": "{\"range\":[\"forward\",\"reverse\"]}" }, { "code": "countdown_left_fan", "dp_id": 64, "type": "Integer", "values": "{\"unit\":\"min\",\"min\":0,\"max\":540,\"scale\":0,\"step\":1}" } ], "status": [ { "code": "switch_led", "dp_id": 20, "type": "Boolean", "values": "{}" }, { "code": "work_mode", "dp_id": 21, "type": "Enum", "values": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}" }, { "code": "bright_value", "dp_id": 22, "type": "Integer", "values": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}" }, { "code": "temp_value", "dp_id": 23, "type": "Integer", "values": "{\"min\":0,\"max\":1000,\"scale\":0,\"step\":1}" }, { "code": "colour_data", "dp_id": 24, "type": "Json", "values": "{}" }, { "code": "scene_data", "dp_id": 25, "type": "String", "values": "{\"maxlen\":255}" }, { "code": "brightness_min_1", "dp_id": 58, "type": "Integer", "values": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}" }, { "code": "led_type_1", "dp_id": 59, "type": "Enum", "values": "{\"range\":[\"led\",\"incandescent\",\"halogen\"]}" }, { "code": "fan_switch", "dp_id": 60, "type": "Boolean", "values": "{}" }, { "code": "fan_speed", "dp_id": 62, "type": "Integer", "values": "{\"unit\":\"\",\"min\":1,\"max\":6,\"scale\":0,\"step\":1}" }, { "code": "fan_direction", "dp_id": 63, "type": "Enum", "values": "{\"range\":[\"forward\",\"reverse\"]}" }, { "code": "countdown_left_fan", "dp_id": 64, "type": "Integer", "values": "{\"unit\":\"min\",\"min\":0,\"max\":540,\"scale\":0,\"step\":1}" } ] }, "success": true,
The text was updated successfully, but these errors were encountered: