libretiny icon indicating copy to clipboard operation
libretiny copied to clipboard

delay notworking

Open mario-almeida opened this issue 3 years ago • 0 comments

Esphome - Delay

esphome scripts config:

id: script_id
then:
  - delay: 500ms
  ...

Error while compiling

../my-config/devices/../components/sensors/countdown_relay.yaml: In function 'void setup()': ../my-config/devices/../components/sensors/countdown_relay.yaml:584:16: error: 'class esphome::DelayAction<>' has no member named 'set_delay' In file included from src/esphome.h:103:0, from src/main.cpp:3: src/esphome/core/base_automation.h: In instantiation of 'void esphome::DelayAction<Ts>::play_complex(Ts ...) [with Ts = {}]': ../my-config/devices/../components/sensors/reactive_power.yaml:21:1: required from here src/esphome/core/base_automation.h:119:5: error: 'class esphome::DelayAction<>' has no member named 'delay_' this->set_timeout(this->delay_.value(x...), f); ^ *** [.pioenvs/workshop-4/src/main.cpp.o] Error 1

mario-almeida avatar Sep 16 '22 20:09 mario-almeida