New Itead based Wall Switch
Moderators: grovkillen, Stuntteam, TD-er
New Itead based Wall Switch
Hi guys,
I just got a new Itead based Wall Switch (SONOFF-Touch look-a-like) based on the PSB-B04-GL. Since it is based on the PSB-B04-GL I was hoping to re-flash with ESPEASY and use it with Domoticz. However I can't find the correct TX/RX and GPIO0 pins. On the Itead wiki page there is some documentation for the module: https://www.itead.cc/psb-04.html
The switch is availlable in 1, 2 and 3 gang versions and different colors. I noticed on AliExpress that the same PSB module is also used in a 4 CH USB power Relay board. I hope someone can help me figure out how to flash this board.
I just got a new Itead based Wall Switch (SONOFF-Touch look-a-like) based on the PSB-B04-GL. Since it is based on the PSB-B04-GL I was hoping to re-flash with ESPEASY and use it with Domoticz. However I can't find the correct TX/RX and GPIO0 pins. On the Itead wiki page there is some documentation for the module: https://www.itead.cc/psb-04.html
The switch is availlable in 1, 2 and 3 gang versions and different colors. I noticed on AliExpress that the same PSB module is also used in a 4 CH USB power Relay board. I hope someone can help me figure out how to flash this board.
Re: New Itead based Wall Switch
Hello,
i suppose i have to disappoint you.
The PSB is based on ESP-8266. The little drawing on the page you mentioned shows that TxD and RxD are lead through another chip and not connected to the outside pins.
So it won't be possible to flash ESPEasy on the PSB-circuit. All key and relay connections run through this chip.
Itead does not give much info about the PSB circuit but i think it's the same as with the Sonoff Dual. They use a serial driven port chip to read keys and switch the relays.
As far as i know this is not supported by ESPEasy at this time.
So even if you manage to flash ESPEasy an the PSB it won't work.
Sadly i can't give a better news, sorry.
Regards
Shardan
i suppose i have to disappoint you.
The PSB is based on ESP-8266. The little drawing on the page you mentioned shows that TxD and RxD are lead through another chip and not connected to the outside pins.
So it won't be possible to flash ESPEasy on the PSB-circuit. All key and relay connections run through this chip.
Itead does not give much info about the PSB circuit but i think it's the same as with the Sonoff Dual. They use a serial driven port chip to read keys and switch the relays.
As far as i know this is not supported by ESPEasy at this time.
So even if you manage to flash ESPEasy an the PSB it won't work.
Sadly i can't give a better news, sorry.
Regards
Shardan
Regards
Shardan
Shardan
Re: New Itead based Wall Switch
Thank you Shardan for the reply.
I was looking at that little picture myself and was wondering what they were doing with the "other chip'.
Too bad. Guess I have to start making space in my walls to fit multiple SonOFF Touch (single gang), or hope they will make their own version.
I was looking at that little picture myself and was wondering what they were doing with the "other chip'.
Too bad. Guess I have to start making space in my walls to fit multiple SonOFF Touch (single gang), or hope they will make their own version.
Re: New Itead based Wall Switch
You're welcome.
Sorry i couldn't give better news.
It is a bit critical with these items.
Sonoff basic works as at least the relay is connected directly to the ESP.
Sonoff Dual does not work as they use this additional chip, might be a STM8003 or similiar MCU.
Sonoff 4ch should work, i will test it as soon as my sample arrives.
Even the new ESP-014 uses a STM8003 internally and is not compatible with ESPEasy.
It might be a good idea to make a verified list in the forum wich items work and which do not.
Regards
Shardan
Sorry i couldn't give better news.
It is a bit critical with these items.
Sonoff basic works as at least the relay is connected directly to the ESP.
Sonoff Dual does not work as they use this additional chip, might be a STM8003 or similiar MCU.
Sonoff 4ch should work, i will test it as soon as my sample arrives.
Even the new ESP-014 uses a STM8003 internally and is not compatible with ESPEasy.
It might be a good idea to make a verified list in the forum wich items work and which do not.
Regards
Shardan
Regards
Shardan
Shardan
Re: New Itead based Wall Switch
I am glad I don't take "NO" as an answer
I managed to flash the devices with firmware called "ESPurna" from Tinkerman. (http://tinkerman.cat/tag/espurna/)
Its basically the SonOFF Dual as suggested (support chip is SIL F330). I realise its not ESPEASY so I will not continue this topic but I wanted to share this anyway.
I removed the cover to get a better look on the inside, this is not required to flash.

I managed to flash the devices with firmware called "ESPurna" from Tinkerman. (http://tinkerman.cat/tag/espurna/)
Its basically the SonOFF Dual as suggested (support chip is SIL F330). I realise its not ESPEASY so I will not continue this topic but I wanted to share this anyway.
I removed the cover to get a better look on the inside, this is not required to flash.
Re: New Itead based Wall Switch
Where did you buy this?
Re: New Itead based Wall Switch
I got it on Taobao.com. The switch is not branded, but it came in a box from tantech.
Http://tantech.taobao.com
I didn't find them in EU format (round) yet. This one is "Chinese", so square.
As to control it with ESPEasy: I am looking at the ser2net plugin to see if I can make a plugin to talk to the SIL F330 chip.
Http://tantech.taobao.com
I didn't find them in EU format (round) yet. This one is "Chinese", so square.
As to control it with ESPEasy: I am looking at the ser2net plugin to see if I can make a plugin to talk to the SIL F330 chip.
Re: New Itead based Wall Switch
Thanks for the reply 
ESP Easy working with this and the Sonoff Dual, would be amazing

ESP Easy working with this and the Sonoff Dual, would be amazing

Re: New Itead based Wall Switch
Seems the dual wall Switch is not on the Itead page, only the retired Version.
The actual one channel is availlable at
https://www.itead.cc/sonoff-touch.html
The actual one channel is availlable at
https://www.itead.cc/sonoff-touch.html
Regards
Shardan
Shardan
Re: New Itead based Wall Switch
Hi, have you tried flashing the firmware on the 3 gang switch version?
Is is the same procedure? I'm planning to grab a few
Is is the same procedure? I'm planning to grab a few
Re: New Itead based Wall Switch
Hi drbrains,
I have one question about the taobao switches. Despite being square, is the back of the switch small enough to fit in the European switch (round) box?
Thanks in advance,
Sincerely
Edward
I have one question about the taobao switches. Despite being square, is the back of the switch small enough to fit in the European switch (round) box?
Thanks in advance,
Sincerely
Edward
Re: New Itead based Wall Switch
The back of this switch is square. I'm not sure if it would fit in the European round hole. I noticed other brands gave special eu cases and the seem slightly smaller.
As for a 1,2 or 3 gang. The process is the same and software can handle up to 4 switches as the little PCB has 4 In and 4 Out pins.
As for a 1,2 or 3 gang. The process is the same and software can handle up to 4 switches as the little PCB has 4 In and 4 Out pins.
Re: New Itead based Wall Switch
Hi, drbrains,
It's so excited to find a way for flashing custom firmware on esp-b04.
I have similar switch in 3 gang and would give a try on it.
May i know which Hardware to "Un-Comment" inside arduino.h? SONOFF_DUAL? SONOFF_4CH?
Which board and Flash size to be selected? Generic ESP8266 module/ 1M(128K) SPIFFS?
Do need to modify any code inside espurna, let say for matching any GPIO for Button / Relay?
It's so excited to find a way for flashing custom firmware on esp-b04.
I have similar switch in 3 gang and would give a try on it.
May i know which Hardware to "Un-Comment" inside arduino.h? SONOFF_DUAL? SONOFF_4CH?
Which board and Flash size to be selected? Generic ESP8266 module/ 1M(128K) SPIFFS?
Do need to modify any code inside espurna, let say for matching any GPIO for Button / Relay?
Re: New Itead based Wall Switch
Hello,
not all Sonoff's run seamlessly on ESPEasy.
Sonoff Basic / TH10 / TH16 / S20 are known to work with ESPEasy.
Most of them use the 1MB (1024) binary afaik.
The Sonoff 4ch works, but it uses a slightly different processor (ESP8285 instead of 8266),
so you have to compile your own binary with the settings for that chip.
Sonoff Dual and several other Sonoff products use ESP8266 with a signal processor on the serial output..
These are not supported atm. There are some workarounds but not really "technically perfect"
.
Regards
Shardan
not all Sonoff's run seamlessly on ESPEasy.
Sonoff Basic / TH10 / TH16 / S20 are known to work with ESPEasy.
Most of them use the 1MB (1024) binary afaik.
The Sonoff 4ch works, but it uses a slightly different processor (ESP8285 instead of 8266),
so you have to compile your own binary with the settings for that chip.
Sonoff Dual and several other Sonoff products use ESP8266 with a signal processor on the serial output..
These are not supported atm. There are some workarounds but not really "technically perfect"

Regards
Shardan
Regards
Shardan
Shardan
Re: New Itead based Wall Switch
VanShava wrote: ↑26 May 2017, 09:35 Hi, drbrains,
It's so excited to find a way for flashing custom firmware on esp-b04.
I have similar switch in 3 gang and would give a try on it.
May i know which Hardware to "Un-Comment" inside arduino.h? SONOFF_DUAL? SONOFF_4CH?
Which board and Flash size to be selected? Generic ESP8266 module/ 1M(128K) SPIFFS?
Do need to modify any code inside espurna, let say for matching any GPIO for Button / Relay?
I'd appreciate if you could go into detail for the arduino setupdrbrains wrote: ↑24 May 2017, 14:11 The back of this switch is square. I'm not sure if it would fit in the European round hole. I noticed other brands gave special eu cases and the seem slightly smaller.
As for a 1,2 or 3 gang. The process is the same and software can handle up to 4 switches as the little PCB has 4 In and 4 Out pins.
Also, were you able to get it to work with mqtt & homeassistant?
I've also ordered another 4 gang itead based wall switch that should be arriving within the end of this week
It's not tantech, but it could be based on PSB-B04-GL as well, I will know more once I open it
Here's the link if anyone's interested
https://world.taobao.com/item/540194306 ... .14.ZBoI9j
Re: New Itead based Wall Switch
Hi drbrains,
I'm new to all this. I have managed to flash a few standard Sonoff switches for Smartthings and they all working well. What I'm trying to do now is flashing a WiFi wall switch like you did. Does this Chinese switch despite being square fit in an EU box (round)?
Thanks in advance
Best regards
Edward
I'm new to all this. I have managed to flash a few standard Sonoff switches for Smartthings and they all working well. What I'm trying to do now is flashing a WiFi wall switch like you did. Does this Chinese switch despite being square fit in an EU box (round)?
Thanks in advance
Best regards
Edward
Re: New Itead based Wall Switch
I am not sure if it will fit in the round European wall sockets. These switches were designed for China. They have square holes. Most switches I saw for the EU market have a different form factor. They are round in the back, which means redesigned pcb most of the time.
It's all based on this:
https://www.itead.cc/wiki/PSB_Smart_Switch_Module
The espurna firmware (last I checked) only uses 2 pins, cause it was designed for the sonoff dual. The sketch is easy to read and modify to add the other pins / switches / relays.
It's all based on this:
https://www.itead.cc/wiki/PSB_Smart_Switch_Module
The espurna firmware (last I checked) only uses 2 pins, cause it was designed for the sonoff dual. The sketch is easy to read and modify to add the other pins / switches / relays.
Re: New Itead based Wall Switch
Could you give more detailed instruction on how to configure that?drbrains wrote: ↑07 Jun 2017, 02:51 I am not sure if it will fit in the round European wall sockets. These switches were designed for China. They have square holes. Most switches I saw for the EU market have a different form factor. They are round in the back, which means redesigned pcb most of the time.
It's all based on this:
https://www.itead.cc/wiki/PSB_Smart_Switch_Module
The espurna firmware (last I checked) only uses 2 pins, cause it was designed for the sonoff dual. The sketch is easy to read and modify to add the other pins / switches / relays.
Did you have to add another extra pin since it's a 3 gang switch? What if I try to flash different firmware like tasmota to this 4 gang wall switch from herehttps://world.taobao.com/item/540194306 ... .14.ZBoI9j
Will it list all 4 main switch automatically on the settings or I still need to modify the sketch?
Btw, the 4 gang wall switch is using PSF-B85.
-
- Normal user
- Posts: 119
- Joined: 26 Feb 2017, 17:30
Re: New Itead based Wall Switch
how the heck did you buy them from there? it took me ages to sign up for it then they wanted a 2 step auth and it was all different language. I managed to order them and they charged me but they never came. I cancelled and got my money back
I have the original itead one and can confirm it can be flashed
only had one problem. it locked up after running for a few months . pulled it out put it back it and back up and runng
I have the original itead one and can confirm it can be flashed
only had one problem. it locked up after running for a few months . pulled it out put it back it and back up and runng
Re: New Itead based Wall Switch
So no updates at all on the tracking?bobbybeans wrote: ↑09 Jun 2017, 16:39 how the heck did you buy them from there? it took me ages to sign up for it then they wanted a 2 step auth and it was all different language. I managed to order them and they charged me but they never came. I cancelled and got my money back
I have the original itead one and can confirm it can be flashed
only had one problem. it locked up after running for a few months . pulled it out put it back it and back up and runng
My current location is in Singapore & I usually get my orders from taobao within a week.
-
- Normal user
- Posts: 119
- Joined: 26 Feb 2017, 17:30
Re: New Itead based Wall Switch
nice, no i waited for 3 weeks and it said it didn't even shipped. They gave me the money back but I couldn't read much. it was hard enough to login with the forced 2fa. i mean dont get me wrong i love 2fa but if i have the option to enable it and i can read the website.../ texts they send (which I cant)
Re: New Itead based Wall Switch
It may be done with a plugin. Are there any information about used serial commands? Similar to Sonoff Dual?
Re: New Itead based Wall Switch
hi drbrains,
I've flashed espurna on it,
I can turn on/off the touch from espurna webpage, but the switch status is not updated if I manually turned the the switches off/on.
Can you share how you configured it?
I've flashed espurna on it,
I can turn on/off the touch from espurna webpage, but the switch status is not updated if I manually turned the the switches off/on.
Can you share how you configured it?
Re: New Itead based Wall Switch
Are you still talking about the discontinued "Touch" 2 channel switch?
I saw ITEAD has deployed a new line of switch, called "Sonoff T1" which are available in 1, 2 and 3 channel configuration.
Anyone got any? Would be great to understand the hardware and if ESPEasy pluing can be then written...
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
Re: New Itead based Wall Switch
No, it's the same tantech switch that drbrains posted beforepapperone wrote: ↑10 Jul 2017, 17:59Are you still talking about the discontinued "Touch" 2 channel switch?
I saw ITEAD has deployed a new line of switch, called "Sonoff T1" which are available in 1, 2 and 3 channel configuration.
Anyone got any? Would be great to understand the hardware and if ESPEasy pluing can be then written...
I actually a have few other wifi switch that are also ESP8285 based (using PSFB85 https://www.itead.cc/psf-b85.html)
https://goo.gl/photos/xzGnCyVKFUs284H89
https://goo.gl/photos/Q7zgtRbWN1BeszJw8
Those work right away after I flashed sonoff 4ch of the espurna firmware.
But it's not really working properly with this tantech
I think the newer Sonoff T1 might be using the PSFB85 chipset
Re: New Itead based Wall Switch
PCB tracks for AC are ridiculous on those units you just posted pictures; I won't install them in my house!!
My philosophy si different and my system is designed to work differently, surely it requires more rewiring and is more exepnsive but I truly believe is safer.
I'll post some pictures / info as beside the hardware (which is custom made) I am working to have all nodes rurring ESPEasy!
My philosophy si different and my system is designed to work differently, surely it requires more rewiring and is more exepnsive but I truly believe is safer.
I'll post some pictures / info as beside the hardware (which is custom made) I am working to have all nodes rurring ESPEasy!
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
-
- New user
- Posts: 1
- Joined: 22 Aug 2017, 15:56
Re: New Itead based Wall Switch
Sonoff Touch T1 is based on the same PSF-B04 chip so to get into flash mode you have to ground GPIO0 as usual. I successfully uploaded Tasmota firmware into 2 gang version of T1.
Re: New Itead based Wall Switch
If you use +/-10watt led lights, you're talking about 0.05Ampspapperone wrote: ↑11 Jul 2017, 07:21 PCB tracks for AC are ridiculous on those units you just posted pictures; I won't install them in my house!!
My philosophy si different and my system is designed to work differently, surely it requires more rewiring and is more exepnsive but I truly believe is safer.
I'll post some pictures / info as beside the hardware (which is custom made) I am working to have all nodes rurring ESPEasy!
A 0.2mm tick cable can handle that amperage, looks safe to me.
Of course if one is using higher power lamps, then that's a different story
Re: New Itead based Wall Switch
Even those 0,05A circuits might produce a short circuit.
Regards
Shardan
Shardan
Who is online
Users browsing this forum: No registered users and 14 guests