rol-rider wrote: ↑15 Feb 2021, 18:50
Code: Select all
On BP#BP=1 do
sendTo 31,event,lampecouloir
endon
this command works on an S26 socket (esp8266)
but not on ESP32 ?
It can depend on the version of ESPEasy, if that on your Sonoff S26 is dated before November 2019, the argument handling is revamped since then, so the older version will accept/pass on the extra command arguments but the newer version won't. (ESP32 has only been usable/stable since about a year.)
I made a slight mistake in my previous answer, your comma after 'event' is correct but the 2nd argument for 'sendto' needs quotes:
Code: Select all
On BP#BP=1 do
sendTo 31,"event,lampecouloir"
endon
The SendTo command takes 2 arguments, 1) a unit number and 2) the command to send. If that command involves comma's or spaces, it must be enclosed in quotes (either " ' or ` can be used, double-, single- or back-quotes)