WARNING WARNING WARNING: Under construction.
WARNING: I take no responsibility for ANYTHING that will happen to you or your device.
WARNING: This device have connection to MAINS, so there is a small part of it exposed to 230V, this is dangerous to touch. If you do not feel comfortable either power device with safer source (read below) or get help from electrician.
About the device:
Shelly wall display (from now on “Stargate” that is codename of device) consists of 3 PCB’s. One is PSU and relay located in de-attachable part behind the device, connected via 16 pins to next board, to get to this board de-attach back part, by removing one screw at the bottom of the switch and pulling them apart, then on the side where pins are located remove 3 screws and remove cover. Second one is located inside the main chasing, it is a board that connects to psu and to main board with an FPC, a kind of adaptor (you can get there by de-attaching back one) and then removing 4 screws in the corners on part where there are no pins, then lift the cover, but be careful there is fpc between parts, disconnect FPC from any side. Third one is the only blue board, its a mainboard located under same cover as previous one. It have 3 FPCs: white one is going to adapter and PSU, second is vide black fpc going to display and 3rd, brown FPC is going to temp and humidity sensor. On top there is 1 uFL connector for antenna (antenna itself is located on top plastic insert), and there are 4 wires 2 for speaker and 2 for microphone. Als there is a USB-C connector on left side.
PSU board:
Adapter board:
Main board:
Powering the device:
There are 2 way to power the board:
- Connect adapter board to PSU and motherboard supply 230V to PSU, while in general its safe as long as PSU cover is in place, there still is an exposed screw of the psu connector.
- You can supply 5v 1A+ to your adapter board yourself, following this image:
Then you can connect adapter to motherboard.
About stock software:
The firmware is very typical for Mediatek SoC’s there is little kernel based bootloader, and linux 3.18 with android 7 on top. But shelly did preinstall their app as launcher, and re-implemented most settings in it. Belove i will describe a way to get out of the app.
Getting custom software to run on the device without soldering:
This will break stock Shelly app, it is likely trivial to restore but i didn’t try. First of all you will have to disassemble a device to get to usb c hidden inside. Follow instruction in https://github.com/bkerler/mtkclient/blob/main/README.md to install mtkclient, it is avalible for Linux and Windows after doing so run:
/path/to/mtkclient/mtk rl dump
Make sure folder you are currently in have 8GB free space. While that is running connect usb C to a cable to pc and device, after that connect power to device. After that you should see backup progress, it will take a long while, around 20 minutes. Disconnect power, run
/path/to/mtkclient/mtk e metadata,userdata
Connect power back, after that command finished, disconnect usb and reconnect power. Device should show “Erasing” for a moment and reboot itself, after boot you will see shelly app with error message, but this time navigation bar on bottom and status bar on top will appear. Swipe from top to open quick settings, in there on bottom right there is a gear icon, click on it to open android settings, got to the bottom and open “About tablet” click on build number 7 times, go back and open an entry “Developer options” that did just appear. Here you can enable USB debugging, and use adb normally. So you can install apps. To restore shelly app you likely need to copying stuff from your backup, specifically a userdata. It is unencrypted so should be easy. Sorry for bad English. Anyway i will work to make process simpler. And i will likely build custom rom based on newer android, and one that will be easier to work with.