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

HA: Integration WLED Error: #105368

Closed
ziomimmo77 opened this issue Dec 9, 2023 · 6 comments
Closed

HA: Integration WLED Error: #105368

ziomimmo77 opened this issue Dec 9, 2023 · 6 comments

Comments

@ziomimmo77
Copy link

The problem

For example, when i make anything like, an example a simple turn on or change color, can read the json error on the screen, but works. Just some time doesn't work.

posting the log, it's more easy.

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:238
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 05:42:39 (4 occurrences)
Last logged: 09:52:01

[139705219170752] invalid literal: line 1 column 860 (char 859)
[139705216576064] invalid literal: line 1 column 858 (char 857)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2067, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2104, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 272, in handle_service
return await service.entity_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 878, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 948, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 580, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File "/usr/src/homeassistant/homeassistant/components/wled/helpers.py", line 28, in handler
await func(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/wled/light.py", line 251, in async_turn_on
await self.coordinator.wled.segment(**data)
File "/usr/local/lib/python3.11/site-packages/wled/wled.py", line 515, in segment
await self.request("/json/state", method="POST", data=state)
File "/usr/local/lib/python3.11/site-packages/backoff/_async.py", line 151, in retry
ret = await target(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/wled/wled.py", line 211, in request
response_data = await response.json()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 71, in json
return await super().json(*args, loads=loads, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1181, in json
return loads(stripped.decode(encoding))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/json.py", line 43, in json_loads
return orjson.loads(__obj) # type:ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^
orjson.JSONDecodeError: invalid literal: line 1 column 860 (char 859)

Someone gnows this problem?

thanks friends

What version of Home Assistant Core has the issue?

core-2023.12.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

Sometimes, Manual from plancia pannel and Automation doesn't work commands

Link to integration documentation on our website

No response

Diagnostics information

{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2023.12.1",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.11.6",
"docker": true,
"arch": "x86_64",
"timezone": "Europe/Rome",
"os_name": "Linux",
"os_version": "6.1.63-haos",
"supervisor": "2023.11.6",
"host_os": "Home Assistant OS 11.2",
"docker_version": "24.0.7",
"chassis": "vm",
"run_as_root": true
},
"custom_components": {
"hacs": {
"version": "1.33.0",
"requirements": [
"aiogithubapi>=22.10.1"
]
},
"tapo": {
"version": "2.12.0",
"requirements": [
"plugp100==3.14.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": "esp8266",
"arduino_core_version": "3.1.2",
"brand": "WLED",
"build_type": "Unknown",
"effect_count": 187,
"filesystem": {
"__type": "<class 'wled.models.Filesystem'>",
"repr": "Filesystem(total=1024, used=57, free=967, percentage=6)"
},
"free_heap": 16216,
"ip": "192.168.0.12",
"leds": {
"__type": "<class 'wled.models.Leds'>",
"repr": "Leds(cct=False, count=600, fps=20, light_capabilities=<LightCapability.RGB_COLOR: 1>, max_power=32000, max_segments=16, power=714, rgbw=False, wv=False, segment_light_capabilities=[<LightCapability.RGB_COLOR: 1>, <LightCapability.RGB_COLOR: 1>, <LightCapability.RGB_COLOR: 1>])"
},
"live_ip": "",
"live_mode": "",
"live": false,
"mac_address": "5ccf7f89a48b",
"name": "WLED",
"pallet_count": 71,
"product": "FOSS",
"udp_port": 21324,
"uptime": 163067,
"version_id": 2310130,
"version": "0.14.0",
"version_latest_beta": "0.14.0-b6",
"version_latest_stable": "0.14.0",
"websocket": 2,
"wifi": "REDACTED"
},
"state": {
"brightness": 15,
"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=49, clones=-1, color_primary=(8, 255, 0), color_secondary=(0, 0, 0), color_tertiary=(0, 0, 0), effect=Effect(effect_id=106, name='Twinkleup'), intensity=128, length=600, on=True, palette=Palette(name='Rainbow', palette_id=11), reverse=False, segment_id=0, selected=True, speed=128, start=0, stop=600)"
},
{
"__type": "<class 'wled.models.Segment'>",
"repr": "Segment(brightness=52, clones=-1, color_primary=(8, 255, 0), color_secondary=(0, 0, 0), color_tertiary=(0, 0, 0), effect=Effect(effect_id=0, name='Solid'), intensity=128, length=30, on=False, palette=Palette(name='Aurora', palette_id=50), reverse=False, segment_id=1, selected=False, speed=128, start=503, stop=533)"
},
{
"__type": "<class 'wled.models.Segment'>",
"repr": "Segment(brightness=46, clones=-1, color_primary=(8, 255, 0), color_secondary=(0, 0, 0), color_tertiary=(0, 0, 0), effect=Effect(effect_id=0, name='Solid'), intensity=128, length=30, on=False, palette=Palette(name='Aurora', palette_id=50), reverse=False, segment_id=2, selected=False, speed=128, start=390, stop=420)"
}
],
"sync": {
"__type": "<class 'wled.models.Sync'>",
"repr": "Sync(receive=True, send=False)"
},
"transition": 0,
"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": {
"11": {
"name": "Fireworks+Bed",
"quick_label": null,
"on": true,
"transition": 0
},
"10": {
"name": "Glitter+Bed",
"quick_label": null,
"on": true,
"transition": 0
},
"9": {
"name": "Glitter-only Max Power",
"quick_label": null,
"on": true,
"transition": 0
},
"14": {
"name": "Letto+Scrivania",
"quick_label": null,
"on": true,
"transition": 0
},
"1": {
"name": "Night",
"quick_label": null,
"on": true,
"transition": 0
},
"3": {
"name": "Night dual",
"quick_label": null,
"on": true,
"transition": 0
},
"2": {
"name": "Sera",
"quick_label": null,
"on": true,
"transition": 0
},
"7": {
"name": "Sera + Candle",
"quick_label": null,
"on": true,
"transition": 0
},
"6": {
"name": "Sera ++ Candle",
"quick_label": null,
"on": true,
"transition": 0
},
"8": {
"name": "Sera Glitter",
"quick_label": null,
"on": true,
"transition": 0
},
"12": {
"name": "TV + Comodini",
"quick_label": null,
"on": true,
"transition": 0
}
}
}
}

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Dec 9, 2023

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)

@fama-lama
Copy link

fama-lama commented Dec 15, 2023

i experience the same issue. These decode errors are so common but noone ever has
a fix.

orjson.JSONDecodeError: invalid literal: line 1 column 859 (char 858)

@KevinKTM
Copy link

I have the same issue. Its been plaguing me for month now

@nilvanis
Copy link

nilvanis commented Jan 3, 2024

Probably Aircoookie/WLED#3447

@issue-triage-workflows
Copy link

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.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2024
@disconn3ct
Copy link

as many of them have already been resolved with the latest updates

I would love to see the numbers on this, since there are so many valid bugs being closed and reopened later..

@github-actions github-actions bot locked and limited conversation to collaborators May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants