Closed BetaBucket closed 2 weeks ago
Connection and Light with cloud tuya HA extension full functioning.
Not sure it helps; diagnose data from tuya cloud extension for the device:
"documentation": "https://www.home-assistant.io/integrations/tuya",
"integration_type": "hub",
"iot_class": "cloud_push",
"loggers": [
"tuya_iot"
],
"requirements": [
"tuya-device-sharing-sdk==0.1.9"
],
"is_built_in": true,
"overwrites_built_in": false
},
"setup_times": {},
"data": {
"endpoint": "https://apigw.tuyaeu.com",
"terminal_id": "1731177771619tYJELs",
"mqtt_connected": true,
"disabled_by": null,
"disabled_polling": false,
"id": "bf150233bb93a26c9cxmtr",
"name": "EG-Treppe-2",
"category": "dj",
"product_id": "2mum0xruvfx0ayzp",
"product_name": "M-QJ3A",
"online": true,
"sub": false,
"time_zone": "+01:00",
"active_time": "2024-11-09T13:48:55+00:00",
"create_time": "2024-11-09T13:48:55+00:00",
"update_time": "2024-11-09T13:48:55+00:00",
"function": {
"switch_led": {
"type": "Boolean",
"value": {}
},
"work_mode": {
"type": "Enum",
"value": {
"range": [
"white",
"colour",
"scene",
"music"
]
}
},
"bright_value_v2": {
"type": "Integer",
"value": {
"min": 10,
"max": 1000,
"scale": 0,
"step": 1
}
},
"temp_value_v2": {
"type": "Integer",
"value": {
"min": 0,
"max": 1000,
"scale": 0,
"step": 1
}
},
"colour_data_v2": {
"type": "Json",
"value": {
"h": {
"min": 0,
"scale": 0,
"unit": "",
"max": 360,
"step": 1
},
"s": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"v": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
}
}
},
"scene_data_v2": {
"type": "Json",
"value": {
"scene_num": {
"min": 1,
"scale": 0,
"max": 8,
"step": 1
},
"scene_units": {
"unit_change_mode": {
"range": [
"static",
"jump",
"gradient"
]
},
"unit_switch_duration": {
"min": 0,
"scale": 0,
"max": 100,
"step": 1
},
"unit_gradient_duration": {
"min": 0,
"scale": 0,
"max": 100,
"step": 1
},
"bright": {
"min": 0,
"scale": 0,
"max": 1000,
"step": 1
},
"temperature": {
"min": 0,
"scale": 0,
"max": 1000,
"step": 1
},
"h": {
"min": 0,
"scale": 0,
"unit": "",
"max": 360,
"step": 1
},
"s": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"v": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
}
}
}
},
"countdown_1": {
"type": "Integer",
"value": {
"unit": "s",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
},
"music_data": {
"type": "Json",
"value": {
"change_mode": {
"range": [
"direct",
"gradient"
]
},
"bright": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"temperature": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"h": {
"min": 0,
"scale": 0,
"unit": "",
"max": 360,
"step": 1
},
"s": {
"min": 0,
"scale": 0,
"unit": "",
"max": 255,
"step": 1
},
"v": {
"min": 0,
"scale": 0,
"unit": "",
"max": 255,
"step": 1
}
}
},
"control_data": {
"type": "Json",
"value": {
"change_mode": {
"range": [
"direct",
"gradient"
]
},
"bright": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"temperature": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"h": {
"min": 0,
"scale": 0,
"unit": "",
"max": 360,
"step": 1
},
"s": {
"min": 0,
"scale": 0,
"unit": "",
"max": 255,
"step": 1
},
"v": {
"min": 0,
"scale": 0,
"unit": "",
"max": 255,
"step": 1
}
}
},
"rhythm_mode": {
"type": "Raw",
"value": {
"maxlen": 255
}
},
"sleep_mode": {
"type": "Raw",
"value": {
"maxlen": 255
}
},
"wakeup_mode": {
"type": "Raw",
"value": {
"maxlen": 255
}
},
"power_memory": {
"type": "Raw",
"value": {}
},
"do_not_disturb": {
"type": "Boolean",
"value": {}
},
"cycle_timing": {
"type": "Raw",
"value": {}
},
"random_timing": {
"type": "Raw",
"value": {}
}
},
"status_range": {
"switch_led": {
"type": "Boolean",
"value": {}
},
"work_mode": {
"type": "Enum",
"value": {
"range": [
"white",
"colour",
"scene",
"music"
]
}
},
"bright_value_v2": {
"type": "Integer",
"value": {
"min": 10,
"max": 1000,
"scale": 0,
"step": 1
}
},
"temp_value_v2": {
"type": "Integer",
"value": {
"min": 0,
"max": 1000,
"scale": 0,
"step": 1
}
},
"colour_data_v2": {
"type": "Json",
"value": {
"h": {
"min": 0,
"scale": 0,
"unit": "",
"max": 360,
"step": 1
},
"s": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"v": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
}
}
},
"scene_data_v2": {
"type": "Json",
"value": {
"scene_num": {
"min": 1,
"scale": 0,
"max": 8,
"step": 1
},
"scene_units": {
"unit_change_mode": {
"range": [
"static",
"jump",
"gradient"
]
},
"unit_switch_duration": {
"min": 0,
"scale": 0,
"max": 100,
"step": 1
},
"unit_gradient_duration": {
"min": 0,
"scale": 0,
"max": 100,
"step": 1
},
"bright": {
"min": 0,
"scale": 0,
"max": 1000,
"step": 1
},
"temperature": {
"min": 0,
"scale": 0,
"max": 1000,
"step": 1
},
"h": {
"min": 0,
"scale": 0,
"unit": "",
"max": 360,
"step": 1
},
"s": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"v": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
}
}
}
},
"countdown_1": {
"type": "Integer",
"value": {
"unit": "s",
"min": 0,
"max": 86400,
"scale": 0,
"step": 1
}
},
"music_data": {
"type": "Json",
"value": {
"change_mode": {
"range": [
"direct",
"gradient"
]
},
"bright": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"temperature": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"h": {
"min": 0,
"scale": 0,
"unit": "",
"max": 360,
"step": 1
},
"s": {
"min": 0,
"scale": 0,
"unit": "",
"max": 255,
"step": 1
},
"v": {
"min": 0,
"scale": 0,
"unit": "",
"max": 255,
"step": 1
}
}
},
"control_data": {
"type": "Json",
"value": {
"change_mode": {
"range": [
"direct",
"gradient"
]
},
"bright": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"temperature": {
"min": 0,
"scale": 0,
"unit": "",
"max": 1000,
"step": 1
},
"h": {
"min": 0,
"scale": 0,
"unit": "",
"max": 360,
"step": 1
},
"s": {
"min": 0,
"scale": 0,
"unit": "",
"max": 255,
"step": 1
},
"v": {
"min": 0,
"scale": 0,
"unit": "",
"max": 255,
"step": 1
}
}
},
"rhythm_mode": {
"type": "Raw",
"value": {
"maxlen": "255"
}
},
"sleep_mode": {
"type": "Raw",
"value": {
"maxlen": "255"
}
},
"wakeup_mode": {
"type": "Raw",
"value": {
"maxlen": "255"
}
},
"power_memory": {
"type": "Raw",
"value": {}
},
"do_not_disturb": {
"type": "Boolean",
"value": {}
},
"cycle_timing": {
"type": "Raw",
"value": {}
},
"random_timing": {
"type": "Raw",
"value": {}
}
},
"status": {
"switch_led": true,
"work_mode": "white",
"bright_value_v2": 227,
"temp_value_v2": 0,
"colour_data_v2": {
"h": 194,
"s": 453,
"v": 1000
},
"scene_data_v2": {
"scene_num": 34,
"scene_units": [
{
"bright": 0,
"h": 350,
"s": 500,
"temperature": 0,
"unit_change_mode": "gradient",
"unit_gradient_duration": 50,
"unit_switch_duration": 50,
"v": 1000
},
{
"bright": 0,
"h": 275,
"s": 1000,
"temperature": 0,
"unit_change_mode": "gradient",
"unit_gradient_duration": 50,
"unit_switch_duration": 50,
"v": 1000
}
]
},
"countdown_1": 0,
"music_data": "",
"control_data": "",
"rhythm_mode": "AAAAAAA=",
"sleep_mode": "AAA=",
"wakeup_mode": "AAA=",
"power_memory": "AAEAwgHFA+gA6AAA",
"do_not_disturb": false,
"cycle_timing": "AAAA",
"random_timing": "AAAA"
},
"home_assistant": {
"name": "EG-Treppe-2",
"name_by_user": null,
"disabled": false,
"disabled_by": null,
"entities": [
{
"disabled": false,
"disabled_by": null,
"entity_category": null,
"device_class": null,
"original_device_class": null,
"icon": "mdi:stairs",
"original_icon": null,
"unit_of_measurement": null,
"state": {
"entity_id": "light.eg_treppe_2",
"state": "on",
"attributes": {
"min_color_temp_kelvin": 2000,
"max_color_temp_kelvin": 6535,
"min_mireds": 153,
"max_mireds": 500,
"supported_color_modes": [
"color_temp",
"hs"
],
"color_mode": "color_temp",
"brightness": 56,
"color_temp_kelvin": 2000,
"color_temp": 500,
"hs_color": [
30.601,
94.547
],
"rgb_color": [
255,
136,
13
],
"xy_color": [
0.599,
0.382
],
"icon": "mdi:stairs",
"friendly_name": "EG-Treppe-2",
"supported_features": 0
},
"last_changed": "2024-11-09T21:41:27.075131+00:00",
"last_reported": "2024-11-09T21:41:27.075131+00:00",
"last_updated": "2024-11-09T21:41:27.075131+00:00"
}
}
]
},
"set_up": true,
"support_local": true
}
}
Se #522
@make-all Hi and thanks for pointing me to #522. I basically tried everything described there, without success. The issue you are referring to is that my device has ID22 an not an dp id 1? i.e. there is currently no solution and no developments planed?
dp 20 is included in the dp scan for "device22" devices, as it is common for lightbulbs to start at 20.
904 is a decoding error, so most likely one of the parameters is wrong (Local key, Version or Device ID).
Solution: My tuya devices are in a separate IOT Vlan. UDP Broadcast was blocked. Installing udp broadcast relay allowing ports 6666 and 6667, +firewall rule for my homeassistant vlan to allow IOT vlan broadcast protocoll access solved the connection issue. This thread helped: https://github.com/rospogrigio/localtuya/issues/1507
Log message
Product ID
2mum0xruvfx0ayzp
Product Name
LED Stufenbeleuchtung Unterteil mit 2.4G RGB + CCT, 230V Slider Smart 4917
DPS information
Information about how the device functions
www.longlife-led.de https://www.longlife-led.de/LED-Treppenleuchte-IP44-eckig-weiss-Lichtfarbe-Smart-Tuya-RGB-CCT-3W-Lichtaustritt-Orbis/404130
Not able to add the device. Free translated from german when trying to add the device: "Cannot establish connection with the provided details. Either provided details are wrong or it's an intermitting problem."