Trigger the SonOff (tasmota firmware ) from IAMMETER

 

About tasmota

Trigger the sonoff (tasmota firmware ) from IAMMETER 

    Add a mqtt device in IAMMETER and get the ClientID

    configure the product ( run tasmota)

      configure the Wi-Fi setting

      configure the MQTT

 Test the Tasmota command in IAMMETER

 Trigger the switch on/off by IAMMETER

How to get the sonoff product with tasmota firmware

About tasmota

tasmota is an open source firmware for ESP8266 devices, it support nearly all of SonOff device.

 

If you have sonoff device and download the tasmota firmware in it, you will be able to control it from IAMMETER now. After you have control them from IAMMETER successfully, you can also trigger them from IAMMETER. Then you can accomplish such work easily, "when the (inverter or grid ) power is greater than xxx, turn on/off the switch".

Trigger the sonoff (tasmota firmware ) from IAMMETER

Add a mqtt device in IAMMETER and get the ClientID

  • input a name,click "click add" , then a "clientID" will be added in your account.
  • Please remember this "ClientID", it will be used in the configuration of the tasmota firmware.image-20210601085155941

 

configure the product ( run tasmota)

configure the Wi-Fi setting

Connect the ssid begin with "tasmota" and visit 192.168.4.1 , enter the Network and password of the router and click save.

image-20210601094902220

Please note ,the tasmota do not support ssdp or mDns yet, so you need to login the router to find the local ip of the device after it connected to router successfully.

configure the MQTT

Host: mqtt.iammeter.com

Port: 1883

ClientID: the "ClientID" in MQTT Setting of IAMMETER

Topic: device/"ClientID in IAMMETER"/

Full Topic: %topic%/%prefix%/

 

image-20210601093957511

 

Test the Tasmota command in IAMMETER

If all the setting is OK, the status here will be "Online".

image-20210601095409651

Please click "Publish test"

image-20210601095833810

 

Enter “cmnd/POWER” in topic , this command format is defined by tasmota, command in tasmota

Enter "0" or "1" in payload , the switch would be turn on/off.

 

Trigger the switch on/off by IAMMETER

Use a simple example to show how to turn on a switch when the power is greater than 100W.

image-20210601100453118

 

image-20210601100733843

 

image-20210601100841532

How to get the sonoff product with tasmota firmware

There are two ways to get the Sonoff products that run tasmota

  1. flash the tasmota firmware in Sonoff by yourself, please refer to https://tasmota.github.io/docs/Getting-Started/ .It is a little difficult if you are not a electrical amateur.

  2. buy it directly from aliexpress or amazon.

    image-20210601101940601

Thread Status
2
2305
1
0
0

Sort replies by:
Looks like you are new here. Register for free, learn and contribute.