Skip to content
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

Auto disable WiFi #4330

Closed
tty74it opened this issue Nov 11, 2018 · 21 comments
Closed

Auto disable WiFi #4330

tty74it opened this issue Nov 11, 2018 · 21 comments
Labels
requested feature (hold over) Result - Feature that will not be added soon (out of scope)

Comments

@tty74it
Copy link

tty74it commented Nov 11, 2018

Have you look for this feature in other issues and in the wiki?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

(Please, remember to close the issue when the problem has been addressed)

@tty74it
Copy link
Author

tty74it commented Nov 11, 2018

It would be useful to turn off the wifi in the t1 touch sonoffs installed in the bedroom near the head of the bed, so that during the night you avoid having additional wifi waves, of course maintaining the functionality of the switch. As soon as the button is pressed, the wifi is re-locked and then automatically disabled.
like this project:
https://github.com/omersiar/esp-rfid
https://bitadvise.com/esp-rfid/

Thank's
Tty74it

@tty74it tty74it closed this as completed Nov 11, 2018
@tty74it tty74it reopened this Nov 11, 2018
@ascillato
Copy link
Contributor

ascillato commented Nov 11, 2018

Hi,

It is not good to have a wifi source over the head. I agree. Your device needs to be installed in another place.

But also, turning off the wifi of your smart device make it not a home automation device. That is out of the scope of Tasmota. Sorry. Please see readme for more information.

@ascillato2 ascillato2 added the requested feature (hold over) Result - Feature that will not be added soon (out of scope) label Nov 12, 2018
@ascillato2
Copy link
Collaborator

Closing this issue as it has been answered.

Support Information

See Wiki for more information.
See Chat for more user experience.

@ascillato
Copy link
Contributor

Another thing you can try. Besides changing the place of your device, is to set wificonfig to 5 and when you don't want your device to use wifi just turn off your wifi router.

With that configuration, if there is no wifi, your sonoff will be looking for a wifi signal but will not transmit anything. As soon as your wifi router is turned on, your device will connect again.

@tty74it
Copy link
Author

tty74it commented Nov 12, 2018

Thanks for the reply. I am aware that having a device without wifi is not a home automation device, but the fact that I have replaced all the home switches with t1 and to have a uniform appearance I also needed two switches near the bed. My idea was that when I press the button the wifi turns on, sends a mqtt switch to another relay. Then once done, the wifi can be switched off. The same thing to make the doorbell ring sound from the bed.
This sonoff t1 only serves as a button and I would not connect anything to the relays.
I hope I was clear
Thanks again for the suggestions

@ascillato
Copy link
Contributor

Yes, understood.

I think you need another type of hardware for what you want or another type of switches. Wifi signals close to your head is not good.

One idea could be to have a normal switch (or a capacitive one if you like) close to your bed but wired up to your roof light (far from your head), and in that place, put a sonoff basic, or a shelly, or a nodemcu connected to your switches. And that device can have Tasmota and wifi.

Remember, if you want, you can turn off your router and all your wifi devices will stop transmitting.

Also, you can see #1805 and #3609

If you have further questions or ideas, please do not hesistate on asking here or in the Tasmota chat. Thanks

@tty74it
Copy link
Author

tty74it commented Nov 12, 2018

Or using a RF433 battery powered wall switch, and sonoff rf bridge. My problem is find a similar touch t1. But modem sleep can be considered?

Thank's
tty74it

@ascillato
Copy link
Contributor

ascillato commented Nov 13, 2018

Or using a RF433 battery powered wall switch, and sonoff rf bridge.

Excellent idea.

But modem sleep can be considered?

Modem sleep is already implemented in Tasmota if it is compiled using core 2.3.0 (the actual precompiled bins) or the actual arduino stage core. (sleep is not enabled for core 2.4.0, 2.4.1, 2.4.2 - those core hungs with sleep)

But modem sleep is the light_modem_sleep that will put the cpu to sleep (less power) for up to 3 DTIM and then it will wake up for receiving and transmitting from the router. So, the sleep feature just reduce the CPU energy consumption, but the wifi signals will stay there.

If you set sleep to 1 (using command sleep in the console), your Tasmota device will use less energy to work and all the functions will work fine. If you increase that value up to 200 ms for example, all functions will work, but you will notice a delay in response when pressing any button.

@tty74it
Copy link
Author

tty74it commented Nov 13, 2018

I was thinking about it, but because it would not be useful to have the possibility of having an autodisable wifi after x seconds after launching a mqtt command. If you think of a device sonoff t1 that acts only as a button to turn on remote relays in toggle mode. It would work similarly to an RF433 remote control. If you need to change the configuration of the sonoff t1, it would be enough to increase the autodisable time to 5 minutes and you would have all the time to configure it. Each time you press the toggle button the wifi will turn on anyway for 5 minutes.

Thanks again for your patience

Greetings
tty74

@arendst
Copy link
Owner

arendst commented Nov 13, 2018

So you seriously want a switch that once toggled has to re-connect wifi taking at least 5 seconds and then performs the action you want. That means it has to store these actions and execute once connected. That's a whole new ballpark.

Why not buy these https://www.itead.cc/smart-home/t433-sticky-rf-remote.html and have a bridge somewhere to execute your requests.

@tty74it
Copy link
Author

tty74it commented Nov 13, 2018

I had not calculated the connection times of the wifi at least 5 sec.

Ok i try to buy it

Thank's
tty74

@palto42
Copy link

palto42 commented Aug 1, 2019

I would also be interested in this feature, mainly to safe power if WiFi is not required.
With the great integration of RF433 transmitter/receiver there would still be a way for remote control (using less power). The other main advantage of Tasmota w/o WiFi compared to dumb remote are the advanced features Tasmota supports, e.g. rule based actions or autonomous time based switching.

@ascillato
Copy link
Contributor

Now it is available the command WIFI to turn ON and OFF the wifi from the Tasmota Console. Please, use latest development version.

@LuckyTurtleDev
Copy link

It is possible to turn WiFi automaticlly on again? As Example at a specific time or after x hour?

@ascillato
Copy link
Contributor

Yes, by the use of rules and the new command. Please check the docs for more information about rules. If you need further assistant on that, please address this to the Tasmota support chat. Thanks.

@LuckyTurtleDev
Copy link

Thanks you too

@jd710313
Copy link

Now it is available the command WIFI to turn ON and OFF the wifi from the Tasmota Console. Please, use latest development version.

Thanks, but I have flashed the latest development version (9.3.1.1) using Tasmotizer and choosing the development release, but the console says "{"Command":"Unknown"}" if I try and use the WIFI command?

@ruzickav
Copy link

ruzickav commented Apr 1, 2021

Now it is available the command WIFI to turn ON and OFF the wifi from the Tasmota Console. Please, use latest development version.

Thanks, but I have flashed the latest development version (9.3.1.1) using Tasmotizer and choosing the development release, but the console says "{"Command":"Unknown"}" if I try and use the WIFI command?

Same there - no idea how to use "wifi" command. Nothing in documentation...

@DerDom
Copy link

DerDom commented Jan 13, 2022

I would be interested in the feature to reduce WIFI signals during the night. Did someone find the documentation or could provide it here?

@barbudor
Copy link
Contributor

Have you read Wifi command ?
However be ready to have Tasmota working erraticaly without Wifi

@ascillato
Copy link
Contributor

Hi, it is documented in the Tasmota Oficial Docs.

Please go to: https://tasmota.github.io/docs/Commands/#wi-fi

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requested feature (hold over) Result - Feature that will not be added soon (out of scope)
Projects
None yet
Development

No branches or pull requests

10 participants