• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Updated Sonoff Remote and flashed Sonoff basic switch

Q&A Forum › Updated Sonoff Remote and flashed Sonoff basic switch
0 Vote Up Vote Down
merkelck asked 6 years ago
1 Answers
0 Vote Up Vote Down
merkelck answered 6 years ago

Rui, After a couple of months medical recovery, I finally to continue work on my remote project for the sonoff switches.

I updated the remote to no only send (publish) but also to receive (subscribe) a reply from the switch that it actually operated. The images of that unit are here and I apologize for the poor photos of the leds while they are turned on.

https://imgur.com/a/jq75eqE

pastebin.com/UdKmrM9E

The code for the modified switch

https://pastebin.com/8jpJaVUg

I hope the images and code worked as I don’t use this system very often.

I have another question regarding the sonoff switch. As they come out of the box and connected to the company cloud, the push button can be used to make the switch turn on and off manually.

I would like to add that feature to my existing code so that I can mount the switch inside a utility box and put a pushbutton on a wall plate to control the switch as well as with the wifi connection.

I have built a motion sensor based on your motion/LDR/temp unit but I am only using a radar detector instead of the PIR device. The radar device seems to have far fewer false triggers.

But my question is this? How can I add the pushbutton into the code of the sonoff to make it work like original pushbutton. Any and all ideas deeply appreciate.

Thank you,

Charles Merkel

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.