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 Luminus Neon Strip Light 5m #2779

Open
Shawson opened this issue Jan 13, 2025 · 5 comments
Open

Request support for Luminus Neon Strip Light 5m #2779

Shawson opened this issue Jan 13, 2025 · 5 comments
Labels
full_info All info needed was provided new device Unsupported device

Comments

@Shawson
Copy link

Shawson commented Jan 13, 2025

Log message

This error originated from a custom integration.

Logger: custom_components.tuya_local.config_flow
Source: custom_components/tuya_local/config_flow.py:420
integration: Tuya Local (documentation, issues)
First occurred: 22:26:54 (2 occurrences)
Last logged: 22:30:03

Unable to fetch data model from cloud: 'str' object has no attribute 'keys'

This error originated from a custom integration.

Logger: custom_components.tuya_local.config_flow
Source: custom_components/tuya_local/config_flow.py:421
integration: Tuya Local (documentation, issues)
First occurred: 22:26:54 (2 occurrences)
Last logged: 22:30:03

Device matches None with quality of 0%. DPS: {"updated_at": 1736807213.0206215}

Product ID

qw6krre6vgdmmupt

Product Name

Luminus Neon Strip Light 5m

DPS information

{
  "result": {
    "properties": [
      {
        "code": "switch_led",
        "custom_name": "",
        "dp_id": 20,
        "time": 1736806486506,
        "type": "bool",
        "value": true
      },
      {
        "code": "work_mode",
        "custom_name": "",
        "dp_id": 21,
        "time": 1736806473098,
        "type": "enum",
        "value": "white"
      },
      {
        "code": "bright_value",
        "custom_name": "",
        "dp_id": 22,
        "time": 1736703708436,
        "type": "value",
        "value": 10
      },
      {
        "code": "temp_value",
        "custom_name": "",
        "dp_id": 23,
        "time": 1736703708436,
        "type": "value",
        "value": 0
      },
      {
        "code": "colour_data",
        "custom_name": "",
        "dp_id": 24,
        "time": 1736806473923,
        "type": "string",
        "value": "03e800050000"
      },
      {
        "code": "countdown",
        "custom_name": "",
        "dp_id": 26,
        "time": 1736806459588,
        "type": "value",
        "value": 0
      },
      {
        "code": "music_data",
        "custom_name": "",
        "dp_id": 27,
        "time": 1736703708436,
        "type": "string",
        "value": ""
      },
      {
        "code": "light_pixel",
        "custom_name": "",
        "dp_id": 47,
        "time": 1736806459602,
        "type": "value",
        "value": 60
      },
      {
        "code": "dreamlight_scene_mode",
        "custom_name": "",
        "dp_id": 51,
        "time": 1736806459818,
        "type": "raw",
        "value": "ARUKUlLgAABkAMFhALQwALVSAMRj"
      },
      {
        "code": "dreamlightmic_music_data",
        "custom_name": "",
        "dp_id": 52,
        "time": 1736806459635,
        "type": "raw",
        "value": "AQAAA1UyAQAAZAAAZAB4ZADwZAA8ZAC0ZAEsZAAAAA=="
      },
      {
        "code": "lightpixel_number_set",
        "custom_name": "",
        "dp_id": 53,
        "time": 1736806459602,
        "type": "value",
        "value": 30
      },
      {
        "code": "paint_colour_data",
        "custom_name": "",
        "dp_id": 61,
        "time": 1736806473990,
        "type": "raw",
        "value": "AAAAFAAD6AAF"
      }
    ]
  },
  "success": true,
  "t": 1736807888283,
  "tid": "0fb83f3bd1ff11efa76ab217c6c149bc"
}


{
  "result": [
    {
      "active_time": 1736806457,
      "bind_space_id": "190713782",
      "category": "dd",
      "create_time": 1736703708,
      "custom_name": "LED Light",
      "icon": "smart/icon/bay16920865167353QHG/b2c56e73a20929bcd7d285bf7a691ab2.png",
      "id": "bfcbbb86628dce2d13l7se",
      "ip": "xxx",
      "is_online": true,
      "lat": "0",
      "local_key": "xxx",
      "lon": "0",
      "model": "项目25-PCB_075P15-V1.2",
      "name": "Luminus Neon Strip Light 5m",
      "product_id": "qw6krre6vgdmmupt",
      "product_name": "Neon Strip Light 5m",
      "sub": false,
      "time_zone": "+00:00",
      "update_time": 1736806459,
      "uuid": "xxx"
    }
  ],
  "success": true,
  "t": 1736807802727,
  "tid": "dcb5e859d1fe11efbbc9c2b21b10ca93"
}

Information about how the device functions

this is a neon style led strip available in Costco- https://www.amazon.co.uk/Luminus-Flexible-Christmas-Decoration-Mode-Music/dp/B0DP5FTB2B

It has normal light modes, colours and will animate different light patterns. It has a local music mode too. Connects via 2.4ghz wifi. controllable via tuya app or smart life. It can be cut to different lengths and configured in the app to reflect the new length which adjusts light patterns.

@Shawson Shawson added the new device Unsupported device label Jan 13, 2025
@make-all
Copy link
Owner

A light that doesn't tell what its state is when you connect is not going to make a very usable device.

@make-all make-all added the full_info All info needed was provided label Jan 13, 2025
@make-all make-all moved this to 🔖 Ready in Tuya Local Jan 13, 2025
@Shawson
Copy link
Author

Shawson commented Jan 14, 2025

Yea I wasn't sure what that error was telling me as it mentioned "fetching the data model from the cloud" and i'm addressing the device across my local network. However if i turn the light on manually and connect with the tuya app, it knows it's already on, so state must be reported somehow.. are there any additional debug logs i can fish out that might shed more light on this?

@Shawson
Copy link
Author

Shawson commented Jan 14, 2025

This is what HASS tries to match it to now;
image

@make-all
Copy link
Owner

If you use the cloud option in the config flow, it does pull some information about the device from the cloud, namely the local_key and the product_id for matching against configs. In the latest release, it also tries to query from the cloud what dps are available from the device, and their corresponding local ids. This is the query that is returning an empty set of data. The cloud function that is being used there is known to return incomplete data (unfortunately it is the only function accessible from the QR code login that returns any local info) but combined with the local log showing no data returned, it does look like this device could be configured to be cloud only by the manufacturer.

The list above is other devices known to return empty local data or to inconsistently return one random dp but we don't know which will be returned.

@Shawson
Copy link
Author

Shawson commented Jan 14, 2025

Ah I see! Interestingly in the TinyTuya python app, this is the only one of the local devices I have that shows the ip field as blank, even though I can see it is assigned an IP by the DHCP on my router.. that might explain it. I wonder if it falls back to a lan mode if i block it from the internet on my firewall? I'll give it a go. Otherwise I guess I'll have to use the other non-local tuya HA integration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full_info All info needed was provided new device Unsupported device
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants