make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.4k stars 537 forks source link

Request support for ASAHOM Permanent Outdoor Lights #2250

Closed dave-parsons closed 2 months ago

dave-parsons commented 2 months ago

Log message

2024-08-25 17:48:15.564 WARNING (SyncWorker_24) [custom_components.localtuya.sensor] [eba...dfi] Entity sensor.music_codes is requesting unknown DPS index 108
2024-08-25 17:48:15.564 WARNING (SyncWorker_24) [custom_components.localtuya.sensor] [eba...dfi] Entity sensor.effects_and_color_value is requesting unknown DPS index 101
2024-08-25 17:48:15.566 WARNING (SyncWorker_36) [custom_components.localtuya.sensor] [eba...dfi] Entity sensor.value103 is requesting unknown DPS index 103
2024-08-25 17:48:15.566 WARNING (SyncWorker_38) [custom_components.localtuya.light] [eba...dfi] Entity light.outdoor_kitchen_holiday_lights_2 is requesting unknown DPS index 101
2024-08-25 17:48:15.567 WARNING (SyncWorker_38) [custom_components.localtuya.switch] [eba...dfi] Entity switch.value118 is requesting unknown DPS index 118
2024-08-25 21:56:12.584 WARNING (SyncWorker_9) [custom_components.localtuya.sensor] [eba...dfi] Entity sensor.value117 is requesting unknown DPS index 117

DPS information

{
  "result": {
    "model": "{\"modelId\":\"frolws\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[{\"abilityId\":20,\"accessMode\":\"rw\",\"code\":\"switch_led\",\"description\":\"开:ture\\n关:false\",\"extensions\":{\"iconName\":\"icon-dp_power\",\"attribute\":\"643\"},\"name\":\"开关\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":21,\"accessMode\":\"rw\",\"code\":\"work_mode\",\"description\":\"切换到color、animation、music时,设备执行上一次该模式下的灯光状态,timer不响应\",\"extensions\":{\"iconName\":\"icon-dp_mode\",\"attribute\":\"640\"},\"name\":\"模式\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"color\",\"animation\",\"music\",\"timer\"]}},{\"abilityId\":22,\"accessMode\":\"rw\",\"code\":\"bright_value\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-liangdu1\",\"attribute\":\"4\"},\"name\":\"亮度值\",\"typeSpec\":{\"type\":\"value\",\"max\":1000,\"min\":10,\"scale\":0,\"step\":1,\"unit\":\"\"}},{\"abilityId\":23,\"accessMode\":\"rw\",\"code\":\"temp_value\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-lengnuan\"},\"name\":\"冷暖值\",\"typeSpec\":{\"type\":\"value\",\"max\":1000,\"min\":0,\"scale\":0,\"step\":1}},{\"abilityId\":24,\"accessMode\":\"rw\",\"code\":\"colour_data\",\"description\":\"类型:字符;\\nValue: 000011112222;\\n0000:H(色度:0-360,0X0000-0X0168);\\n1111:S (饱和:0-1000, 0X0000-0X03E8);\\n2222:V (明度:0-1000,0X0000-0X03E8)\",\"extensions\":{\"iconName\":\"icon-yanse\",\"attribute\":\"512\"},\"name\":\"彩光\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":26,\"accessMode\":\"rw\",\"code\":\"countdown\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-dp_time2\",\"attribute\":\"640\"},\"name\":\"倒计时\",\"typeSpec\":{\"type\":\"value\",\"max\":86400,\"min\":0,\"scale\":0,\"step\":1,\"unit\":\"s\"}},{\"abilityId\":27,\"accessMode\":\"wr\",\"code\":\"music_data\",\"description\":\"类型:字符串;\\nValue: 011112222333344445555;\\n0:   变化方式,0表示直接输出,1表示渐变;\\n1111:H(色度:0-360,0X0000-0X0168);\\n2222:S (饱和:0-1000, 0X0000-0X03E8);\\n3333:V (明度:0-1000,0X0000-0X03E8);\\n4444:白光亮度(0-1000);\\n5555:色温值(0-1000)\",\"extensions\":{\"iconName\":\"icon-dp_mic\",\"attribute\":\"640\"},\"name\":\"手机音乐律动\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":101,\"accessMode\":\"rw\",\"code\":\"color_addressable\",\"description\":\"01233456\\n0:效果\\n1:速度\\n2:V 明度/亮度:0-100,0X00-0X64)\\n33:H(色度:0-360,0X0000-0X0168)\\n4:S (饱和:0-100, 0X00-0X64)\\n5:T (色温:0-100, 0X00-0X64)\\n6:灯的编号,循环体\",\"name\":\"颜色调节\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":102,\"accessMode\":\"rw\",\"code\":\"color_fav\",\"description\":\"01\\n0:0x01保存当前颜色,0x02执行当前颜色,0x03删除编号对应的颜色\\n1:0x00-0xff,颜色保存编号,不重复\",\"name\":\"保存颜色\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":103,\"accessMode\":\"rw\",\"code\":\"animation_preset\",\"description\":\"0:0x00-0xff,预设动画编号\\n\",\"name\":\"预设动画\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":104,\"accessMode\":\"rw\",\"code\":\"animation_diy\",\"description\":\"01234566789AABC\\n0:0x01保存DIY,0x02执行DIY,0x03删除DIY\\n1:0x00-0xff,DIY编号\\n2:0x00-0x0d,动态效果\\n3:0x00-0xff,速度\\n4:0x00正向,0x01反向\\n5:0x00全段,0x01分段\\n66:背景颜色色相H(0x0000-0x0168,0-360)\\n7:背景颜色饱和度S(0x00-0x64,0-100)\\n8:背景颜色色温T(0x00-0x64,0-100)\\n9:亮度/明度V(0x00-0x64,0-100)\\nAA:色相H(0x0000-0x0168,0-360)\\nB:饱和度S(0x00-0x64,0-100)\\nC:(0x00-0x64,0-100)\\nAABC为循环体,最多可选8种颜色\",\"name\":\"diy功能\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":105,\"accessMode\":\"rw\",\"code\":\"light_refresh\",\"description\":\"刷新:ture\",\"name\":\"灯数刷新\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":106,\"accessMode\":\"rw\",\"code\":\"light_number\",\"description\":\"\",\"name\":\"灯总数\",\"typeSpec\":{\"type\":\"value\",\"max\":1000,\"min\":1,\"scale\":1,\"step\":1,\"unit\":\"个\"}},{\"abilityId\":107,\"accessMode\":\"rw\",\"code\":\"animation_folder\",\"description\":\"0123444 \\n0:0x01保存DIY,0x02执行DIY,0x03删除DIY\\n1:Folder编号\\n2:0x00选择preset;0x01选择diy\\n3:0x00-0xff preset/diy编号\\n444:0x000000-0x015180,0-86400,选择时间,单位s\\n23444为循环体,根据用户所选顺序进行下发,最多10个\",\"name\":\"文件夹\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":108,\"accessMode\":\"rw\",\"code\":\"music_devicedata\",\"description\":\"0123345\\n0:本地音乐律动类型\\n1:灵敏度调节,0-100\\n2:亮度/明度V 0-100\\n33:色相H 0-360\\n4:饱和度S 0-100\\n5:色温T 0-100\\n3345为循环体,最多可选8个颜色\",\"name\":\"设备音乐律动\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":109,\"accessMode\":\"rw\",\"code\":\"button_setting\",\"description\":\"01XX\\n0:0x00按键A;0x01按键B\\n1:0x00切换颜色;0x01切换色温;0x02切换亮度;0x03切换动画;0x04随机颜色;0x05随机动画\\n0x00切换颜色:\\nABBCD\\nA:亮度/明度V 0-100\\nBB:色相H 0-360\\nC:饱和度S 0-100\\nD:色温T 0-100\\nBBCD为循环体,最多可选7种颜色\\n0x03切换动画:\\nAB\\nA:0x00选择preset;0x01选择diy\\nB:preset/diy对应编号\\nAB为循环体,最多8种\",\"name\":\"按键配置\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":110,\"accessMode\":\"rw\",\"code\":\"splitter_setting\",\"description\":\"01\\n0:0x00-0xff,out1灯数\\n1:0x00-0xff,out2灯数\",\"name\":\"Y型分路器配置\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":111,\"accessMode\":\"rw\",\"code\":\"color_brightness\",\"description\":\"\",\"extensions\":{\"iconName\":\"icon-Light\"},\"name\":\"颜色统一亮度\",\"typeSpec\":{\"type\":\"value\",\"max\":1000,\"min\":10,\"scale\":0,\"step\":1,\"unit\":\"\"}},{\"abilityId\":112,\"accessMode\":\"rw\",\"code\":\"switch_indicator\",\"description\":\"\",\"name\":\"指示灯使能开关\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":113,\"accessMode\":\"rw\",\"code\":\"switch_memory\",\"description\":\"\",\"name\":\"断电记忆开关\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":114,\"accessMode\":\"rw\",\"code\":\"pairing_remote\",\"description\":\"App下发配对指令给设备,设备收到后,开启遥控器配对状态,配网窗口期为5min,设备完成遥控器配对或者配对超时后,关闭配对开关\\n\",\"name\":\"遥控器配对\",\"typeSpec\":{\"type\":\"bool\"}},{\"abilityId\":115,\"accessMode\":\"rw\",\"code\":\"device_remote\",\"description\":\"0111111\\n0:0x00已配对 0x01删除遥控器\\n111111:遥控器Mac地址\",\"name\":\"遥控器信息\",\"typeSpec\":{\"type\":\"string\",\"maxlen\":255}},{\"abilityId\":116,\"accessMode\":\"rw\",\"code\":\"color_sync\",\"description\":\"\",\"name\":\"颜色同步\",\"typeSpec\":{\"type\":\"raw\",\"maxlen\":128}},{\"abilityId\":117,\"accessMode\":\"rw\",\"code\":\"switch_color_fav\",\"description\":\"\",\"name\":\"color/Fav切换\",\"typeSpec\":{\"type\":\"enum\",\"range\":[\"color\",\"fav\"]}},{\"abilityId\":118,\"accessMode\":\"rw\",\"code\":\"switch_color_sync\",\"description\":\"\",\"name\":\"颜色同步上报开关\",\"typeSpec\":{\"type\":\"bool\"}}]}]}"
  },
  "success": true,
  "t": 1724708726545,
  "tid": "81518a8063f411efb0850681dac3e90a"

Product ID

wcx02kgo8o1qwaf8

Product Name

"name": "Permanent Lights", "model": "S105A_C"

Information about how the device functions

RGBCW IC lights with controller that supports remote, wifi. Have been able to get these sensors / switches in Home Assistant: https://www.amazon.com/gp/product/B0D5M2VMMR/ref=ppx_yo_dt_b_asin_image_o01_s00?ie=UTF8&psc=1

{"20":"ON/OFF","21":"Mode","22":"Brightness","23":"Color Temp","24":"Color","26":"Timer","27":"Music","101":"颜色调节","102":"保存颜色","103":"预设动画","104":"diy功能","105":"灯数刷新","106":"灯总数","107":"文件夹","108":"设备音乐律动","109":"按键配置","110":"Y型分路器配置","111":"颜色统一亮度","112":"指示灯使能开关","113":"断电记忆开关","114":"遥控器配对","115":"遥控器信息","116":"颜色同步","117":"color/Fav切换"}

| Code | English Translation | Original Language |

|------|----------------------------|--------------------------|

| 20 | ON/OFF | 开/关 |

| 21 | Mode | 模式 |

| 22 | Brightness | 亮度 |

| 23 | Color Temp | 色温 |

| 24 | Color | 颜色 |

| 26 | Timer | 定时器 |

| 27 | Music | 音乐 |

| 101 | Color Adjustment | 颜色调节 |

| 102 | Save Color | 保存颜色 |

| 103 | Preset Animation | 预设动画 |

| 104 | DIY Function | diy功能 |

| 105 | Light Count Refresh | 灯数刷新 |

| 106 | Total Lights | 灯总数 |

| 107 | Folder | 文件夹 |

| 108 | Device Music Rhythm | 设备音乐律动 |

| 109 | Key Configuration | 按键配置 |

| 110 | Y-Shaped Splitter Config | Y型分路器配置 |

| 111 | Unified Color Brightness | 颜色统一亮度 |

| 112 | Indicator Light Enable/Disable Switch | 指示灯使能开关 |

| 113 | Power Out Memory Switch | 断电记忆开关 |

| 114 | Remote Control Pairing | 遥控器配对 |

| 115 | Remote Control Information | 遥控器信息 |

| 116 | Color Synchronization | 颜色同步 |

| 117 | Color/Fav Switch | color/Fav切换 |

make-all commented 2 months ago

Log messages from other integrations are not useful.

dave-parsons commented 2 months ago

Happy to help however I can - I just don't know what or how to provide what your looking for. This is the only log entries I could find and I am using this integration.

dave-parsons commented 2 months ago

OMG - I just realized TuyaLocal is NOT LocalTuya. My apologies. Switching now.