How to subscribe MQTT topic from IAMMETER

Subscribe MQTT topic from IAMMETER

Subscribe the command 

Subscribe real time data

 

MQTT in IAMMETER


Subscribe the command

You can subscribe the custom command from IAMMETER. In this way, if you have some open source hardware that can support MQTT protocol, then you can subscribe the MQTT command from IAMMETER and control your hardware. The open source hardware can be a plug outlet, infrared controller, switch relay and so on.

This is a video to show to to control a smart plug in IAMMETER

How to control a DIY MQTT smart plug in IAMMETER system

IAMMETER cloud have planed to upgrade our current function of "auto sending" to "trigger center" in near future. Then every data in IAMMETER would be able to be used as trigger source. Not only the email but also web hook, mqtt publish and many other function can be triggered.

 

Take MQTT.fx as example,

Broker address:mqtt.iammeter.com

Broker port: 1883

clientID: same as IAMMETER MQTT Setting

 

image-20210520124538028

 

image-20210520124857963


Subscribe real time data

 

Take MQTT.fx as example,

Broker address:mqtt.iammeter.com

Broker port: 1883

User name and password : same as IAMMETER MQTT Setting

image-20210510084954405

 

 

 

image-20210510084653367

 

 

 

image-20210510085344450

 

image-20210510085546771

 

 

 

 

Thread Status
7
815
3
0
0

Sort replies by:

As I have a LAN MQTT broker, will I be able to log the data locally to my local broker?

Subscribe MQTT topic from IAMMETERSubscribe the command Subscribe real time data  Subscribe the commandYou can subscribe the custom command from IAMMETER.
In this way, if you have some open source hardware that can support MQTT protocol, then you can subscribe the MQTT command from IAMMETER and control your hardware.
The open source hardware can be a plug outlet, infrared controller, switch relay and so on.This is a video to show to to control a smart plug in IAMMETERHow to control a

if you need to integrate the data in your LAN MQTT broker, I think there is a little development work need to do.


1 get the data from WEM3080 or WEM3080T via the local api
Please refer to https://www.iammeter.com/docs/integrate-with-PVOutput

2 then publish the data to you MQTT broker

Where on earth do you get the topics that you can subscribe to using real time MQTT.  The example above has you subscribing to 'device/3123DD25/realtime'  but where did you get this topic name?  I tried 3123DD25 on my system and no response.  This guide needs to be a bit more detailed as even though I have 96 devices going through my own MQTT gateway I could not set up Iammeter following your instructions. 

I guessed the device might be the serial number and was right.  The format of the JSON reponse should be set out as well as any other topics you can subscribe to.  For exmaple can you get the WiFi details (SSID, RSSI etc)

Where on earth do you get the topics that you can subscribe to using real time MQTT.  The example above has you subscribing to 'device/3123DD25/realtime'  but where did you get this topic name?  I tried 3123DD25 on my system and no response.  This guide needs to be a bit more detailed as even though I have 96 devices going through my own MQTT gateway I could not set up Iammeter following your instructions. 

Hi, thanks for your suggestion.

Please see my replies for your two posts.

1 we will upgrade to support more topic in future

2  You can not subscribe the topic that the SN had not been added in your account (even you know the SN)

The first step is connect the mqtt server by username and password(like below pic ,the user/pwd is only used in mqtt , not same as the user/pwd of account login). Then the mqtt will know which SN belong to your account. If you subscribe other SN that not valid or not belong to your account ,it will be not successful.

 

image-20210510084653367

 

The SN of "3123DD25" is belong to the user of "laoliu"

if you want to test it by subscribing the topic of "device/3123DD25/realtime"  ,you can connect the mqtt server by 

user:laoliu 

pwd: 123456 

(we will reset this pwd some days later)

then you will subscribe the topic of "device/3123DD25/realtime" successfullly.



I guessed the device might be the serial number and was right.  The format of the JSON reponse should be set out as well as any other topics you can subscribe to.  For exmaple can you get the WiFi details (SSID, RSSI etc)

Subscribe to Real-time energy data from the MQTT-broker of IAMMETER.

Video: https://youtu.be/JphSc9hHT_I

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