home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.77k stars 28.91k forks source link

Unexpected error fetching wled data: 'palettes' #114464

Closed bm33mb closed 1 day ago

bm33mb commented 3 months ago

The problem

Error at log, WLED 0.14.1 and 0.14.2 Devices seems to be working ok I am using WLED devices on ESP01 I divided the LED into 10 segments to control them separately

What version of Home Assistant Core has the issue?

2024.3.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

WLED

Link to integration documentation on our website

No response

Diagnostics information

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2024.3.1", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.12.2", "docker": true, "arch": "aarch64", "timezone": "Europe/Warsaw", "os_name": "Linux", "os_version": "6.1.73-haos-raspi", "supervisor": "2024.03.1", "host_os": "Home Assistant OS 12.1", "docker_version": "24.0.7", "chassis": "embedded", "run_as_root": true }, "custom_components": { "rpi_gpio": { "version": "2022.7.0", "requirements": [ "RPi.GPIO==0.7.1" ] }, "dahua_vto": { "version": "1.0.7", "requirements": [] }, "hacs": { "version": "1.34.0", "requirements": [ "aiogithubapi>=22.10.1" ] }, "google_cloud_stt": { "version": "0.2.0", "requirements": [ "google-cloud-speech==2.19.0" ] } }, "integration_manifest": { "domain": "wled", "name": "WLED", "codeowners": [ "@frenck" ], "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/wled", "integration_type": "device", "iot_class": "local_push", "quality_scale": "platinum", "requirements": [ "wled==0.17.0" ], "zeroconf": [ "_wled._tcp.local." ], "is_built_in": true }, "data": { "info": { "architecture": "esp01", "arduino_core_version": "3.1.2", "brand": "WLED", "build_type": "Unknown", "effect_count": 187, "filesystem": { "type": "<class 'wled.models.Filesystem'>", "repr": "Filesystem(total=131, used=32, free=99, percentage=24)" }, "free_heap": 22960, "ip": "10.1.2.237", "leds": { "__type": "<class 'wled.models.Leds'>", "repr": "Leds(cct=False, count=10, fps=38, light_capabilities=<LightCapability.RGB_COLOR: 1>, max_power=1500, max_segments=16, power=321, rgbw=False, wv=False, segment_light_capabilities=[<LightCapability.RGB_COLOR: 1>])" }, "live_ip": "", "live_mode": "", "live": false, "mac_address": "d8f15b11c073", "name": "WLED3", "pallet_count": 71, "product": "FOSS", "udp_port": 21320, "uptime": 4, "version_id": 2403170, "version": "0.14.2", "version_latest_beta": null, "version_latest_stable": null, "websocket": 1, "wifi": "REDACTED" }, "state": { "brightness": 128, "nightlight": { "type": "<class 'wled.models.Nightlight'>", "repr": "Nightlight(duration=60, fade=True, on=False, mode=<NightlightMode.FADE: 1>, target_brightness=0)" }, "on": true, "playlist": null, "preset": null, "segments": [ { "type": "<class 'wled.models.Segment'>", "repr": "Segment(brightness=255, clones=-1, color_primary=(255, 160, 0), color_secondary=(0, 0, 0), color_tertiary=(0, 0, 0), effect=Effect(effect_id=0, name='Solid'), intensity=128, length=10, on=True, palette=Palette(name='Default', palette_id=0), reverse=False, segment_id=0, selected=True, speed=128, start=0, stop=10)" } ], "sync": { "type": "<class 'wled.models.Sync'>", "repr": "Sync(receive=True, send=False)" }, "transition": 7, "lor": 0 }, "effects": { "186": "Akemi", "27": "Android", "38": "Aurora", "183": "Black Hole", "115": "Blends", "1": "Blink", "26": "Blink Rainbow", "121": "Blobs", "163": "Blurz", "91": "Bouncing Balls", "68": "Bpm", "2": "Breathe", "88": "Candle", "102": "Candle Multi", "28": "Chase", "37": "Chase 2", "54": "Chase 3", "31": "Chase Flash", "32": "Chase Flash Rnd", "30": "Chase Rainbow", "29": "Chase Random", "111": "Chunchun", "167": "Colored Bursts", "34": "Colorful", "8": "Colorloop", "74": "Colortwinkles", "67": "Colorwaves", "119": "Crazy Bees", "159": "DJ Light", "152": "DNA", "182": "DNA Spiral", "112": "Dancing Shadows", "18": "Dissolve", "19": "Dissolve Rnd", "124": "Distortion Waves", "164": "Drift", "123": "Drift Rose", "96": "Drip", "7": "Dynamic", "117": "Dynamic Smooth", "12": "Fade", "49": "Fairy", "51": "Fairytwinkle", "69": "Fill Noise", "66": "Fire 2012", "45": "Fire Flicker", "149": "Firenoise", "42": "Fireworks", "90": "Fireworks 1D", "89": "Fireworks Starburst", "110": "Flow", "179": "Flow Stripe", "155": "Freqmap", "138": "Freqmatrix", "141": "Freqpixels", "137": "Freqwave", "177": "Frizzles", "160": "Funky Plank", "139": "GEQ", "172": "Game Of Life", "120": "Ghost Rider", "87": "Glitter", "46": "Gradient", "156": "Gravcenter", "157": "Gravcentric", "158": "Gravfreq", "132": "Gravimeter", "82": "Halloween Eyes", "100": "Heartbeat", "180": "Hiphotic", "58": "ICU", "64": "Juggle", "130": "Juggles", "168": "Julia", "75": "Lake", "41": "Lighthouse", "57": "Lightning", "176": "Lissajous", "47": "Loading", "131": "Matripix", "153": "Matrix", "154": "Metaballs", "76": "Meteor", "77": "Meteor Smooth", "135": "Midnoise", "59": "Multi Comet", "70": "Noise 1", "71": "Noise 2", "72": "Noise 3", "73": "Noise 4", "107": "Noise Pal", "146": "Noise2D", "143": "Noisefire", "136": "Noisemeter", "145": "Noisemove", "126": "Octopus", "62": "Oscillate", "101": "Pacifica", "65": "Palette", "98": "Percent", "147": "Perlin Move", "105": "Phased", "109": "Phased Noise", "128": "Pixels", "129": "Pixelwave", "97": "Plasma", "178": "Plasma Ball", "133": "Plasmoid", "174": "Polar Lights", "95": "Popcorn", "63": "Pride 2015", "144": "Puddlepeak", "134": "Puddles", "162": "Pulser", "53": "RSVD", "114": "RSVD", "142": "RSVD", "151": "RSVD", "161": "RSVD", "169": "RSVD", "170": "RSVD", "171": "RSVD", "78": "Railway", "43": "Rain", "9": "Rainbow", "33": "Rainbow Runner", "5": "Random Colors", "79": "Ripple", "148": "Ripple Peak", "99": "Ripple Rainbow", "185": "Rocktaves", "48": "Rolling Balls", "15": "Running", "52": "Running Dual", "16": "Saw", "10": "Scan", "11": "Scan Dual", "40": "Scanner", "60": "Scanner Dual", "122": "Scrolling Text", "181": "Sindots", "108": "Sine", "92": "Sinelon", "93": "Sinelon Dual", "94": "Sinelon Rainbow", "125": "Soap", "0": "Solid", "103": "Solid Glitter", "83": "Solid Pattern", "84": "Solid Pattern Tri", "118": "Spaceships", "20": "Sparkle", "21": "Sparkle Dark", "22": "Sparkle+", "85": "Spots", "86": "Spots Fade", "150": "Squared Swirl", "39": "Stream", "61": "Stream 2", "23": "Strobe", "25": "Strobe Mega", "24": "Strobe Rainbow", "166": "Sun Radiation", "104": "Sunrise", "6": "Sweep", "36": "Sweep Random", "175": "Swirl", "116": "TV Simulator", "173": "Tartan", "44": "Tetrix", "13": "Theater", "14": "Theater Rainbow", "35": "Traffic Light", "56": "Tri Fade", "55": "Tri Wipe", "17": "Twinkle", "81": "Twinklecat", "80": "Twinklefox", "106": "Twinkleup", "50": "Two Dots", "113": "Washing Machine", "140": "Waterfall", "165": "Waverly", "184": "Wavesins", "127": "Waving Cell", "3": "Wipe", "4": "Wipe Random" }, "palettes": { "2": " Color 1", "4": " Color Gradient", "3": " Colors 1&2", "5": " Colors Only", "1": "* Random Cycle", "18": "Analogous", "46": "April Night", "63": "Aqua Flash", "51": "Atlantica", "50": "Aurora", "55": "Aurora 2", "39": "Autumn", "22": "Beach", "26": "Beech", "67": "Blink Red", "15": "Breeze", "48": "C9", "52": "C9 2", "53": "C9 New", "57": "Candy", "70": "Candy2", "7": "Cloud", "37": "Cyane", "0": "Default", "24": "Departure", "30": "Drywet", "59": "Fairy Reaf", "35": "Fire", "10": "Forest", "32": "Grintage", "28": "Hult", "29": "Hult 64", "36": "Icefire", "31": "Jul", "25": "Landscape", "8": "Lava", "38": "Light Pink", "65": "Lite Light", "40": "Magenta", "41": "Magred", "9": "Ocean", "44": "Orange & Teal", "47": "Orangery", "6": "Party", "20": "Pastel", "61": "Pink Candy", "11": "Rainbow", "12": "Rainbow Bands", "16": "Red & Blue", "66": "Red Flash", "62": "Red Reaf", "68": "Red Shift", "69": "Red Tide", "56": "Retro Clown", "33": "Rewhi", "14": "Rivendell", "49": "Sakura", "60": "Semi Blue", "27": "Sherbet", "19": "Splash", "13": "Sunset", "21": "Sunset 2", "54": "Temperature", "34": "Tertiary", "45": "Tiamat", "58": "Toxy Reaf", "23": "Vintage", "43": "Yelblu", "64": "Yelblu Hot", "17": "Yellowout", "42": "Yelmag" }, "playlists": {}, "presets": { "1": { "name": "Colorloop", "quick_label": null, "on": true, "transition": 7 }, "3": { "name": "Colorloop segmenty", "quick_label": null, "on": true, "transition": 7 }, "2": { "name": "Random Colors", "quick_label": null, "on": true, "transition": 7 } } } }

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Unexpected error fetching wled data: 'palettes'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/wled/coordinator.py", line 103, in _async_update_data
    device = await self.wled.update(full_update=not self.last_update_success)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/backoff/_async.py", line 151, in retry
    ret = await target(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/wled/wled.py", line 275, in update
    self._device = Device(data)
                   ^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/wled/models.py", line 694, in __init__
    if any(
       ^^^^
  File "/usr/local/lib/python3.12/site-packages/wled/models.py", line 695, in <genexpr>
    k not in data and data[k] is not None
                      ~~~~^^^
KeyError: 'palettes'

Additional information

No response

home-assistant[bot] commented 3 months ago

Hey there @frenck, mind taking a look at this issue as it has been labeled with an integration (wled) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `wled` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign wled` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


wled documentation wled source (message by IssueLinks)

issue-triage-workflows[bot] commented 1 week ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.