Skip to content

Shelly 1

Calin Crisan edited this page Jul 25, 2020 · 3 revisions

Device

Description

Shelly 1 is a smart Wi-Fi-operated switch. By default, it runs the Shelly proprietary firmware.

The following models are available:

Configuration

Provisioning configuration names:

Flash Parameters

  • flash mode: DIO
  • flash frequency: 40MHz

Pins

Number Function Remarks
0 status LED active low
4 push button active low
5 BL0937 CF only PM model
15 relay active high

Ports

Id Type Description Range/Unit Remarks
push_button boolean on/off button, setup button
relay boolean relay
active_power number active power W only PM model, needs calibration
energy number energy Wh only PM model, needs calibration
button_held button_held button held status
power_calib number power & energy calibration factor only PM model

Installation

Requirements

Procedure

  1. ⚠️ Do not power the device from mains! Do not connect it to AC at all during this procedure!

  2. Read the flashing instructions and be prepared to follow the flashing procedure.

  3. Identify the RX, TX, GND, VCC and GPIO0 connectors:

  4. Ensure the USB-to-serial adapter is not plugged into your laptop.

  5. Connect the following USB-to-serial adapter wires to their corresponding connectors on the board: RX, TX, GND and VCC .

  6. Ensure device will boot into bootloader mode by connecting the second GND wire of your USB-to-serial adapter to the GPIO0 header.

  7. Plug the USB-to-serial adapter into your laptop, effectively powering the ESP chip on the board.

  8. Follow the flashing procedure to flash the espQToggle firmware on the ESP chip.

  9. Disconnect all wires.

Next Steps

You can now power your device by connecting it to mains. Follow the initial setup instructions to connect the device to Wi-Fi and add it to your qToggle system.

Clone this wiki locally