New Itead based Wall Switch

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
drbrains
Normal user
Posts: 11
Joined: 17 Feb 2017, 16:22

New Itead based Wall Switch

#1 Post by drbrains » 18 Feb 2017, 08:32

Hi guys,

I just got a new Itead based Wall Switch (SONOFF-Touch look-a-like) based on the PSB-B04-GL.
outside front.jpg
outside front.jpg (35.19 KiB) Viewed 27350 times
outside back.jpg
outside back.jpg (38.82 KiB) Viewed 27350 times
Inside touch panel.jpg
Inside touch panel.jpg (38.41 KiB) Viewed 27350 times
behind touch shield.jpg
behind touch shield.jpg (49.38 KiB) Viewed 27350 times
relay board.jpg
relay board.jpg (54.72 KiB) Viewed 27350 times
closeup relayboard J2.jpg
closeup relayboard J2.jpg (58.96 KiB) Viewed 27350 times
back of touchpanel.jpg
back of touchpanel.jpg (56.04 KiB) Viewed 27350 times
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.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: New Itead based Wall Switch

#2 Post by Shardan » 18 Feb 2017, 10:24

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
Regards
Shardan

drbrains
Normal user
Posts: 11
Joined: 17 Feb 2017, 16:22

Re: New Itead based Wall Switch

#3 Post by drbrains » 18 Feb 2017, 10:33

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.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: New Itead based Wall Switch

#4 Post by Shardan » 18 Feb 2017, 10:39

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
Regards
Shardan

drbrains
Normal user
Posts: 11
Joined: 17 Feb 2017, 16:22

Re: New Itead based Wall Switch

#5 Post by drbrains » 20 Feb 2017, 04:58

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.
PSB-B04-PinMap.jpg
PSB-B04-PinMap.jpg (95.48 KiB) Viewed 27271 times
PSB-B04 flashable.jpg
PSB-B04 flashable.jpg (57.9 KiB) Viewed 27271 times
I removed the cover to get a better look on the inside, this is not required to flash.

gajotnt
Normal user
Posts: 13
Joined: 22 Feb 2017, 15:07
Location: Portugal
Contact:

Re: New Itead based Wall Switch

#6 Post by gajotnt » 22 Feb 2017, 15:08

Where did you buy this?

drbrains
Normal user
Posts: 11
Joined: 17 Feb 2017, 16:22

Re: New Itead based Wall Switch

#7 Post by drbrains » 23 Feb 2017, 02:20

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.

gajotnt
Normal user
Posts: 13
Joined: 22 Feb 2017, 15:07
Location: Portugal
Contact:

Re: New Itead based Wall Switch

#8 Post by gajotnt » 23 Feb 2017, 12:23

Thanks for the reply :)
ESP Easy working with this and the Sonoff Dual, would be amazing :D

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: New Itead based Wall Switch

#9 Post by Shardan » 23 Feb 2017, 13:30

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
Regards
Shardan

ferbulous
New user
Posts: 6
Joined: 19 May 2017, 11:23

Re: New Itead based Wall Switch

#10 Post by ferbulous » 19 May 2017, 11:28

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

jomeg0
New user
Posts: 2
Joined: 03 May 2017, 18:59

Re: New Itead based Wall Switch

#11 Post by jomeg0 » 22 May 2017, 18:41

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

drbrains
Normal user
Posts: 11
Joined: 17 Feb 2017, 16:22

Re: New Itead based Wall Switch

#12 Post by drbrains » 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.

VanShava
New user
Posts: 1
Joined: 26 May 2017, 09:04

Re: New Itead based Wall Switch

#13 Post by VanShava » 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?

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: New Itead based Wall Switch

#14 Post by Shardan » 26 May 2017, 12:09

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
Regards
Shardan

ferbulous
New user
Posts: 6
Joined: 19 May 2017, 11:23

Re: New Itead based Wall Switch

#15 Post by ferbulous » 29 May 2017, 07:43

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?
drbrains 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.
I'd appreciate if you could go into detail for the arduino setup
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

jomeg0
New user
Posts: 2
Joined: 03 May 2017, 18:59

Re: New Itead based Wall Switch

#16 Post by jomeg0 » 02 Jun 2017, 20:02

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

drbrains
Normal user
Posts: 11
Joined: 17 Feb 2017, 16:22

Re: New Itead based Wall Switch

#17 Post by drbrains » 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.

ferbulous
New user
Posts: 6
Joined: 19 May 2017, 11:23

Re: New Itead based Wall Switch

#18 Post by ferbulous » 07 Jun 2017, 03:13

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.
Could you give more detailed instruction on how to configure that?
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.

bobbybeans
Normal user
Posts: 119
Joined: 26 Feb 2017, 17:30

Re: New Itead based Wall Switch

#19 Post by bobbybeans » 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

ferbulous
New user
Posts: 6
Joined: 19 May 2017, 11:23

Re: New Itead based Wall Switch

#20 Post by ferbulous » 10 Jun 2017, 05:09

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
So no updates at all on the tracking?
My current location is in Singapore & I usually get my orders from taobao within a week.

bobbybeans
Normal user
Posts: 119
Joined: 26 Feb 2017, 17:30

Re: New Itead based Wall Switch

#21 Post by bobbybeans » 14 Jun 2017, 22:27

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)

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: New Itead based Wall Switch

#22 Post by enesbcs » 27 Jun 2017, 17:23

Shardan wrote: 18 Feb 2017, 10:24 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.
It may be done with a plugin. Are there any information about used serial commands? Similar to Sonoff Dual?

ferbulous
New user
Posts: 6
Joined: 19 May 2017, 11:23

Re: New Itead based Wall Switch

#23 Post by ferbulous » 10 Jul 2017, 16:35

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?

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: New Itead based Wall Switch

#24 Post by papperone » 10 Jul 2017, 17:59

ferbulous wrote: 10 Jul 2017, 16:35 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?
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

ferbulous
New user
Posts: 6
Joined: 19 May 2017, 11:23

Re: New Itead based Wall Switch

#25 Post by ferbulous » 11 Jul 2017, 03:31

papperone wrote: 10 Jul 2017, 17:59
ferbulous wrote: 10 Jul 2017, 16:35 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?
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...
No, it's the same tantech switch that drbrains posted before
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

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: New Itead based Wall Switch

#26 Post by papperone » 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!
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

danielgajdos
New user
Posts: 1
Joined: 22 Aug 2017, 15:56

Re: New Itead based Wall Switch

#27 Post by danielgajdos » 22 Aug 2017, 15:59

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.

gajotnt
Normal user
Posts: 13
Joined: 22 Feb 2017, 15:07
Location: Portugal
Contact:

Re: New Itead based Wall Switch

#28 Post by gajotnt » 16 Nov 2017, 16:17

papperone 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!
If you use +/-10watt led lights, you're talking about 0.05Amps

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

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: New Itead based Wall Switch

#29 Post by Shardan » 16 Nov 2017, 18:34

Even those 0,05A circuits might produce a short circuit.
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: No registered users and 90 guests