Did some testing with GPIO4, When it is turned on it actually turns the Blue LED off leaving the led a dim red. GPIO5 as far as I can tell does nothing when turned on and off.
Did you happen to make any progress on this? Iâm trying to figure it out as wellâŚthough mine is different than what was posted. Mine is a ESP8285 with a MCU in the mix. Mine pins are so far:
Relay = GPIO12 inverted
LED = GPIO13 inverted
Button = GPIO0
I have the same issue with the relay constantly triggering with the sensor circuit is closed. Thanks.
EDIT: A little more info on the sensor. When I close the circuit it causes the relay to do the opposite of whatever it was doing. If the relay was off, itâll turn it on. If the relay is on, itâll turn it off. Very odd.
I went ahead and just removed the MCU. I now have my sensor on GPIO13 and my relay on GPIO12. I followed Digiblurâs tutorial for the garage door. Now to install it this weekend.
Hi, Did anybody ever get this working ? Iâm at the same point as enablingpenguin where I can turn the relay on/off but canât see the open/closed sensor.
Hi, is your setup with removed MCU working correctly? I have same board with ESP chip and I would like to connect to my HA directly (without cloud)
Yes, mine is working correctly. Its been running reliably since I installed it. The picture below is how I hooked up the pins where the MCU was. @muzzak got his working as well, but he said he had to do his a little different than mine (possibly a different version?). Mine is running Tasmota.
Yeah mine is different to the one Crewski has. It looks like the picture enablingpenguin posted here with the TYWE3S on a card. On this board I found connecting Pin 2 to Pin 4 is what makes the LED go from Red (Open) to Blue (Closed). I also had to solder a bridge from Pin 6 to Pin 2 in order to get the sensor reed switch on GPIO13 to work.
Thanks for answers. I will try to remove the MCU and flash tasmota
I have flashed latest Tasmota without any problems. The relay was âclickingâ forever as expected.
So I have desoldered MCU and connected pins as shown and now it is working! (Version with ESP chip)
I had little trouble configuring tasmota correctly
- set relay to âmomentaryâ (the gate has only one button for opening/closing)
- set sensor to only show state (opening or closing reed switch was also toggling the relay)
So here is my working configuration:
Tasmota module configuration:
(18) Generic
GPIO12 Relay1
GPIO13 Switch1
I had to configure different MQTT topic for reed switch (sensor) as this is sending %topic%/cmnd/POWER1 (which also controls relay). Pulsetime (0.5sec) is for âmomentaryâ behaviour.
In tasmota console:
switchmode 1
switchtopic gatestatus
pulsetime 5
Home assitant configuration:
switch:
- platform: mqtt
name: "Garage gate"
command_topic: "garage/gate/cmnd/POWER"
state_topic: "garage/gate/stat/POWER"
retain: false
sensor:
- platform: mqtt
name: "Garage gate status"
state_topic: "garage/gatestatus/cmnd/POWER1"
device_class: garage_door
Thanks to all
If you wanted to do a cover instead of switch and sensor, from Digiblurâs tutorial run the following commands:
switchmode2 1
poweronstate 0
setoption0 0
pulsetime1 10
Then setup the rule:
Rule1 on switch2#state=0 do publish2 stat/%topic%/status closed endon on switch2#state=1 do publish2 stat/%topic%/status open endon
Then turn on the rule:
Rule1 1
And finally in your configuration.yaml add the following code (this is directly from my config)
cover:
- platform: mqtt
name: "Garage Door MQTT"
command_topic: "cmnd/GarageDoor/POWER"
state_topic: "stat/GarageDoor/status"
availability_topic: "tele/GarageDoor/LWT"
qos: 1
payload_available: "Online"
payload_not_available: "Offline"
payload_open: "ON"
payload_close: "ON"
payload_stop: "ON"
state_open: "open"
state_closed: "closed"
device_class: garage
Works perfectly for me! My %topic% is GarageDoor obviously.
Hi guys,
Iâm trying to do the same but have a slightly different board again, I have tried flashing Tasmota but I canât get it to connect, timeout errors. I can flash other Sonoff switches just fine.
Do I need to de-solder the MCU first?
What does the writing say on that chip at the bottom right, next to the antenna?
first line = ESP8265 (possibly ESP8263)
2nd line = 13201?
3rd line = GP19074
4th Line = UEPH???
best I can do
OK it is an esp chip then! A lot of these devices are substituting a different chip that canât yet be flashed.
Iâve tried flashing from the pins on the side, there not labelled but I figured power, and have tried tx/Rx both ways. I get timeout errors on both.
DIY mode, I can get it to broadcast itâs Itead******* SSID, I can connect to it but 10.10.7.1 wonât load.
After a few days of searching, I havenât found anything to help with flashing the chip on these style of boards, so I just ordered a Sonoff SV and will convert that.
The closest I got was getting a permission denied error when trying to flash with Tazmotizer.
Hi, I have used your code above, but the sensor activates the relay, am i missing something?
Sounds like the switch (sensor) is still connected to the relay. A lot of Tasmota is over my head, but I think that if you do the rule and turn it on, it should âdecoupleâ the switch from the relay. This all assumes of course that you took the mcu out and wired it up to work off the esp.
I think you IC is the wrong way round. Pin 1 is always near the notch.
Has any one tried to program this chip STC 15W104.