evgeni / esphome-configs

39 stars 13 forks source link

Somfy stop no longer working #27

Closed bezigebever closed 1 year ago

bezigebever commented 1 year ago

I am using the latest version of ESPhome and get following error during compilation

Compiling /data/esp-zonnetent/.pioenvs/esp-zonnetent/lib984/Somfy_Remote_Lib/SomfyRemote.cpp.o
/config/esphome/esp-zonnetent.yaml: In lambda function:
/config/esphome/esp-zonnetent.yaml:43:37: warning: 'void esphome::cover::Cover::stop()' is deprecated: stop() is deprecated, use make_call().set_command_stop().perform() instead. [-Wdeprecated-declarations]
           ((SomfyESPCover*)id(somfy))->stop();
                                     ^
In file included from src/esphome/core/controller.h:14,
                 from src/esphome/components/api/api_server.h:4,
                 from src/esphome/components/api/api_connection.h:6,
                 from src/esphome.h:3,
                 from src/main.cpp:3:
src/esphome/components/cover/cover.h:146:8: note: declared here
   void stop();
        ^~~~

Since the, only up/down is working.

evgeni commented 1 year ago

Please pull the latest changes, this was recently fixed.

bezigebever commented 1 year ago

Working fine. Many thanks !