From d05ac857d8fd5522ed4922247f252bd759781101 Mon Sep 17 00:00:00 2001 From: tsightler Date: Thu, 17 Sep 2020 21:50:10 -0400 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6708093..abba412 100644 --- a/README.md +++ b/README.md @@ -52,18 +52,18 @@ Set DEBUG=-* & node c:/openhab2/userdata/etc/scripts/tuya-mqtt.js ``` ### MQTT Topic's (send data) -**-----IMPORTANT NOTE-----** -**It's possible to replace the device IP address \ with the word "discover" to have the API attempt to automatically discover the device IP address. This capability allows support for 3.3 protocol devices without additional configuraiton but does require the system running this script to be on the same IP subnet as the Tuya device because discover relies on UDP broadcast from the devices.** +**It's possible to replace the device IP address \ with the word "discover" to have the API attempt to automatically discover the device IP address. This allows support for 3.3 protocol devices transparently, without additional configuraiton, but does require the system running this script to be on the same IP subnet as the Tuya device since the discovery protocol relies on UDP broadcast packets from the devices.** ``` tuya///discover/state tuya///discover/command ``` -If discovery will not work for your case you can still use the IP address, but, to use protocol 3.3 you must specify it in the topic explicitly +**If discovery will not work for your case you can still use the IP address, but, to use protocol 3.3 you must specify it in the topic explicitly** ``` tuya/ver3.3//////command ``` -Command topic to change device state +Example command topic to set the device state: +``` tuya////command Example MQTT message payload for basic command (assumes DPS 1 is "on/off" control):