-
Notifications
You must be signed in to change notification settings - Fork 635
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
Feature Request Sonoff Basic WiFi #1529
Comments
So correct me if I'm wrong, but it looks like your objective is just to be able to read the state of the GPIO pins over MQTT, is that correct? Try this: (which I am using for a garage door opener)
I also suggest adding a transistor to the I/O pins you are using to attach to the garage door opener's limit switches. Even if your door opener is reading 3.3v, the unknown circuit doesn't give you any guarantees. You can use something easy like 2N7000, attach the gate to the switch on the garage door opener motor, source to ground (which should be common between the sonoff and the garage door opener, you can safely ignore the children who write the wiki at tasmota with their claims that it will catch on fire with a common ground -- its utter nonsense), and drain to the I/O pin on the sonoff. |
So correct me if I'm wrong, but it looks like your objective is just to be able to read the state of the GPIO pins over MQTT, is that correct? Yes thank you and utilize the relay and connect one DS18B20. Doing that now using Tasmota firmware as shown above. I just want to change over to using Espurna firmware. I am still learning to program the firmware and really not well at doing this. There are no direct connections from the SonOff Wifi Basic to anything directly connected to the GDO. There are two sets of autonomously wired limit switches (magnetic switches on the door). Two plus button are wired to the Leviton Omni Pro 2 combo security panel. Two plus another button are for testing the Sonoff / MQTT stuff. 1 - GPIO 3 and GPIO 4 connect to two magnetic switches. One mounted low on the garage door rail and one mounted high for closed, open and intermediate views of the garage door. Common comes from the Sonoff basic Wifi. 2 - GPIO 14 is used for the DS18B20 (DQ, VCC and ground) DQ has a resistor to VCC. 3 - the relay is used for the button. The new button is a hardware modified digital button programmed to the GDO. In fact due to automating the GDO in the 1990's there is a set of limited rules. IE: back then and today it is connected to an alarm panel with hard wired up and down switches and button to the Leviton OmniPro 2 alarm panel. All built in saftey features are all connected as originally installed. I would not recommend anyone play with these features. Way long time ago in the 1990's the GDO was automated and sync'd to the alarm panel. Wife drove in to the garage while on a conference call leaving the car running and not shutting off the alarm. The GDO automagically closed the garage door and she freaked out. Since then I go slow with the automation of the GDO. I also utilize RFID tags on the vehicles to ID which one is where plus utilize under the driveway hard wired sensors and wired PIR sensors inside and ouside plus CCTV. |
As an alternate method to the one proposed by @lbdroid, there is also the option to use the DigitalSensor or the EventSensor to monitor GPIO statuses. Unfortunately, we cannot configure them on the fly yet (hopefully soon). |
Thank you @xoseperez |
@xoseperez: correct me if I'm wrong, but it is currently only possible to configure ONE DigitalSensor pin on a board. Is my understanding correct? And EventSensor, while it can be applied to up to 10 pins, only can register transitions, not states. I think that DigitalSensor would be excellent, IF it were to be expanded to work with more than just one pin. |
Originally posted this in Gitter and it was suggested that I post it here.
Currently using a SonOff WiFi basic / Tasmota in multiple function mode as a Garage door sensor, opener and have added one DS18B20 sensor for temperature only monitoring. GPIO 4, 14 and a pulse for GDO. (IE: door open sensor, door closed sensor, push button pulse to open garage door and temperature sensor) It has worked fine over the last few months.
Over the last few months though have switched from Tasmota to Espurna firmware.
Automation sand box here using Homeseer MQTT, Home Assistant, Openhab, Domoticz, and Homegenie. (continue to utilize X10, UPB, Zigbee and ZWave). Personally like the Espurna firmware a bit better than Tasmota firmware. Where would I make a request for same functionality using Espurna firmware versus Tasmota custom firmware? I noticed it is much easier to solder modifications to the SonOff WiFi basic board versus the Magic Home RGB controller (which I am currently using with customized Espurna firmware).
In a recap the firmware would be multi functional for use with the modded SonOff WiFi basic device.
Hardware modifications to testing SonOff WiFi basic:
1 - cut high voltage traces for relay to use low voltage
2 - soldered pins to RX, TX, Ground, GPIO 4, GPIO14. (GPIO 1,3,4,14)
3 - connected GPIO 3 to one door sensor, GPIO 4 to second door sensor, GPIO 14 to DS18B20.
Using MQTT to monitor status of GPIO 3 and GPIO4 and GPIO 14 and toggle relay for garage door opener.
This is a low cost WiFi basic combination garage door opener, door monitor and temperature sensor.
The text was updated successfully, but these errors were encountered: