practical operation tutorial: trigger a real smart socket on the internet

 

Video tutorial: https://www.youtube.com/watch?v=aDzJzsjnjIw 


Remotely controlling third-party devices is a very cool feature of IAMMETER-cloud.

For example, you can switch on the smart socket when the reading of solar generation on IAMMETER-cloud is larger than a preset value, to help you improve the self-consumption rate of your solar PV system.

In order to better introduce this feature, we have installed an open-source smart socket in our office and set it public on the Internet. This tutorial will teach you to control this real smart socket plug (pre-flashed with the Tasmota open-source firmware) online.

 

 

Control the smart socket directly

Before you control the smart socket from IAMMETER-cloud, you can try to control the smart socket directly to confirm the connectivity firstly.

 

1. Visit http://www.iammeter.com/demo.html (it is http url ,not https)

2. Click the toggle, then the socket can be switched On/Off online

Please note:

  1. The video frame takes about 10 seconds to be refreshed completely.
  2. The bulb will be switched On/Off (there will be a 7-10 seconds latency in the video, and you can confirm the latency by comparing the timestamp).

 

image-20211207152817365

 

image-20211208104014557

 

 

Control the smart socket from IAMMETER-cloud

After confirming the connectivity, let's start to control this smart socket from IAMMETER-cloud.

Create a Mqtt clinetID from IAMMETER-Cloud

  1. Set "MQTT password" and click save.

    (This is the password for MQTT connection, which has nothing to do with the password of login. Please do not use your login password here).

  2. input the name of ClinetID and click add.

The "Username","MQTT Password" and "Clientid" will be used when you configure the smart socket later.

image-20211207152204707

 

Configure the smart socket plug by your MQTT information

  1. Configuration->Configure MQTT

image-20211207155947370

 

  1. Fill the MQTT paramters on IAMMETER-cloud to set the MQTT configuration of the smart socket plug.

 

image-20211207160129870

  1. click "save"

Publish the command to the smart socket from IAMMETER-cloud

Then, the status will be "Online".

  1. click "Publish test"
  2. Topic :cmnd/power
  3. Payload: 1 or 0

image-20211207160157709

 

image-20211207160610309

 

image-20211207160704100

 

Control the smart socket by the preset triggering conditions automatically

Now ,we can do the final test, to control the smart socket plug automatically by preset triggering conditions.

image-20211207151333397

image-20211207161149897

image-20211207161541369

image-20211207161518472

 

image-20211208110428757

How to get the same smart socket plug in this tutorial

Smart socket products are not our products. The smart socket in this tutorial is SonOFF products which is preflahed with the Tasmota firmware. How to get it ,please refer to

https://imeter.club/topic/43#how-to-get-the-sonoff-product-with-tasmota-firmware

 

Reference

Trigger the SonOff (tasmota firmware ) from IAMMETER

How to subscribe MQTT topic from IAMMETER

 

Special Note

  1. Because there is only one smart socket , if two customers manipulate it at the same time, the later configuration will overwrite the previous one. we recommend to clear your MQTT information after you have finished the testing, then the next user will know that there is no one is using this smart socket now.
  2. When you do this testing, please use a simple MQTT password. After you have finished this testing, please change the MQTT password and delete the ClientID in your account.

Thread Status
1
448
1
1
0

Sort replies by:

The complete tutorial about how to use the auto-send function in IAMMETER.


https://www.iammeter.com/docs/alert-and-notification

Looks like you are new here. Register for free, learn and contribute.