Developer Setup

These instructions cover an end-to-end test of the PowerShaper system using the staging service.

Test Aims

  1. A Carbon Co-op Hub user (customer) must be able to register for the PowerShaper service

  2. A Carbon Co-op PowerShaper administrator (admin) must be able to register that user for the PowerShaper service.

  3. The admin must be able to create an image for a raspberry pi, suitable for installation in customers property as a HEMS.

  4. The installer must be able to install that HEMS in the customers property.

  5. The installer must be able to register the HEMS with the PowerShaper server, with the minimum number of steps.

  6. The installer must be able to install a Shelly device on a private wifi network provided by the HEMS

  7. The installer must be able to register the Shelly device with the HEMS with the minimum number of steps.

  8. The admin must be able to add the customer’s HEMS to a Demand Response Programme.

  9. The admin must be able to create a Demand Response Event

  10. The Demand Response Event must be visible in the HEMS

  11. The Demand Response Event must cause the Shelly to toggle state

Required Components

  1. A blank SD card

  2. A raspberry pi 3

  3. A Shelly wifi switch

Test Prerequisites

  1. The Carbon Co-op Hub staging server must be running at https://hub-staging.carbon.coop/

  2. The PowerShaper staging server must be running at https://app-staging.powershaper.io/

  3. The customer signing up to the service must have a logon in the Hub CRM system.

  4. The PowerShaper OpenADR VTN server must be running at https://openadr-staging.carbon.coop/

  5. The admin must have an administrator account for the VTN server

Test Procedure

Hub Setup

  1. Login as an admin to the the Carbon Co-op Hub.

  2. Create an entry in the CRM system for the test user, and create a Hub user for them.

  3. Log out of the hub as admin, and log in as the test user you have just created.

  4. Complete the PowerShaper enrolment process, including adding your smart meter details.

  5. Log in to the PowerShaper administrator interface as an admin.

  6. Find the test user in the participants list.

  7. Find the installation job sheet for the test user participant.

  8. Note the shortcode field for later.

Raspberry Pi Setup

  1. Download the latest image from Balena - either using the provisioning scripts or through the web interface.

  2. Burn the image to your SD card using Balena Etcher, and insert into your Pi.

  3. Install the Pi - connect it to a stable USB power supply and connect it to your router with an ethernet cable. It must use a wired internet connection.

  4. Discover the IP address of the pi, using arp-scan or you router interface.

  5. Navigate to this IP address in your browser. When the Pi is up, you should see the Home Assistant onboarding page.

  6. Verify that you now have a new WiFi network available - ccoop-hems-xxx

  7. Pause.

Shelly One Setup

  1. Install the Shelly hardware correctly.

  2. Verify that a new WiFi network is available - shelly1-XXXXXX

  3. Connect to this network and navigate your browser to 192.168.33.1

  4. Verify that your Shelly switch is toggling as expected using the web interface

  5. Change the Shelly WiFi configuration to use client mode, and connect it to the ccoop-hems-xxx network. The password is the Balena device name - you can find this by logging into BalenaCloud.

Set Shelly One WiFi to client mode
  1. The Shelly will now restart in client mode and connect to the wifi network. Find the new IP address of the Shelly using arp-scan

  2. Under “Advanced - Developer Settings” enable MQTT.

Shelly One MQTT configuration
  1. Insert the Pi IP address in the server field, along with the MQTT port - it should always be 10.42.0.1:1883

  2. Save the configuration.

  3. Pause

Home Assistant Setup

  1. Connect your laptop to the ccoop-hems-xxx WiFi network.

  2. Navigate to 10.42.0.1 and follow the Home Assistant onboarding process.

  3. Add a new integration - search for OpenADR VEN

  4. Copy the shortcode taken from the particiant installation jobsheet from the hub into this field.

  5. If successful, you should see a new element in the Home Assistant home interface. If this element has a tick in it, a DR event is in progress.

../_images/dr_event_element.png
  1. Verify that the Shelly switch has been discovered by Home Assistant. If it appears but is “Unavailable” restart the Shelly through it’s own web interface.

../_images/switch_ha.png
  1. Toggle the switch in HA and verify that the Shelly relay activates / deactivates

OpenADR Event Setup

  1. Navigate to https://nocert.openadr.carbon.coop and login with your administrator account.

  2. Verify that the site status is “Online”.

  3. Add the customer’s site to a Demand Response program - click the customer and click into the site. Select the DR programs you want to sign them up for and save the site.

Create Demand Response Event

  1. Create an upcoming Demand Response event, and include the test participant.

  2. Verify that the test participant gets email/SMS notifications of the event.

  3. Manually turn the switch on.

  4. Verify that the switch is turned off during the event.

  5. Verify that the switch is turned back on after the event.