esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

FastLED compilation warning #3926

Open Murianwind opened 1 year ago

Murianwind commented 1 year ago

The problem

When compiling, a warning message related to FastLED is displayed.

Compilation does not fail, but I do not want a warning message to be output.

Which version of ESPHome has the issue?

2022.12.1

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

Home Assistant 2022.12.6

What platform are you using?

ESP32

Board

No response

Component causing the issue

FastLED

Example YAML snippet

substitutions:
  node_name: particulate-matter  # 수정! node 이름(ESPHOME 상의 이름)
  device_name: particulate-matter  # 수정! 제품명

esphome:
  name: ${node_name}
  on_boot:
    then:
      - light.turn_on:
          id: light_1
          effect: rainbow
          brightness: 30%
      - delay : 10s
      - light.turn_off:
          id: light_1

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "*****"

ota:
  password: !secret ota_pwd

wifi:
  ssid: !secret main_ap_ssid
  password: !secret main_ap_pwd  #수정! 와이파이 비밀번호
  fast_connect: on
  ap:
    ssid: "particulate matter"
    password: !secret fallback_ap_pwd

captive_portal:

preferences: 
  flash_write_interval: 60min

time:
  - platform: sntp
    id: sntp_time
    timezone: UTC-9
    servers:
      - time.windows.com
      - 0.pool.ntp.org
      - 1.pool.ntp.org

bluetooth_proxy:

esp32_ble_tracker:
  scan_parameters:
    duration: 10s
    active: false

uart:
  - id: uart_a
    rx_pin: 16
    tx_pin: 17
    baud_rate: 9600

  - id: uart_b
    rx_pin: 19
    tx_pin: 18
    baud_rate: 9600

light:
  - platform: fastled_clockless
    chipset: SK6812
    pin: GPIO14
    num_leds: 4
    rgb_order: BRG
    id: light_1
    name: "Sensor Lamp"
    effects:
      - addressable_color_wipe:
      - strobe:
      - flicker:
      - addressable_rainbow:
      - addressable_scan:
      - addressable_twinkle:
      - addressable_random_twinkle:
      - addressable_fireworks:
      - addressable_flicker:

Anything in the logs that might be useful for us?

In file included from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h:95,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms.h:36,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:31,
                 from src/main.cpp:3:
/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]
 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead
  ^~~~~~~
In file included from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms.h:36,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:31,
                 from src/main.cpp:3:
/data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h: In member function 'void ClocklessController<DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::startOnChannel(int)':
/data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:52: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations]
         rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);
                                                    ^
In file included from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms.h:36,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:31,
                 from src/main.cpp:3:
/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here
 esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num)
           ^~~~~~~~~~~
In file included from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms.h:36,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:31,
                 from src/main.cpp:3:
/data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h: In instantiation of 'void ClocklessController<DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::startOnChannel(int) [with int DATA_PIN = 14; int T1 = 72; int T2 = 72; int T3 = 144; EOrder RGB_ORDER = (EOrder)129; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 5]':
/data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h:381:26:   required from 'static void ClocklessController<DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::startNext(int) [with int DATA_PIN = 14; int T1 = 72; int T2 = 72; int T3 = 144; EOrder RGB_ORDER = (EOrder)129; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 5]'
/data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h:312:26:   required from 'void ClocklessController<DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::showPixels(PixelController<RGB_ORDER>&) [with int DATA_PIN = 14; int T1 = 72; int T2 = 72; int T3 = 144; EOrder RGB_ORDER = (EOrder)129; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 5]'
/data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h:283:18:   required from here
/data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:20: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations]
         rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);
         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms.h:36,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:31,
                 from src/main.cpp:3:
/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here
 esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num)
           ^~~~~~~~~~~
In file included from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms.h:36,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:31,
                 from src/main.cpp:3:
/data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:20: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations]
         rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);
         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms.h:36,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:31,
                 from src/main.cpp:3:
/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here
 esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num)
           ^~~~~~~~~~~
In file included from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms.h:36,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:31,
                 from src/main.cpp:3:
/data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:20: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations]
         rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);
         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms.h:36,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:31,
                 from src/main.cpp:3:
/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here
 esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num)
           ^~~~~~~~~~~
In file included from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms.h:36,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:31,
                 from src/main.cpp:3:
/data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:20: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations]
         rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);
         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/platforms.h:36,
                 from /data/particulate-matter/.piolibdeps/particulate-matter/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:31,
                 from src/main.cpp:3:
/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here
 esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num)
           ^~~~~~~~~~~

Additional information

No response

Olen commented 1 year ago

Have the same, and it seems like controlling the leds from HA does not work either.

Nevermind. Light startet working again after another flash+reboot. But the compiler warnings are still there, obviously.

esp32:
  board: m5stack-atom
  framework:
    type: arduino
TiganSan commented 1 year ago

I just start having this same issue while compiling for m5stack-atom after I upgraded the ESPHOME to version v2022.12.1 Home Assistant 2022.12.6 Supervisor 2022.11.2 Operating System 9.4 Frontend 20221213.0 - latest

Aviatorpaal commented 1 year ago

I can confirm the same warnings appearing in my logs. No config change except updated libraries.

Compile log excerpt ``` |-- FastLED @ 3.3.2 Compiling /data/doorphone/.pioenvs/doorphone/src/main.cpp.o In file included from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h:95, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/fastled_esp32.h:8, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms.h:36, from /data/doorphone/.piolibdeps/doorphone/FastLED/FastLED.h:52, from src/esphome/components/fastled_base/fastled_light.h:16, from src/esphome.h:20, from src/main.cpp:3: /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp] #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead ^~~~~~~ In file included from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/fastled_esp32.h:8, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms.h:36, from /data/doorphone/.piolibdeps/doorphone/FastLED/FastLED.h:52, from src/esphome/components/fastled_base/fastled_light.h:16, from src/esphome.h:20, from src/main.cpp:3: /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h: In member function 'void ClocklessController::startOnChannel(int)': /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:52: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations] rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin); ^ In file included from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/fastled_esp32.h:8, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms.h:36, from /data/doorphone/.piolibdeps/doorphone/FastLED/FastLED.h:52, from src/esphome/components/fastled_base/fastled_light.h:16, from src/esphome.h:20, from src/main.cpp:3: /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num) ^~~~~~~~~~~ In file included from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/fastled_esp32.h:8, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms.h:36, from /data/doorphone/.piolibdeps/doorphone/FastLED/FastLED.h:52, from src/esphome/components/fastled_base/fastled_light.h:16, from src/esphome.h:20, from src/main.cpp:3: /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h: In instantiation of 'void ClocklessController::startOnChannel(int) [with int DATA_PIN = 27; int T1 = 60; int T2 = 150; int T3 = 90; EOrder RGB_ORDER = (EOrder)66; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 5]': /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h:381:26: required from 'static void ClocklessController::startNext(int) [with int DATA_PIN = 27; int T1 = 60; int T2 = 150; int T3 = 90; EOrder RGB_ORDER = (EOrder)66; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 5]' /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h:312:26: required from 'void ClocklessController::showPixels(PixelController&) [with int DATA_PIN = 27; int T1 = 60; int T2 = 150; int T3 = 90; EOrder RGB_ORDER = (EOrder)66; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 5]' /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h:283:18: required from here /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:20: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations] rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin); ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/fastled_esp32.h:8, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms.h:36, from /data/doorphone/.piolibdeps/doorphone/FastLED/FastLED.h:52, from src/esphome/components/fastled_base/fastled_light.h:16, from src/esphome.h:20, from src/main.cpp:3: /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num) ^~~~~~~~~~~ In file included from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/fastled_esp32.h:8, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms.h:36, from /data/doorphone/.piolibdeps/doorphone/FastLED/FastLED.h:52, from src/esphome/components/fastled_base/fastled_light.h:16, from src/esphome.h:20, from src/main.cpp:3: /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:20: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations] rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin); ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/fastled_esp32.h:8, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms.h:36, from /data/doorphone/.piolibdeps/doorphone/FastLED/FastLED.h:52, from src/esphome/components/fastled_base/fastled_light.h:16, from src/esphome.h:20, from src/main.cpp:3: /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num) ^~~~~~~~~~~ In file included from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/fastled_esp32.h:8, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms.h:36, from /data/doorphone/.piolibdeps/doorphone/FastLED/FastLED.h:52, from src/esphome/components/fastled_base/fastled_light.h:16, from src/esphome.h:20, from src/main.cpp:3: /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:20: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations] rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin); ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/fastled_esp32.h:8, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms.h:36, from /data/doorphone/.piolibdeps/doorphone/FastLED/FastLED.h:52, from src/esphome/components/fastled_base/fastled_light.h:16, from src/esphome.h:20, from src/main.cpp:3: /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num) ^~~~~~~~~~~ In file included from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/fastled_esp32.h:8, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms.h:36, from /data/doorphone/.piolibdeps/doorphone/FastLED/FastLED.h:52, from src/esphome/components/fastled_base/fastled_light.h:16, from src/esphome.h:20, from src/main.cpp:3: /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:20: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations] rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin); ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms/esp/32/fastled_esp32.h:8, from /data/doorphone/.piolibdeps/doorphone/FastLED/platforms.h:36, from /data/doorphone/.piolibdeps/doorphone/FastLED/FastLED.h:52, from src/esphome/components/fastled_base/fastled_light.h:16, from src/esphome.h:20, from src/main.cpp:3: /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num) ^~~~~~~~~~~ Linking /data/doorphone/.pioenvs/doorphone/firmware.elf RAM: [= ] 12.3% (used 40268 bytes from 327680 bytes) Flash: [===== ] 47.7% (used 874845 bytes from 1835008 bytes) Building /data/doorphone/.pioenvs/doorphone/firmware.bin Creating esp32 image... Successfully created esp32 image. esp32_create_combined_bin(["/data/doorphone/.pioenvs/doorphone/firmware.bin"], ["/data/doorphone/.pioenvs/doorphone/firmware.elf"]) Wrote 0xe6ff0 bytes to file /data/doorphone/.pioenvs/doorphone/firmware-factory.bin, ready to flash to offset 0x0 ```
joshcliffejones commented 1 year ago

I get the same warnings after just performing an update to the device.

INFO Reading configuration /config/esphome/desk-gadget.yaml...
INFO Detected timezone 'Europe/London'
INFO Generating C++ source...
INFO Compiling app...
Processing desk-gadget (board: esp-wrover-kit; framework: arduino; platform: platformio/espressif32 @ 5.2.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 2.1.0
|   |-- AsyncTCP-esphome @ 1.2.2
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- Wire @ 2.0.0
|-- FastLED @ 3.3.2
Compiling /data/desk-gadget/.pioenvs/desk-gadget/src/main.cpp.o
In file included from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h:95,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms.h:36,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:33,
                 from src/main.cpp:3:
/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]
 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead
  ^~~~~~~
In file included from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms.h:36,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:33,
                 from src/main.cpp:3:
/data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h: In member function 'void ClocklessController<DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::startOnChannel(int)':
/data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:52: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations]
         rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);
                                                    ^
In file included from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms.h:36,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:33,
                 from src/main.cpp:3:
/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here
 esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num)
           ^~~~~~~~~~~
In file included from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms.h:36,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:33,
                 from src/main.cpp:3:
/data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h: In instantiation of 'void ClocklessController<DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::startOnChannel(int) [with int DATA_PIN = 32; int T1 = 77; int T2 = 77; int T3 = 154; EOrder RGB_ORDER = (EOrder)66; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 5]':
/data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h:381:26:   required from 'static void ClocklessController<DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::startNext(int) [with int DATA_PIN = 32; int T1 = 77; int T2 = 77; int T3 = 154; EOrder RGB_ORDER = (EOrder)66; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 5]'
/data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h:312:26:   required from 'void ClocklessController<DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::showPixels(PixelController<RGB_ORDER>&) [with int DATA_PIN = 32; int T1 = 77; int T2 = 77; int T3 = 154; EOrder RGB_ORDER = (EOrder)66; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 5]'
/data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h:283:18:   required from here
/data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:20: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations]
         rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);
         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms.h:36,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:33,
                 from src/main.cpp:3:
/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here
 esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num)
           ^~~~~~~~~~~
In file included from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms.h:36,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:33,
                 from src/main.cpp:3:
/data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:20: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations]
         rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);
         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms.h:36,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:33,
                 from src/main.cpp:3:
/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here
 esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num)
           ^~~~~~~~~~~
In file included from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms.h:36,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:33,
                 from src/main.cpp:3:
/data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:20: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations]
         rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);
         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms.h:36,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:33,
                 from src/main.cpp:3:
/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here
 esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num)
           ^~~~~~~~~~~
In file included from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms.h:36,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:33,
                 from src/main.cpp:3:
/data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h:399:20: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations]
         rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);
         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/clockless_rmt_esp32.h:97,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms/esp/32/fastled_esp32.h:8,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/platforms.h:36,
                 from /data/desk-gadget/.piolibdeps/desk-gadget/FastLED/FastLED.h:52,
                 from src/esphome/components/fastled_base/fastled_light.h:16,
                 from src/esphome.h:33,
                 from src/main.cpp:3:
/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/rmt.h:930:11: note: declared here
 esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num)
ssieb commented 1 year ago

This is not a problem with esphome, it's a problem in a library that we don't control. It will probably go away with a newer version of fastled, but until then, there's nothing we can do.

nielsnl68 commented 1 year ago

There is possible a fix for esphome because espHome is using an older version of FastLed (v3.3.2) while the latest version of FastLed is v3.5.0.

Sadly it works a bit different then the v3.3.2

nielsnl68 commented 1 year ago

duplicate of #3906

Aviatorpaal commented 1 year ago

Would it be possible to allow the user to switch to the new version of FastLED using an argument or specifying "fastled35" since they are not compatible?

lux4rd0 commented 1 year ago

I snuck into this today as well. I pulled whatever version of esphome I had from a few months ago to do a restore and pushed out new firmware to my esp device. It compiled FastLED without issue. I think it was 2022.10.2. I tend to click upgrade and go. I'll now spend more time playing with a DEV version to check before upgrading my prod instance.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

deosrc commented 1 year ago

Still an issue I believe

baylf2000 commented 1 year ago

Still having this issue today myself.

bcGITster commented 1 year ago

Confirmed, still an issue. current stable home assistant add-on and esphome as of 6/22/2023.

Considering home assistant is promoting using the atom on the front page of the website in the current release notes tutorial as a push-to-talk button, it might be worth fixing this. that's how i discovered the issue. (doesn't seem to cause a functional problem, but makes it very hard for newbies following the tutorial to diagnose problems)

oh! unless there's a better way to do this??? not FastLED??? Again, if the whole point of esphome is to allow people to connect devices without writing firmware, this is a very confusing... I had an easier time using the arduino tools and the mqtt library to connect the atom than understanding what I'm supposed to type into esphome to do the same thing???? I know that's my own shortcoming, but again, if the whole point of esphome is to make it easy, then writing Arduino code shouldn't be the easier option. this appears to be mostly a documentation issue.

krypton988 commented 10 months ago

Still having the problem today.

ssieb commented 10 months ago

Use the RMT addressable LED component instead. It doesn't rely on third-party libraries.

krypton988 commented 10 months ago

Thank you a lot for your advice.I will try it as soon as possible.Best wishesBruno CDLe 23 oct. 2023 à 22:09, Samuel Sieb @.***> a écrit : Use the RMT addressable LED component instead. It doesn't rely on third-party libraries.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

lux4rd0 commented 10 months ago

So far this is working well for me! Just switched my 4 LED strip project:

From:

  - platform: fastled_clockless
    rgb_order: GRB
    chipset: WS2812B
    pin: GPIO17
    num_leds: 25
    name: '${devicename} Light 3'
    id: '${devicename}_light_3'
    restore_mode: RESTORE_DEFAULT_OFF

To:

  - platform: esp32_rmt_led_strip
    rgb_order: GRB
    rmt_channel: 2
    chipset: WS2812
    pin: GPIO17
    num_leds: 25
    name: '${devicename} Light 3'
    id: '${devicename}_light_3'
    restore_mode: RESTORE_DEFAULT_OFF
zachsteffens commented 9 months ago

So far this is working well for me! Just switched my 4 LED strip project:

From:

  - platform: fastled_clockless
    rgb_order: GRB
    chipset: WS2812B
    pin: GPIO17
    num_leds: 25
    name: '${devicename} Light 3'
    id: '${devicename}_light_3'
    restore_mode: RESTORE_DEFAULT_OFF

To:

  - platform: esp32_rmt_led_strip
    rgb_order: GRB
    rmt_channel: 2
    chipset: WS2812
    pin: GPIO17
    num_leds: 25
    name: '${devicename} Light 3'
    id: '${devicename}_light_3'
    restore_mode: RESTORE_DEFAULT_OFF

This isn't a viable solution for ws2812B (not supported by rmt_led_strip)

michelgre commented 7 months ago

Hello Sorry if my comment is irrelevant, or wrong in any way, I am quite new here.

I still have these warning in 2024. This warning problem is not present with the current version of FastLed (3.6.0), when I build a project independently of ESPHome / fastled component.

As I can see, the version of FastLED used by the fastled component was reversed to 3.3.2 due to a bug in version 3.3.3 (issue 1375). However, in my independent project, I didn't see any problem with version 3.6.0 running on an ESP-WROOM-32 board. So maybe it is time to upgrade the component ? However I can test only with my specific hardware, I cannot check in the same environment as those who got the issue 1375. Thank you.