-
Notifications
You must be signed in to change notification settings - Fork 34
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
Connection trigger compile error on old Arduino framework (2023.11 regression) #5141
Comments
Using an old arduino framework version is not supported as mentioned in the compile log. There is some work to get a newer fastled library, but until then, try using neopixel instead. |
The docs say to use Arduino framework version 2.7.4 for FastLED, so it should still be supported.
It also looks like the linked PR broke support by accident. It doesn't look intentional to me. |
@jesserockz Since the connection triggers PR #5628 is yours, can you say if this is expected to break with the older framework version required for FastLED? I'm not exactly sure why, but it seems like the template parameter pack used in the automation If this breakage is expected, let me know and I'll PR an update to the docs to remove the mention of the Arduino 2.7.4 framework version. I think this just causes confusion if it's supported according to the docs, but not supported in reality. Ideally, the change should also be mentioned in the 2023.11.0 breaking changes section then (that FastLED is "removed" for ESP8266). For anyone else finding this issue, there's an effort made in this PR to update FastLED (and seemingly no longer require an old framework version): |
I suspect the problem is that the old Arduino version also pulls in an older compiler. |
Ah, I see. But yeah, even if it's finished soon, it might be a good idea to add a note/warning in the docs for now like you said.
Hmm, I wonder if C++11 features aren't even supported then. I'll check later what version that is.
The main reason is probably that I'm using some custom FastLED effects (which I've shared somewhere some years back). The introduced issue also looked to be easily fixable at first, so I took a shot but couldn't figure it out on the older version. The new connection triggers are the only thing that cause the compilation error on 2023.11.x. When removed, it compiles at least. |
I see the same error on one device. |
in case someone just want to solve this without specific requirement of the version.
|
That's the default, so it's the same as not specifying anything at all. |
The problem
Using Arduino framework 2.7.4 causes a compile error in the api component for the newly added connection triggers.
See the provided YAML example and the logs below.
Issue was not present on 2023.10.x and earlier. Seems to be introduced in 2023.11 with:
FastLED requires Arduino framework 2.7.4 on ESP8266, as mentioned in the docs.
Which version of ESPHome has the issue?
2023.11.0 and 2023.11.3
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
No response
What platform are you using?
ESP8266
Board
NodeMCU
Component causing the issue
api
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: