Configure LED Sonoff T1

994 views
Skip to first unread message

CraigDubya

unread,
Jun 4, 2018, 11:41:13 AM6/4/18
to SonoffUsers
I have a Sonoff T1 flashed with Tasmota and can access it via the web interface.

Is there a configuration option within the web interface so that I can invert the behaviour of the LED so that when the relay (and light) is ON, the LED is OFF. 
I know I can invert this in  sonoff/sonoff_template.h but I was hoping I could do this without having to re-flash the device.

I have also found the option to upgrade the firmware using file upload. Can I use the Arduino IDE to export the compiled binary (with the above mentioned modification to sonoff_template.h) and then use that file to upload via the web interface?

Don Stefano

unread,
Jun 4, 2018, 1:48:26 PM6/4/18
to SonoffUsers
Yes, you can control the behavior of the LED via the LEDSTATE Command. Try finding it out yourself with the help of the Tasmota Command Description at https://github.com/arendst/Sonoff-Tasmota/wiki/Commands.
Yes, you can also do that. Just grab the file the Arduino IDE creates during compilation and upload it to your Sonoff device. It might be necessary to create and upload a minimal.bin first because of memory constraints.

CraigDubya

unread,
Jun 4, 2018, 3:26:23 PM6/4/18
to SonoffUsers
Hi,

Thanks for the info ;)

 I found the commands for LedState, and have tried them out. Unfortunately this appears to be controlling the Wi-Fi LED rather than the button LEDs.

CraigDubya

unread,
Jun 4, 2018, 3:59:24 PM6/4/18
to SonoffUsers
I found a work around for my situation.

I am only using the switches as MQTT switches to control my Phillips Hue lighting system, the actual relays are not being used. This allows me to reverse my logic in the openhab rules so that when the relay is ON, the button LED is ON but the light is OFF.
Reply all
Reply to author
Forward
0 new messages