-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sonoff Touch: how to change the LED behaviour? #214
Comments
Problem is the sensor light? |
I think this could be done just be changing the template in sonoff/sonoff_template.h from To This should invert the LED behaviour from how it normally works (note I haven't tested this). |
@arendst I know you don't have much space left - its a pity as otherwise we could have an "admin" or "advanced" mode that allows re-configuration of the non "user" programmable pins in the web ui / mqtt commands. |
On Thu, 16 Mar 2017, khcnz wrote:
@arendst I know you don't have much space left - its a pity as otherwise we could have an "admin" or "advanced" mode that allows re-configuration of the non "user" programmable pins in the web ui / mqtt commands.
we are getting closer to that. A lot of the things that are now able to be set
with GPIO_USER were compile-time only a week or two ago.
|
I have only been around since v4.0, so I just a fresh chicken. You guys have probably been thinking about this for sometime. Anyway a great platform - if you do have anything like this you could use some grunt work for I am happy to lend a hand, pretty sure I will be using the sonoff's everywhere in my home automation project so only right to give back since I am capable of. |
aremdst has been accepting to pull requests, so go ahead and look over the code
and submit improvements that you spot.
If you want to see places to start, look over the issues for enhancement
requests and see if anyof them are something you can work on.
k
|
Yup I have sent him though a couple already - just don't want to double up on work he may already have mapped out in his mind! |
to be clear, the enhancement is to have an 'admin mode' that includes all the GPIO functions and all the GPIOs, not just the GPIO_USER ones |
@arendst how do you feel about such an admin mode? I could start it out just as an undocumented command - happy to send through a PR if its a direction you support? |
@khcnz I prefer an extension to ledstate command. I want to keep the fixed Gpio fixed. They can use the wemos module to play around. |
Good point - this could be achieved with LedState "Power State Inverted", I also wanted to add "On Always" as a selectable mode - as a way to indicate the unit is running / has power |
There is already an always on command for the led called ledpower on/off. |
Ahh you are right (of course!) I had missed those somehow (I think my only justification is that LEDPOWER is not defined in the user_config). Would it make sense to combine those two options into ledstate? Already Ledstate 0 and ledpower 0 overlap? |
Changed the code to turn led on if power is off for Sonoff Touch only in next release. |
5.0.3 20170504 * Add command SensorRetain on|off to enable retaining of mqtt message tele/sonoff/SENSOR (#74) * Change WifiConfig timeout from 60 seconds to 180 seconds (#212) * Change Sonoff Touch command Ledstate functionality by turning led on if power is off (#214) * Add 4 seconds delay after power on before enabling button to workaround Wemos D1 mini RTS circuit (#380)
Is there any way of changing the led_inv1 to be on all the time or at least when it is connected to WIFI? |
I make another programm for termo relay, and working fine with temperatures
without wi-fi network.
Only if you changing, the temp.you need to connect ti devices.
2017. gada 26. okt. 8:28 AM, "Kieren" <notifications@github.com> rakstīja:
… Is there any way of changing the led_inv1 to be on all the time or at
least when it is connected to WIFI?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#214 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AY1zIU1CFDZA7c6m53PSHXjizDU7sueeks5swBiEgaJpZM4Mf6Cp>
.
|
Running now with 5.9.1 |
Hey @arendst, I have a T1 (which is basically the same as the Touch?) and I'd like to have the same inverted LED functionality. You should probably add this device to that (77da1df#diff-9a0587e9aa7bed7ae2df63479960e7e0R2091) check as well. I already installed my device, so is there a way to change that functionality remotely or rebuild the code locally and flash it remotely? |
I figured the master branch has the change (https://github.com/arendst/Sonoff-Tasmota/blob/master/sonoff/sonoff.ino#L2210). How can I invert the behavior? |
I dont understand if there is about only small blue LED or about Circles which are in touch places. I need to change behaviour of theese two beckgraound lights... is it possible ? Have T1 2CH EU. |
@Mathyass that's right, I wasn't clear about which lights I'm talking about. I still didn't find a way to invert the behaviour of the touch button lights so that they are ON if they are off and OFF if they are on. That way you could find them better when it's dark. |
You can't simply because the led is hardwired to the relay. |
Maybe add new smd LED and connect it somwhere but it wants someone who say where :-) |
@arendst if I do that, I can get the the circle dots led on when switch is off? (the led I want on is the circle dots, not wifi circle): Lines 388-389: Model: Sonoff Touch @jdpiguet you did it before, and it works? or no? Thanks :) |
And how to put LED always ON? |
Ok, but we need to make offline working, if no internet.
Ar Cieņu,
Rūdolfs Jozuus
Tel. +37129454993; 22062201
Aventes@inbox.lv
Mathyass <notifications@github.com> (šajā datumā: Ce, 2018. g. 26. apr.
16:46) rakstīja:
… Maybe add new smd LED and connect it somwhere but it wants someone who say
where :-)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#214 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AY1zIbpF3oqtq8GpvqpKQWoFu1o2pLT1ks5tsc-mgaJpZM4Mf6Cp>
.
|
What I want to know is if I can get the circle dots led on when switch is off? (the led I want on is the circle dots, not wifi circle), when switch is off. @jdpiguet told if you edit the flashing code, it is possible. I just want to confirm. Because I seen somewhere that the led just can be on when relay is on.... |
As @arendst said: the LED is hardwired to the relay. In my case I'm using only the "switch", not the relay. |
Oh ok. So to make it work (circle dots led on while switch is off), i need to change the line and add an external relay? :( @jdpiguet |
Hi, This issue seems to be addressed. Closing. Please, reopen if necessary. |
5.0.3 20170504 * Add command SensorRetain on|off to enable retaining of mqtt message tele/sonoff/SENSOR (arendst#74) * Change WifiConfig timeout from 60 seconds to 180 seconds (arendst#212) * Change Sonoff Touch command Ledstate functionality by turning led on if power is off (arendst#214) * Add 4 seconds delay after power on before enabling button to workaround Wemos D1 mini RTS circuit (arendst#380)
Hi everybody,
On a Sonoff Touch, I would like to have the LED (or the sensor light) be in opposite of the relay:
Does anybody knows how to do it?
Regards, Jacques-D.
The text was updated successfully, but these errors were encountered: