Start a new topic

Proposed firmware change GPIO14

I would like to have a digital input on the Sonoff Basic.  I see a lot of people asking for a good way to interface a simple digital input to turn the device on and off with a switch or other make/break action.

Since GPIO14 is pulled high and exposed on the header this would make the perfect place to implement this feature and it would not affect the standard operation of the unit.  There are alternative firmwares that do this but I would like to use the stock firmware and the eWelink app.

When GPIO14 goes from high to low, turn the relay state on.

When GPIO14 goes from low to high turn the relay state off.

If the relay is already in the specified state, simply leave it alone.

We already have a momentary contact input with the stock push button switch.  This change would give us an input that would work with a toggle switch or a sensor that  provides a continuous high or low state.

In my case I want to use a simple photocell sensor that provides a digital 1 or 0 to switch the Sonoff and have a scene that turns a bunch of outdoor lights on.  In other words use one Sonoff as a master photocell switch.

15 people like this idea

This would be great, but could be that gpio14 just detect the change state, just like the bottom.

3 people like this
Hello E W Was this implemented in the firmware already? I would like to Keep the light switches around the house, and would prefer not to have to flash the firmware.

2 people like this

Hi - i am holding out and dont want to flash software. This is a simple code change that will not cost a cent to do. We dont want to flash, but need to use the devices when WIFI goes down in manual mode with the actual SONOFF basic siting in an enclosure.

1 person likes this

As far as I know this suggestion went in ITEAD's bit bucket along with my simple request that eWeLink app show us the MAC address of each device in the info to make it easier to identify in a router's connection list.

A couple of simple, zero cost programming changes that would improve the product and in the case of the MAC address request, put it on par with other manufacturers apps.

1 person likes this

i have actually logged a ticket now. please do the same. no one is paying attention to the forum...

Do you have an update on this ticket? New firmware is out. Do you know if integrated this change?

At least the new version of the App shows the MAC address under settings.  No word on GPIO14.

i have to take a look...dont think GPio14 has been integrated

Please, an entry (GPIO14) that detects current yes or no. And be able to program based on that. Multiple uses: toggle switch, light sensor, movement, pir, flood ...Wonderful

1 person likes this

Would be awesome to have this feature added!

1 person likes this

Looking forward to this too :(
Sonoff MINI is perfect device for lights allowing you to control lights with a phone and a wall switch at the same time. I need GPIOs to be usable for ALL Sonoff producs with default FW. For example, I could use SONOFF RE5V1C module to detect if my door magnetic switch is on or off or water level is low on my flower. We could have many other sensors integrated with sonnof lie sound sensor or Motion Sensors. 

1 person likes this

Same idea here, if they make the Sonoff Mini firmware available for the new RE5V1C or even the SV that will be enoughm to use the additional GPIO as a switch with all its variations (momentray, change status, etc). It also will make it posssible to integrate the Sonoff RF receiver to make them RF capable.

Hi all, I am a newbee.

I just bought a sonoff basic R2, and i like to connect with a switch wall is that possible? thanks. 

Thunderstorm, you are asking this on the wrong place but will answer your question. Sonoff basic is a wifi relay only without inputs. Sonoff Mini is what you need. Google this. 

2 people like this
Login or Signup to post a comment