Skip to content
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

Request support for RGB Chandelier Fan MKCFE002 #1628

Closed
ShiGhost opened this issue Feb 8, 2024 · 12 comments
Closed

Request support for RGB Chandelier Fan MKCFE002 #1628

ShiGhost opened this issue Feb 8, 2024 · 12 comments

Comments

@ShiGhost
Copy link

ShiGhost commented Feb 8, 2024

Log Message

DEBUG (MainThread) [custom_components.tuya_local.device] Windcalm Ceiling Fan with Light received {"119": false, "106": false, "full_poll": false}

Information about DPS mappings

{
  "result": {
    "model": "{\"modelId\":\"ejkgrg\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[
{\"abilityId\":20,\"accessMode\":\"rw\",\"code\":\"switch_led\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_power\",\"attribute\":\"1666\"},\"name\":\"灯开关\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":21,\"accessMode\":\"rw\",\"code\":\"work_mode\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_mode\",\"attribute\":\"1664\"},\"name\":\"灯光模式\",\"typeSpec\":{\"range\":[\"white\",\"colour\",\"scene\",\"music\"],\"type\":\"enum\",\"typeDefaultValue\":\"white\"}},
{\"abilityId\":22,\"accessMode\":\"rw\",\"code\":\"bright_value\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-liangdu1\",\"attribute\":\"1664\"},\"name\":\"灯光亮度\",\"typeSpec\":{\"max\":1000,\"min\":10,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":10}},
{\"abilityId\":23,\"accessMode\":\"rw\",\"code\":\"temp_value\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_half\",\"attribute\":\"1664\"},\"name\":\"灯光色温\",\"typeSpec\":{\"max\":1000,\"min\":0,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0}},
{\"abilityId\":24,\"accessMode\":\"rw\",\"code\":\"colour_data\",\"description\":\"用于调节彩光颜色、亮度、饱和度\",\"extensions\":{\"iconName\":\"icon-yanse\",\"attribute\":\"1664\"},\"name\":\"彩光\",\"typeSpec\":{\"maxlen\":255,\"type\":\"string\",\"typeDefaultValue\":\"\"}},
{\"abilityId\":25,\"accessMode\":\"rw\",\"code\":\"scene_data\",\"description\":\"用于切换、编辑场景\",\"extensions\":{\"iconName\":\"icon-shoucang\",\"attribute\":\"1664\"},\"name\":\"场景\",\"typeSpec\":{\"maxlen\":255,\"type\":\"string\",\"typeDefaultValue\":\"\"}},
{\"abilityId\":28,\"accessMode\":\"wr\",\"code\":\"control_data\",\"description\":\"用于实时下发数据实现实时预览效果\",\"extensions\":{\"iconName\":\"icon-dp_box2\",\"attribute\":\"1664\"},\"name\":\"调节\",\"typeSpec\":{\"maxlen\":255,\"type\":\"string\",\"typeDefaultValue\":\"\"}},
{\"abilityId\":33,\"accessMode\":\"rw\",\"code\":\"power_memory\",\"description\":\"断电之前状态保存\",\"extensions\":{\"iconName\":\"icon-Trigger\",\"attribute\":\"128\"},\"name\":\"断电记忆\",\"typeSpec\":{\"maxlen\":128,\"type\":\"raw\"}},
{\"abilityId\":34,\"accessMode\":\"rw\",\"code\":\"do_not_disturb\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_mode\",\"attribute\":\"128\"},\"name\":\"勿扰模式\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":35,\"accessMode\":\"rw\",\"code\":\"switch_gradient\",\"description\":\"开启和关闭时灯的渐变速度\",\"extensions\":{\"iconName\":\"icon-dp_mode\",\"attribute\":\"128\"},\"name\":\"开关渐变\",\"typeSpec\":{\"maxlen\":128,\"type\":\"raw\"}},
{\"abilityId\":51,\"accessMode\":\"rw\",\"code\":\"mix_rgbcw\",\"description\":\"支持白光彩光混光\",\"extensions\":{\"iconName\":\"icon-deng\",\"attribute\":\"640\"},\"name\":\"混光\",\"typeSpec\":{\"maxlen\":128,\"type\":\"raw\"}},
{\"abilityId\":60,\"accessMode\":\"rw\",\"code\":\"fan_switch\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_power2\",\"attribute\":\"1664\"},\"name\":\"风扇开关\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":61,\"accessMode\":\"rw\",\"code\":\"fan_mode\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-a_mode_fan\",\"attribute\":\"1664\"},\"name\":\"风扇模式\",\"typeSpec\":{\"range\":[\"fresh\",\"nature\"],\"type\":\"enum\",\"typeDefaultValue\":\"fresh\"}},
{\"abilityId\":62,\"accessMode\":\"rw\",\"code\":\"fan_speed\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-FanSpeed\",\"attribute\":\"1664\"},\"name\":\"风速\",\"typeSpec\":{\"max\":100,\"min\":1,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":1}},
{\"abilityId\":63,\"accessMode\":\"rw\",\"code\":\"fan_direction\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_mode\",\"attribute\":\"1664\"},\"name\":\"风向\",\"typeSpec\":{\"range\":[\"forward\",\"reverse\"],\"type\":\"enum\",\"typeDefaultValue\":\"forward\"}},
{\"abilityId\":64,\"accessMode\":\"rw\",\"code\":\"fan_countdown_left\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_time3\",\"attribute\":\"1664\"},\"name\":\"风扇倒计时\",\"typeSpec\":{\"max\":540,\"min\":0,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"min\"}},
{\"abilityId\":103,\"accessMode\":\"rw\",\"code\":\"fan_beep1\",\"description\":\"\",\"name\":\"蜂鸣器\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":106,\"accessMode\":\"rw\",\"code\":\"fan_shake\",\"description\":\"\",\"name\":\"摇风\\t\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":107,\"accessMode\":\"rw\",\"code\":\"white_switch\",\"description\":\"\",\"name\":\"白光开关\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":108,\"accessMode\":\"rw\",\"code\":\"color_switch\",\"description\":\"\",\"name\":\"彩光开关\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":112,\"accessMode\":\"rw\",\"code\":\"countdown1\",\"description\":\"\",\"name\":\"倒计时\",\"typeSpec\":{\"max\":86400,\"min\":0,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"s\"}},
{\"abilityId\":119,\"accessMode\":\"rw\",\"code\":\"main_switch\",\"description\":\"\",\"extensions\":{\"attribute\":\"1\"},\"name\":\"总开关\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":121,\"accessMode\":\"wr\",\"code\":\"music_data1\",\"description\":\"\",\"name\":\"APP音乐律动\",\"typeSpec\":{\"maxlen\":128,\"type\":\"raw\"}}]}]}"
  },
  "success": true,
  "t": 1707376656351,
  "tid": "22b6e73fc65251aea4757bde033158b0"
}

Product ID

lonfamz9k72cpjgq

Information about how the device functions

@ShiGhost ShiGhost added the new device Unsupported device label Feb 8, 2024
@make-all make-all added full_info All info needed was provided and removed full_info All info needed was provided labels Feb 9, 2024
@make-all
Copy link
Owner

make-all commented Feb 9, 2024

As the included log message is not a full poll, it is not indicative of what the integration will see hen configuring the device.

Please find a log message that has the full_poll attribute set to true (there should be one every 30s)

@make-all make-all added the awaiting feedback Needs more information label Feb 9, 2024
@ShiGhost
Copy link
Author

ShiGhost commented Feb 9, 2024

As the included log message is not a full poll, it is not indicative of what the integration will see hen configuring the device.

Please find a log message that has the full_poll attribute set to true (there should be one every 30s)

DEBUG (MainThread) [custom_components.tuya_local.device] Windcalm Ceiling Fan with Light received {"20": false, "21": "white", "22": 400, "23": 1000, "24": "000003E803E8", "25": "080e0d0000000000000000c80000", "34": false, "60": false, "61": "fresh", "62": 50, "63": "forward", "64": 0, "103": true, "106": false, "107": true, "108": false, "119": true, "full_poll": true}

@make-all make-all added full_info All info needed was provided awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release and removed awaiting feedback Needs more information full_info All info needed was provided labels Feb 9, 2024
make-all added a commit that referenced this issue Feb 13, 2024
@ShiGhost
Copy link
Author

Hello. I've tried the settings for this device. And I noticed that when I turn on the white light, the brightness goes to more than 100% if I set the settings to 100% in smart life. Also the color temperature (I understand it should turn on white light) error color_temp (4472) must be between 0 and 1000.
Screenshot_16

@make-all
Copy link
Owner

Did you try to manually copy the config file into the released version?
There has been a change in the way scaling is done for lights and fans since the last release.

@ShiGhost
Copy link
Author

Did you try to manually copy the config file into the released version? There has been a change in the way scaling is done for lights and fans since the last release.

Yes, I only copied the config file, but after what you said I completely deleted and re-downloaded tuya_local, the brightness level became the same as Smart Life, but the color temperature still doesn't work.

make-all added a commit that referenced this issue Feb 13, 2024
Color temp is not automatically scaled, as the target range may be different
for different lights.

Issue #1628
@make-all
Copy link
Owner

It seems I missed the target range for color temperature, sorry.

@make-all
Copy link
Owner

It seems like this light supports mixing white and colour light.
Maybe it will be better to attach the brightness and color_temp to the White light instead of the main one, and the RGB colour setting to the colour light, leaving the main light (Lamp in your screenshot) as just a master switch for the light.

@ShiGhost
Copy link
Author

It seems like this light supports mixing white and colour light. Maybe it will be better to attach the brightness and color_temp to the White light instead of the main one, and the RGB colour setting to the colour light, leaving the main light (Lamp in your screenshot) as just a master switch for the light.

I didn't get you, but the color temperature worked. Is it possible to add oscillate in the settings so that in automation you can turn it on or off.

photo_2024-02-13_18-53-04

@make-all
Copy link
Owner

Oscillate is there already.

@ShiGhost
Copy link
Author

Oscillate is there already.

It is in the Fan settings, but not in the device control via scripts (automation).

@make-all
Copy link
Owner

I'm not sure what exactly you mean by "device control via scripts (automation)", is it a new feature that helps write automations more easily? The fan.oscillate service is documented as a valid service call in Home Assistant, and that can be used to turn oscillation on and off from automations and scripts.

@ShiGhost
Copy link
Author

I'm not sure what exactly you mean by "device control via scripts (automation)", is it a new feature that helps write automations more easily? The fan.oscillate service is documented as a valid service call in Home Assistant, and that can be used to turn oscillation on and off from automations and scripts.

Sorry, I found the oscillation setting. I was looking in the wrong place. In the screenshot where I tried to find this setting, but it was not there. Thanks for adding support for the device.

Screenshot_18

@make-all make-all removed new device Unsupported device awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release labels Feb 18, 2024
timlaing pushed a commit to timlaing/tuya-local that referenced this issue Aug 8, 2024
timlaing pushed a commit to timlaing/tuya-local that referenced this issue Aug 8, 2024
Color temp is not automatically scaled, as the target range may be different
for different lights.

Issue make-all#1628
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants