jake
Avril 16, 2024, 4:44
1
Mon problème
Bonjour, je veux utiliser FastLED avec un esp32C3, cela pose un souci quand je compile, visiblement si j’arrive a utiliser FastLED 3.6.0 ça devrait fonctionner. Mais mon esphome me force toujours en 3.3.2
Comment forcer la maj svp ?
Merci
Renseigner votre problème
Ma configuration
Texte à remplacer par votre configuration
Comment récupérer ma configuration :
Dans votre HA, Menu latéral
Paramètres
>
Système
>
Corrections
puis les trois petits points en haut a droite >
Informations Système
puis une fois en bas
Copier
jake:
FastLED
Bonjour,
ta essayer avec https://esphome.io/components/light/neopixelbus
Warning
NeoPixelBus does not work with ESP-IDF.
For clockless lights, you can use ESP32 RMT LED Strip , and for SPI LEDs see SPI LED Strip Light .
Pour FastLed:
Warning
FastLED does not work as expected with Arduino 3 or newer for ESP8266. For now, you can either downgrade the arduino version or use NeoPixelBus Light .
esp8266: framework: version: 2.7.4
See these related issues:
jake
Avril 16, 2024, 6:26
3
oui j’ai essayé. Ma demande est comment forcer l’upgrade pas comment faire autrement ?
Merci.
Justement, faut faire autrement.
opened 07:20AM - 21 Oct 23 UTC
closed 09:32PM - 31 Oct 23 UTC
### The problem
Compilation fails since 2023.10 with this error:
**short:**
…
```python
function 'void esphome::captive_portal::CaptivePortal::start()':
src/esphome/components/captive_portal/captive_portal.cpp:51:49: error: call of overloaded 'IPAddress(esphome::network::IPAddress&)' is ambiguous
this->dns_server_->start(53, "*", IPAddress(ip));
```
**complete:**
```python
INFO ESPHome 2023.10.1
INFO Reading configuration /config/esphome/esp-flur.yaml...
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
WARNING The selected Arduino framework version is not the recommended one. If there are connectivity or build issues please remove the manual version.
INFO Generating C++ source...
INFO Compiling app...
Processing esp-flur (board: d1_mini; framework: arduino; platform: platformio/espressif8266@2.6.3)
--------------------------------------------------------------------------------
Removing unused dependencies...
Library Manager: Installing fastled/FastLED @ 3.3.2
INFO Installing fastled/FastLED @ 3.3.2
Unpacking [####################################] 100%
Library Manager: FastLED@3.3.2 has been installed!
INFO FastLED@3.3.2 has been installed!
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
Dependency Graph
|-- ESPAsyncTCP-esphome @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.1.0
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise-c @ 0.1.4
|-- FastLED @ 3.3.2
Compiling .pioenvs/esp-flur/lib58d/FastLED/FastLED.cpp.o
Compiling .pioenvs/esp-flur/lib58d/FastLED/bitswap.cpp.o
Compiling .pioenvs/esp-flur/lib58d/FastLED/colorpalettes.cpp.o
Compiling .pioenvs/esp-flur/lib58d/FastLED/colorutils.cpp.o
Compiling .pioenvs/esp-flur/lib58d/FastLED/hsv2rgb.cpp.o
Compiling .pioenvs/esp-flur/lib58d/FastLED/lib8tion.cpp.o
Compiling .pioenvs/esp-flur/lib58d/FastLED/noise.cpp.o
Compiling .pioenvs/esp-flur/lib58d/FastLED/platforms.cpp.o
Compiling .pioenvs/esp-flur/lib58d/FastLED/power_mgt.cpp.o
Compiling .pioenvs/esp-flur/lib58d/FastLED/wiring.cpp.o
Compiling .pioenvs/esp-flur/src/esphome/components/adc/adc_sensor.cpp.o
Compiling .pioenvs/esp-flur/src/esphome/components/api/api_connection.cpp.o
Compiling .pioenvs/esp-flur/src/esphome/components/api/api_frame_helper.cpp.o
Compiling .pioenvs/esp-flur/src/esphome/components/api/api_pb2.cpp.o
Compiling .pioenvs/esp-flur/src/esphome/components/api/api_pb2_service.cpp.o
Compiling .pioenvs/esp-flur/src/esphome/components/api/api_server.cpp.o
Compiling .pioenvs/esp-flur/src/esphome/components/api/list_entities.cpp.o
Compiling .pioenvs/esp-flur/src/esphome/components/api/proto.cpp.o
Compiling .pioenvs/esp-flur/src/esphome/components/api/subscribe_state.cpp.o
Compiling .pioenvs/esp-flur/src/esphome/components/api/user_services.cpp.o
Compiling .pioenvs/esp-flur/src/esphome/components/captive_portal/captive_portal.cpp.o
Compiling .pioenvs/esp-flur/src/esphome/components/esp8266/core.cpp.o
Compiling .pioenvs/esp-flur/src/esphome/components/esp8266/gpio.cpp.o
src/esphome/components/captive_portal/captive_portal.cpp: In member function 'void esphome::captive_portal::CaptivePortal::start()':
src/esphome/components/captive_portal/captive_portal.cpp:51:49: error: call of overloaded 'IPAddress(esphome::network::IPAddress&)' is ambiguous
this->dns_server_->start(53, "*", IPAddress(ip));
^
src/esphome/components/captive_portal/captive_portal.cpp:51:49: note: candidates are:
In file included from /data/cache/platformio/packages/framework-arduinoespressif8266@3.20704.0/cores/esp8266/Udp.h:39:0,
from /data/cache/platformio/packages/framework-arduinoespressif8266@3.20704.0/libraries/ESP8266WiFi/src/WiFiUdp.h:25,
from /data/cache/platformio/packages/framework-arduinoespressif8266@3.20704.0/libraries/DNSServer/src/DNSServer.h:3,
from src/esphome/components/captive_portal/captive_portal.h:5,
from src/esphome/components/captive_portal/captive_portal.cpp:1:
/data/cache/platformio/packages/framework-arduinoespressif8266@3.20704.0/cores/esp8266/IPAddress.h:163:9: note: IPAddress::IPAddress(const ip4_addr&)
IPAddress(const ipv4_addr& fw_addr) { setV4(); v4() = fw_addr.addr; }
^
/data/cache/platformio/packages/framework-arduinoespressif8266@3.20704.0/cores/esp8266/IPAddress.h:79:9: note: IPAddress::IPAddress(const IPAddress&)
IPAddress(const IPAddress& from);
^
Compiling .pioenvs/esp-flur/src/esphome/components/esp8266/preferences.cpp.o
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-nonnull-compare" [enabled by default]
*** [.pioenvs/esp-flur/src/esphome/components/captive_portal/captive_portal.cpp.o] Error 1
========================== [FAILED] Took 5.14 seconds ==========================
```
### Which version of ESPHome has the issue?
2023.10.1
### What type of installation are you using?
Home Assistant Add-on
### Which version of Home Assistant has the issue?
2023.10.3
### What platform are you using?
ESP8266
### Board
WemosD1 Mini
### Component causing the issue
Fastled
### Example YAML snippet
```yaml
Here is my config:
esphome:
name: esp-flur
esp8266:
board: d1_mini
framework:
version: 2.7.4
# Enable logging
logger:
# Enable Home Assistant API
api:
reboot_timeout: 1min
encryption:
key: "#####"
ota:
password: "#####"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp-Flur"
password: "#####"
captive_portal:
light:
- platform: fastled_clockless
chipset: WS2811
pin: GPIO3
num_leds: 24
rgb_order: BRG
name: "Schuhschrank LED Flur"
sensor:
- platform: adc
pin: A0
name: "Helligkeit Flur"
update_interval: 15s
filters:
- multiply: 3.3
```
### Anything in the logs that might be useful for us?
```txt
See above
```
### Additional information
My hotfix to use 2023.10 is to commentout all parts that belong to fastled, but then no LEDs ofc.
essayer:
esphome:dev
← nielsnl68:nvds-fastned-version
opened 11:19PM - 03 Jan 23 UTC
# What does this implement/fix?
This PR does 2 thinks, first of all it will… resolve the current issue (having warnings about the register attribute not used anymore and some other small warnings) with the current version of the FastLED library.
The other is moving the FastLed_clockless and FastLED_SPI together as one component.
## Types of changes
- [X] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [X] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Other
**Related issue or feature (if applicable):** fixes <link to issue>
**Pull request in [esphome-docs](https://github.com/esphome/esphome-docs) with documentation (if applicable):** esphome/esphome-docs#3148
## Test Environment
- [X] ESP32
- [ ] ESP32 IDF
- [X] ESP8266
- [ ] RP2040
## Example entry for `config.yaml`:
<!--
Supplying a configuration snippet, makes it easier for a maintainer to test
your PR. Furthermore, for new integrations, it gives an impression of how
the configuration would look like.
Note: Remove this section if this PR does not have an example entry.
-->
Please Note that instead using `platform: fastled_clockless` or 'platform: fastled_spi` you can now use platform: fastled` for both.
Also the old `pin` is renamed to `data_pin` for both situations.
```yaml
# Example config.yaml
external_components:
- source: github://pr#4257
components: [fastled]
refresh: always
light:
- platform: fastled
rgb_order: GRB
chipset: WS2812
pin: GPIO4
num_leds: 30
restore_mode: RESTORE_AND_OFF
name: "${device} NeoPixel Light"
#effect: colored_strobe
id: my_light
```
## Checklist:
- [x] The code change is tested and works locally.
- [x] Tests have been added to verify that the new code works (under `tests/` folder).
If user exposed functionality or configuration variables are added/changed:
- [x] Documentation added/updated in [esphome-docs](https://github.com/esphome/esphome-docs).