xoseperez / espurna

Home automation firmware for ESP8266-based devices
http://tinkerman.cat
GNU General Public License v3.0
3k stars 638 forks source link

Feature request: Sonoff S31 support #497

Closed pjz closed 6 years ago

pjz commented 6 years ago

Any chance that S31 (Smart plug with energy monitoring) support is forthcoming?

xoseperez commented 6 years ago

According to this source (http://www.phreakmonkey.com/2018/01/sonoff-s31-disassemble-and-flash.html) the button and relay GPIOs are the same than in the Sonoff Basic.

Then there is a ChipSea 7766 energy monitoring chip (datasheet) connected via UART.

I have requested a sample from Itead to try it out.

swilson86 commented 6 years ago

The Sonoff S31 is a very interesting smart plug as it doesn't have all the wires dangling out like the POW. Perfect for a coffee pot or fridge where nearby liquids can be present. Anxious to see some Espurna development on this too.

xoseperez commented 6 years ago

Working on this in the sensors branch. Still untested. 0e6f2d1ca39e28a8fbad6481fc7498c4a0c5814f

xoseperez commented 6 years ago

It is now merged into the dev branch and staged for release.

xoseperez commented 6 years ago

Staged for release. Closing.