WeMos D1 Mini and Console Commands

615 views
Skip to first unread message

Joe Palazzolo

unread,
May 7, 2017, 9:08:56 PM5/7/17
to SonoffUsers
Greetings,
Just loaded TASMOTA on a WeMos D1 Mini (using platformio, so had to change platformio.io board from board = esp01_1m to board = d1_mini).  Using web interface, went into Configuration Menu / Configure Module and set GPIO2 to "25 Led1."  Now I'd like to use the web interface Main Menu / Console to change the state of the Led.  Can someone give me a clue as to what command to use?  I've tried all permutations of commands shown in the Wiki, but always get the dreaded RSLT: RESULT={"Command";"Unknown"}.  Anybody?

David Lang

unread,
May 7, 2017, 9:34:44 PM5/7/17
to Joe Palazzolo, SonoffUsers
changing the state of an LED would not be a seonsor command, but rather a LED
state command

On Sun, 7 May 2017, Joe Palazzolo wrote:

> Date: Sun, 7 May 2017 18:08:56 -0700 (PDT)
> From: Joe Palazzolo <joseph.m....@gmail.com>
> To: SonoffUsers <sonof...@googlegroups.com>
> Subject: WeMos D1 Mini and Console Commands
>
> Greetings,
> Just loaded TASMOTA on a WeMos D1 Mini (using platformio, so had to change
> platformio.io board from board = esp01_1m to board = d1_mini). Using web
> interface, went into Configuration Menu / Configure Module and set GPIO2 to
> "25 Led1." Now I'd like to use the web interface Main Menu / Console to
> change the state of the Led. Can someone give me a clue as to what command
> to use? I've tried all permutations of commands shown in the Wiki
> <https://github.com/arendst/Sonoff-Tasmota/wiki/Commands#sensor>, but

Joe Palazzolo

unread,
May 7, 2017, 9:49:45 PM5/7/17
to SonoffUsers, joseph.m....@gmail.com, da...@lang.hm
While you were typing I kept digging and found a clue in this old thread: Sonoff-Tasmota: GPIO14 - Wall switch.  Here's what I did to turn the onboard LED (GPIO2) off and on:

20:36:02 CMND: Ledstate
20:36:02 RSLT: RESULT = {"LedState":1}
20:36:54 CMND: LedPower
20:36:54 RSLT: RESULT = {"LedPower":"OFF"}
20:37:08 CMND: LedPower 1
20:37:08 RSLT: RESULT = {"LedPower":"ON"}
20:37:44 CMND: LedPower 0
20:37:44 RSLT: RESULT = {"LedPower":"OFF"}
(Note that on the WeMos D1, LedPower:OFF is the state where the LED is energized (glows))

If LedState were not already set to 1, I would have preceded the OFF/ON commands with an "LedState 1" command.

I'm loving this project!
Reply all
Reply to author
Forward
0 new messages