ADVANCED POWER MANAGEMENT (APM) Sonoff (Smart Switches) · Sonoff (Smart Switches) Sonoff is an...

8
1 ADVANCED POWER MANAGEMENT (APM) The APM (Advanced Power Management) application was specifically designed for the user who prefers using smart switches to control various appliances in and around their home. Home automation is "The Internet of Things". It simply means the way all devices or appliances are networked together to provide users with a seamless control over their home equipment. Sonoff (Smart Switches) Sonoff is an affordable WiFi smart switch that provides users with smart home control. It is a remote control power switch that can connect to a wide range of appliances. Sonoff WiFi electrical switches transmits data to a cloud platform through the WiFi Router, which enables users to remotely control all their connected appliances. In order to use the Sonoff switches the stock (original) firmware need to be replaced with the Tasmota open source firmware (e.g. flashing the switch). Having done so, you can easily integrate and control the switches with the ICC-AMP software. Please note that all switched purchased from Intelligent Customised Coding (ICC) is already flashed with the Tasmota open source firmware and therefore compatible with the ICC Advanced Power Management (APM) software. How to link the Sonoff switched to your WiFi network. In order to successfully configure the Tasmota Sonoff switch to your WiFi network you would need the following information: The SSID of your WiFi network AccessPoint (AP) or router and The password of your WiFI (SSID) connection Intelligent Customised Coding ICC - APM

Transcript of ADVANCED POWER MANAGEMENT (APM) Sonoff (Smart Switches) · Sonoff (Smart Switches) Sonoff is an...

Page 1: ADVANCED POWER MANAGEMENT (APM) Sonoff (Smart Switches) · Sonoff (Smart Switches) Sonoff is an affordable WiFi smart switch that provides users with smart home control. It is a remote

1

ADVANCED POWER MANAGEMENT (APM)

The APM (Advanced Power Management) application was specifically designed for the user who prefers using smart switches to control various appliances in and around their home.

Home automation is "The Internet of Things". It simply means the way all devices or appliances are networked together to provide users with a seamless control over their home equipment.

Sonoff (Smart Switches)

Sonoff is an affordable WiFi smart switch that provides users with smart home control. It is a remote control power switch that can connect to a wide range of appliances. Sonoff WiFi electrical switches transmits data to a cloud platform through the WiFi Router, which enables users to remotely control all their connected appliances.

In order to use the Sonoff switches the stock (original) firmware need to be replaced with the Tasmota open source firmware (e.g. flashing the switch). Having done so, you can easily integrate and control the switches with the ICC-AMP software. Please note that all switched purchased from Intelligent Customised Coding (ICC) is already flashed with the Tasmota open source firmware and therefore compatible with the ICC Advanced Power Management (APM) software.

How to link the Sonoff switched to your WiFi network.

In order to successfully configure the Tasmota Sonoff switch to your WiFi network you would need the following information:

• The SSID of your WiFi network AccessPoint (AP) or router and • The password of your WiFI (SSID) connection

Intelligent Customised Coding

ICC - APM

Page 2: ADVANCED POWER MANAGEMENT (APM) Sonoff (Smart Switches) · Sonoff (Smart Switches) Sonoff is an affordable WiFi smart switch that provides users with smart home control. It is a remote

INTELLIGENT CUSTOMISED CODING

2

Step 1:

Power up the Sonoff device and connect the appliance that you want to control. Press and hold the Sonoff button for 5 seconds, so the LED green starts blinking. Please ensure that all safety measures are undertaken during this process.

Page 3: ADVANCED POWER MANAGEMENT (APM) Sonoff (Smart Switches) · Sonoff (Smart Switches) Sonoff is an affordable WiFi smart switch that provides users with smart home control. It is a remote

INTELLIGENT CUSTOMISED CODING

3

Step 2: Use your mobile device and scan for all WiFi devices. Select the Sonoff device and open. The following information will be displayed. Select “Configure MQTT” to setup the Sonoff switch.

Step 3:

Configure the Sonoff MQTT parameters to the following:

• Host – Insert ICC-Pi address e.g. 192.168.0.7 • Port – Insert 1883 • Client – No entry data required • User – No entry data required • Password – No entry data required • Topic – Select a suitable name for the switch e.g. Washing Machine • Full Topic – No entry data required

Page 4: ADVANCED POWER MANAGEMENT (APM) Sonoff (Smart Switches) · Sonoff (Smart Switches) Sonoff is an affordable WiFi smart switch that provides users with smart home control. It is a remote

INTELLIGENT CUSTOMISED CODING

4

Step 4: Open the AMP application on your Raspberry Pi.

Page 5: ADVANCED POWER MANAGEMENT (APM) Sonoff (Smart Switches) · Sonoff (Smart Switches) Sonoff is an affordable WiFi smart switch that provides users with smart home control. It is a remote

INTELLIGENT CUSTOMISED CODING

5

Overview of the APM application

The APM software allows for four (4) Sonoff WiFi controlled switches to be connected. Additional switches can be added if they are connected to the same circuit breaker. For examples, the following appliances are connected to the same circuit breaker named “Kitchen” e.g. microwave, dishwasher, slow cooker and kettle. If you have renamed Switch 1 as “Kitchen” all settings applied to this device (e.g. circuit breaker) will be executed for all 4 appliances connected (e.g. microwave, dishwasher slow cooker and kettle).

Please ensure that you are using a licensed version of APM. The version number will be displayed in numerical form e.g. Version (1.4). If the version number is not displayed and only indicates “Running Latest Version”, please confirm validity of licence with the software developer at [email protected].

Page 6: ADVANCED POWER MANAGEMENT (APM) Sonoff (Smart Switches) · Sonoff (Smart Switches) Sonoff is an affordable WiFi smart switch that provides users with smart home control. It is a remote

INTELLIGENT CUSTOMISED CODING

6

How to setup the APM application.

Configure the APM parameters to the following:

• Host Address – localhost • Port Number – Insert 1883 • User – No entry data required • Password – No entry data required

Configure the APM “Settings Page” to the following:

• Smart Switch 1 MQTT Topic Name – The name you assigned to the Sonoff switch 1. • Smart Switch 1 MQTT Topic Name – The name you assigned to the Sonoff switch 2.

Please ensure that assigned names are exactly the same in both APM and Sonoff.

• Press save • Close the APM application and open again to display the assigned names.

Page 7: ADVANCED POWER MANAGEMENT (APM) Sonoff (Smart Switches) · Sonoff (Smart Switches) Sonoff is an affordable WiFi smart switch that provides users with smart home control. It is a remote

INTELLIGENT CUSTOMISED CODING

7

Selection of variables to control smart switches:

The following list details the variables available (Select a feed) to set smart switches to be able to control various appliances in and around your home.

• Time Control • Time Range Control • Grid Volts • Grid Watts • Inverter Volts • Load Watts • Battery Volts • Battery Amps • Battery Watts • Battery SOC (State of Charge) • Battery KW Usage • PV Volts • PV Amps • PV Watts • Probe Temperature (if you have an external temperature probe attached)

Only two variables at a time can be selected to control the smartswitch, e.g. Grid Volts & Battery SOC or PV Volts & Grid Volts. Separate to the selected variables, time as a function can be added.

APM setup example (Swimming Pool Pump)

You have configured one Sonoff switch to the swimming pool pump. You want the swimming pool pump to run during optimum Photovoltaic (PV) production and only when the battery are fully charges (e.g. 100%SOC). The APM setup would be as follows.

Page 8: ADVANCED POWER MANAGEMENT (APM) Sonoff (Smart Switches) · Sonoff (Smart Switches) Sonoff is an affordable WiFi smart switch that provides users with smart home control. It is a remote

INTELLIGENT CUSTOMISED CODING

8

APM setup example (Air conditioner)

You have configured one Sonoff switch to the living room air conditioner. You would like the aircon to run when the batteries are more than 90% charges (SOC>90) and to switch of when the grid voltage are less than 100Volts. The APM setup would be as follows.

APM setup example (Coffee Machine)

You have configured one Sonoff switch to your coffee machine. You would like to start the coffee machine 10 minutes before your alarm is set to go off. You get up at 6 am every morning. The APM setup would be as follows.