Logo
Shelly 3EM Power Monitoring Module Sensor (SHELLY3EM)
Shelly 3EM Power Monitoring Module

Available from:
Domadoo.fr
Amazon.de
Idealo.de



Manufacturer:
Shelly.cloud

Install method:
USB to Serial

GPIO #Component
GPIO00 User
GPIO01 User
GPIO02 Led 1
GPIO03 User
GPIO04 Button 1
GPIO05 ADE7880_IRQ 2
GPIO09 None
GPIO10 None
GPIO12 I2C SDA 1
GPIO13 ADE7880_IRQ 1
GPIO14 I2C SCL 1
GPIO15 Relay 1
GPIO16 Reset
GPIO17 None
Configuration
{"NAME":"Shelly 3EM","GPIO":[1,1,288,1,32,8065,0,0,640,8064,608,224,8096,0],"FLAG":0,"BASE":18}

** Before installing Tasmota make sure to retrieve a copy of the calibration data from your device! **

Download file calib.dat from http://<your_shelly3em>/calib.dat

Search your Shelly 3EM firmware dump for calib.dat

  • Edit the file to become a single line. Notice the removal of unneeded data to make the string as short as possible:
      {"rms":{"current_a":3166385,"current_b":3125691,"current_c":3131983,"current_s":1756557,"voltage_a":-767262,"voltage_b":-763439,"voltage_c":-749854},"angles":{"angle0":180,"angle1":176,"angle2":176},"powers":{"totactive": {"a":-1345820,"b":-1347328,"c":-1351979}},"freq":0}
    
  • Install Tasmota and use the above template.
  • In addition to possible rules add a rule containing the calib.dat string from above like:
    rule3 on file#calib.dat do {"rms":{"current_a":3166385,"current_b":3125691,"current_c":3131983,"current_s":1756557,"voltage_a":-767262,"voltage_b":-763439,"voltage_c":-749854},"angles":{"angle0":180,"angle1":176,"angle2":176},"powers":{"totactive": {"a":-1345820,"b":-1347328,"c":-1351979}},"freq":0} endon
    
  • Restart Tasmota and obeserve that the results seem calibrated as Tasmota now uses the information from calib.dat

Pinout

Shelly 3EM Pinout

GitHub Discussion