rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.99k stars 565 forks source link

Ceiling lighting Led RGB - new device compatible #1239

Open 1achy opened 1 year ago

1achy commented 1 year ago

Ceiling lighting (ngmwvkmhsplwuasr) da Tuya

Led Soffitto Ø30CM Dimmerabile 24W 2400LM,RGB+CCT 2700-5000K,IP54, WORK FINE image

Tuya local found

image

tuya api online found :

{ "result": { "category": "xdd", "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": "countdown", "dp_id": 26, "type": "Integer", "values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}" },

PROTOCOL 3.3

DP: 20: switch_led 22: bright_value 23: temp_value 24: colour_data 26: countdown

1achy commented 1 year ago

I have dubt

DP: 20: switch_led -> Ligth 22: bright_value -> number 10-1000 23: temp_value -> number 0-1000 24: colour_data -> ???????????????????? what select entity ? 26: countdown -> number 0 -86400

1achy commented 1 year ago

is it possible sensor DP 24 ???