Skip to content

Home Energy Monitor Kit Initial Configuration

Michael J. Kidd edited this page Apr 21, 2020 · 8 revisions
In order for the software on the Raspberry Pi to have access to the current readings for your coach, you must configure the current monitor to connect to your existing WiFi and provide it with the Raspberry Pi's IP address and MQTT topic. If that sounds like Greek, no worries, we'll give you step by step instructions. If you're using the CircuitSetup device, keep reading. If you're using the ShellyEM, click here to jump to that section of the document.

CircuitSetup Initial Configuration

On first boot, CircuitSetup device should broadcast a WiFI network called emonESP_XXXXXX. Connect to this WiFi network and the system should forward you to the log-in page. If this does not happen navigate to http://192.168.4.1

Note: If connecting from an mobile device, you may be asked if you want to stay connected since the network does not have internet access. Ensure you opt to stay connected, otherwise the rest of the config will not be possible.

Section 1. WiFi Connection

  1. Select your WiFi network from list of available networks
  2. Enter WiFi Passkey then click Connect
    Wifi setup
  3. emonESP should now connect to local wifi network and return local IP address.
  4. Browse to local IP address by clicking the hyperlink (assuming your computer is on the same WiFi network) On future boots EmonESP will automatically connect to this network.

Note: on some networks it's possible to browse to the EmonESP using hostname http://emonesp or on windows http://emonesp.local

If re-connection fails (e.g. network cannot be found) the EmonESP will automatically revert back to WiFi AP mode after a short while to allow a new network to be re-configued if required. Re-connection to existing network will be attempted every 5min.

Wifi setup

Section 3. MQTT

  1. Enter Raspberry Pi IP address in the MQTT Server field.
  2. In the MQTT Base-topic*: field, enter powermon
    MQTT Setup
  3. Click Connect or Save button
  4. After a few seconds Connected: No should change to Connected: Yes if connection is successful. Re-connection will be attempted every 10s.

ShellyEM Initial Configuration

On first boot, the ShellyEM will broadcast a WiFi network called shellyem-XXXXXX. Connect to this WiFi network and the system should forward you to the log-in page. If this does not happen, navigate to http://192.168.33.1

Note1: If connecting from an mobile device, you may be asked if you want to stay connected since the network does not have internet access. Ensure you opt to stay connected, otherwise the rest of the config will not be possible.

Note2: Shelly does have a mobile app to help get things connected. However, part of the setup requires disabling the Shelly Cloud integration, so using the app and creating an account is not needed.

WiFi Connection

  1. Click the Internet & Security button at the lower part of the screen.
  2. Expand the WIFI MODE - CLIENT section
  3. Check the Connect the Shelly device to an existing WiFi Network check-box.
  4. Type your existing network's WiFi Name into the WiFi Name field
  5. Click the eye icon to the right end of the WiFi Password field (the one with the lock symbol on the left). This will allow you to see the password as you type it in.
  6. Type your existing network's WiFi Password into the WiFi Password field (the one with the lock symbol)
  7. Click the SAVE button -- You'll now be disconnected as the ShellyEM connects to your existing WiFi network.

After a minute or so, look for the ShellyEM on your network.

  • The easiest method is to log into your WiFi router or Hotspot and look at the 'Clients' list.
  • For Linux, Mac OS, or Windows, you may also use AngryIP Scanner software for free. Before you scan:
    • From the menu, click Tools -> Fetchers
    • Select MAC Vendor under Available fetchers
    • Then click the left arrow button between the two sections to move it under the Selected fetchers
    • Then click OK and begin the scan by clicking the green Start button.
    • After the scan completes, look for Espressif in the MAC Vendor column.

Set the Current Transformer Type

  1. Click the Settings button at the lower portion of the screen.
  2. Expand the CURRENT TRANSFORMER TYPE section
  3. Ensure 50 A is selected for both Channel 1 and 2.

Firmware Update

  1. Click the Settings button at the lower portion of the screen.
  2. Expand the FIRMWARE UPDATE section
  3. If you see a notice stating a new firmware is available, click the UPDATE FIRMWARE button
  4. Confirm the update by clicking the Yes button at the top of the screen.
  5. After a few minutes, reconnect to your ShellyEM in the browser to continue setup below.

MQTT

  1. Click the Internet & Security button at the lower portion of the screen.
  2. Expand the ADVANCED - DEVELOPER SETTINGS section.
  3. Check the Enable action execution via MQTT check-box.
  4. In the Server: field, enter the IP address of the Raspberry Pi, followed by :1883 (no spaces)
  5. Click the SAVE button