-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 Service call to WLED entities works but generates KeyError: 'b' #2616
Comments
Hi and thank you for the report! Does the issue occur in release 0.13.1 or only in latest main? |
v0.13.1 does NOT seem to be affected however since I've started troubleshooting this and messing with versions I've somehow managed to put both of my lamps into a state where WLED freezes after only a couple minutes of uptime and needs to be unplugged from power to start responding again. I've put ESPHome on one of the ESP32 to test whether it's a HW issue, that seems to be running stable so far. Will report this is a separate issue if it persists (is there a log somewhere that would help troubleshoot that?) |
I'm not sure if this is related or a different bug, but I am getting something sort of similar with KeyError: 'b'. I also get that code when some WLED devices get updated via Node-Red service calls (Message: Call-service error. 'b'). I have over 12 WLED devices, so I cannot pinpoint which one is causing the errors (unless it is all of them). I get about 50-100 of these reoccurring errors within 60 seconds causing the number to reach over 1000 very quickly. Cannot confirm when it started, but I know it has been happening with HA 2022.3. Home Assistant: 2022.4
|
same issue which is blocking any automation with wled service calls. Don't have much more to add, same build as OP. |
I'm getting the same error printed every 10 seconds in my Home Assistant log. |
Please consider raising this issue at https://github.com/home-assistant/core too |
Found the issue, it is caused by |
Would this suffice?
|
@blazoncek 🤷 Anyways, if the version isn't matching Semver (or another standard), it will simply not be possible to compare versions and thus handle updates and/or backward compatibility with older WLED versions. |
Could you just trim after the third digit? |
That is making assumptions on an upstream version number, which sounds odd to do. |
But you said it should follow standards and first three digits (actually I meant numbers) are considered standard. Now I do not understand what assumptions are you referring to. |
Ok... sorry to hear that, let me try again: the version number doesn't fit any common version scheme specification and that causes issues. Nothing more nothing less. |
Well, let's first clarify something. It would be nice to know what your specific "common version scheme specification" looks like, so we could try to get WLED working in HA. We might find a way to deliver what HA expects, however I doubt that WLED itself will adopt something completely different just to satisfy HA needs. |
? Have you been under some kind of rock? Buildver? calver? semver? Simver? PEP440?
Anything listed above will do just fine (even mixed) and will be version comparable with tons of tools out there.
Then it will keep throwing errors for alpha's 🤷 As a matter of fact, I've discussed the issue of unknown versioning (e.g., in forks or custom builds) with Aircoookie before implementation and we decided to make it the problem of the forks/custom builds and just ignore those. I guess this makes this issue in the exact same category. If I have to choose between that or having to remove things like backward compatibility and firmware upgrades, I will definitely choose the errors happening on alphas. Considering your last part of the response (doubting of adjustment), I'll adjust the documentation to list this error as a known issue/limitation caused by WLEDs versioning. |
Hey no reason to be insulting. I'm not asking if you spent your life in dreamlead, did I? |
It wasn't meant insulting, there is no nicer way to put it 🤷 |
i like it. And still no idea what you ask for. Just heard buzzwords not content. |
I don't ask for anything. I've just reported back the root cause of the issue and why it is happening, but looking back at the responses to that, I guess I should have not. I'll skip similar next issue reports for my own well-being.
ok. Good luck with the issue. |
It also not an issue I can fix on my end, as its not parsable as a common version pattern, which is used for things mentioned earlier. As said: If I have to choose between that or having to remove things like backward compatibility and firmware upgrades, I will definitely choose the errors happening on alphas. |
WLED supports SemVer 2.0.0 even in beta versions. |
What happened?
I've recently upgraded from 0.13.1-b6, since then after each HA service call to a WLED entity (i.e. turning off the master, selecting presets) I'm getting a get a toast notification with an error in the HA GUI and a new entry in the error log, the action however completes successfully.
This stops HA scripts from completing causing issues in automations.
To Reproduce Bug
Example service call:
Expected Behavior
Not generate an error...
Install Method
Self-Compiled
What version of WLED?
WLED 0.13.2-a0 (build 2203191)
Which microcontroller/board are you seeing the problem on?
ESP32
Relevant log/trace output
Anything else?
Self-compliled with -D USERMOD_MULTI_RELAY
HA 2022.3.8 (same issue in 2022.4.0b3)
Deleting/adding the WLED integration makes no difference
Code of Conduct
The text was updated successfully, but these errors were encountered: