-
Notifications
You must be signed in to change notification settings - Fork 3
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
Hardware: Sonoff switch #108
Comments
That's cool that it took only about 10 lines in the config file to support a new device like this. |
Does the Sonoff have an LED or anything else that is under program control ? I'm presuming at that low price it doesn't have any kind of voltage or current sensing. |
The LED is pin 13 and that is exposed as LED_BUILTIN when using Arduino IDE device type ITEAD_SONOFF so your code in actuator_ledbuiltin.h covers it. It has no other external sensors however the ADC can be configured to read the uC supply voltage https://docs.espressif.com/projects/esp8266-rtos-sdk/en/latest/api-reference/peripherals/adc.html which could have been useful to detect incipient brown out conditions if the device were not powered from the mains. It is possible that the 3V3 rail is smoothed enough that a MQTT message could be sent out warning of imminent power failure as the voltage drops but it would be a long-shot. |
Thanks - looks good, going to get hold of some of these and play with them. |
@jksemple mentioned the Sonoff switch in #97 , which I've heard mentioned elsewhere,
Example on a store - https://itead.cc/product/sonoff-basicr2/
Jon - If you have one, I’d be very interested in whether you could get the code running on it. I’m guessing it would be some variation of the actuator_relay - maybe just that actuator with the pin configured based on a board type.
I see someone suggesting it doesn't need soldering, just holding pins in place (which I've done on different boards with success) - see https://community.home-assistant.io/t/do-you-still-have-to-solder-the-modern-revisions-of-sonoff-plugs-to-flash-them/73995
The text was updated successfully, but these errors were encountered: