node-lumi-aqara icon indicating copy to clipboard operation
node-lumi-aqara copied to clipboard

Set sensors' state by sending commands to them using MQTT

Open ghasemikasra39 opened this issue 5 years ago • 1 comments

I've read the source code of your module, many articles about MQTT topic naming, a virtual scenario of a garage application, getting data from a sensor using MQTT, etc.

Now I am able to receive the states and updates from Xiaomi sensors with MQTT using (node-xiaomi2mqtt module which is built based on your module).

My question is: Is it possible to set the state of a sensor (e.g. I want to turn on a light from my nodeJs web application by publishing MQTT message to that light) using MQTT?

This question is somehow asked in this issue last year.

Is sending commands to Xiaomi sensors possible ? If yes, how ? (Could you provide me with references, links to articles, examples, etc)

ghasemikasra39 avatar Oct 05 '18 08:10 ghasemikasra39