Wifi Wall Switch WITHOUT TOUCH (1,2 or 3 Gang)

Friend, there is actually no template for TuyaMCU…it’s a module.
So, steps are;

  1. Choose TuyaMCU as module. Device will restart. You will notice green LEDs stop blinking. I am assuming you have setup WiFi and MQTT.
  2. In console, type
    TuyaMCU 11,1
    This tells the MCU to link Relay1 to Switch one.

One channel device is now complete - you may choose to setup your setoptions etc as you like in your production.

For 2 and 3 ch, just append

TuyaMCU 12,2
TuyaMCU 13,3

Done!

2 Likes

Today I try to flash my switches. All works perfect! Thanks. :slight_smile:

Anyone bought Lonsonho wifi rf switch ? It say 41mm… i wanna know if it is UK compatible. If you do have, please measure the depth of the switch from the plate.

There are literally dozens of switches that match this description. Exactly which device?

Probably this will help

#Aliexpress SG$ 21.72 38%OFF | Lonsonho Smart Switch Wifi Tuya Push Button Wall Light Switch 220V No Neutral Wireless Control Smart Home Alexa Google Home

Recently I ordered these switches (3 gang): https://www.aliexpress.com/item/4000289352430.html?spm=a2g0s.9042311.0.0.55b94c4dLD6y0n

The buttons feel very nice and have a nice positive click. Under each button there are 3 LEDs.

  • Green, where all 3 are controlled together via a GPIO13 (all on or all off)
  • Red, which are inline with the relays
  • Unkown, the LEDs are populated, but trace back to an unpopulated chip. This is probably for the Zigbee version of the switches. I bet you could wire those unused LEDs to GPIO 0, 2 & 16 in order to control them. I might look into this at a later date.

Lit together (green & red) they make an orange/yellow color.

You can find a simple config file I made for them here: https://gist.github.com/bbbenji/62a0b7978603844f1881a0893ebbdc6c

I also made a config to use with smart bulbs that falls back to the relays when connection to HA is lost: https://gist.github.com/bbbenji/05074c1fba9dc67ac7a99fbaaf1a08f6


5 Likes

Thanks for posting, looks good, will these fit the UK back boxes benji

I can’t say. However, they do fit the EU ones with room to spare for wires and connectors.

1 Like

esphomatized :star2:

This is EU i believe, I have similar but wont fit UK wall due to depth.

@benji did you have to open and use ttl cable to flash esphome ? or you can use tuya convert? thanks!

I didn’t even try Tuya Convert. I just opened them all up and started flashing via programmer.

1 Like

Regarding my post here: Wifi Wall Switch WITHOUT TOUCH (1,2 or 3 Gang) - #79 by benji

I ordered another switch as I ended up needing 6 instead of just 5. The new one arrived but:

  1. It has a different main board inside. Sorry, forgot to take pictures before I mounted it.
  2. I was unable to flash manually, however, Tuya-Convert worked.
  3. The buttons feel bad, mushy and not very haptic.
  4. Has blue and red led’s, not orange and green.
  5. The inputs on the back are swapped around.
  6. The new ones are marked as X803A, the old ones are X803 (sans A)

I ordered from the same seller and same listing but got a different product. be aware I recommend the X803. I unfortunately cannot recommend the new X803A.

EDIT:
I messaged the seller asking if I can return the X803A & receive the X803 and got this response:

hi friend, because switches come from different batches, so there are little different, hope you can understand
if you really can not accept it, you can supply return it to [redacted] local warehouse, our products support 15 days no reason return, but you need pay return shipping fee

So I will be stuck with one shitty switch!

1 Like

How did You guys flash tasmota on X803A it with Tuya convert? I plugged Lin and N and tried to hold 1st switch for some time leds started to blink but no success ;/

Can You advise how?

The newer product batches may have that upgraded PSK so TC will not work. Serial flashing is the only option.

That is what I use for the most part for my light switches, which allowed me to keep the charming old school toggle switches throughout my home (these switches are much easier to flick when you reach around a dark corner, no? …and they give the affect of a ‘sleeper smarthome’ :wink: ). The exception being cases where the mains line in is one one box, and load output is in another box, you either need non-standard momentary switches or more wires between the boxes (I use jasco’s for those situations). Shelly makes some killer little devices. I have no affiliation with them, but from my ‘maker’ perspective seeing what they managed to pack in to such small devices is very impressive. Their size makes them feasible even when a j-box is near max capacity with lots of wires stuffed inside. Add to that a ‘safer’ supply chain vs ali-specials (how many devices running how many hours before a fire starts?)… they even sell UL listed 2.5’s.

Signal reception is good as well; this is big when stuffing inside j-boxes. I’ve got one stuffed in a box down low in the front yard… signal goes through 3 drywall/wood siding walls at a sharp angle, through a stainless refrigerator, through some granite countertop, and past a tower computer box (yes beige baby!) to reach the shelly 2.5 about 40’ from the router. I’ve got others shelly’s 60’ from the router, penetrating 2 walls, a 3’ thick brick fireplace, and a 75" lcd tv etc… they work reliably @ <=70db signal (from an ac86u router). My shed, 100’ away from the router past several home walls and a brick garden wall, is the only place shellies don’t work well (zwave is good there).

I use shelly 2.5’s on my bath fan/lights… get both fan and light with one tiny device… and I get power and thermal safety monitoring as a bonus. I also use shelly 1pm’s and dimmers as well. The 2.5’s and 1pm’s can be flashed with whatever 8266 fw you like (I prefer esphome). The dimmers can’t be flashed just yet, but their cloud free mqtt option combined with a python discovery script makes the dimmers very user friendly either way.

Any idea how to connect the flasher than ? I’m thinking to have a 3 wifi switched of this type to control 3 way switch (programmed in tasmota) o use 3 zigbee with Node red & zigbee2mqtt but this will be dependent on HA server to be online and working.

Refer to getting started document on the Tasmota site; it’s well explained.
https://tasmota.github.io/docs/Getting-Started/#prerequisites