mirror of
https://github.com/lehanspb/tuya-mqtt.git
synced 2025-12-16 17:54:36 +00:00
changed path variables
This commit is contained in:
@@ -151,7 +151,7 @@ then
|
|||||||
config = relatedConfig.label;
|
config = relatedConfig.label;
|
||||||
|
|
||||||
var args = config + " now";
|
var args = config + " now";
|
||||||
var output = executeCommandLine("node /etc/openhab2/scripts/tuya-api/tuya.js " + args, 5000);
|
var output = executeCommandLine("node /etc/openhab2/scripts/tuyaapi_openhab/tuya.js " + args, 5000);
|
||||||
det.postUpdate(output);
|
det.postUpdate(output);
|
||||||
if(output != "ON" && output != "OFF"){
|
if(output != "ON" && output != "OFF"){
|
||||||
logError(appName, "State changed to " + output)
|
logError(appName, "State changed to " + output)
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ then
|
|||||||
config = relatedConfig.label;
|
config = relatedConfig.label;
|
||||||
|
|
||||||
var args = config + " now";
|
var args = config + " now";
|
||||||
var output = executeCommandLine("node /etc/openhab2/scripts/tuya-api/tuya.js " + args, 5000);
|
var output = executeCommandLine("node /etc/openhab2/scripts/tuyaapi_openhab/tuya.js " + args, 5000);
|
||||||
det.postUpdate(output);
|
det.postUpdate(output);
|
||||||
if(output != "ON" && output != "OFF"){
|
if(output != "ON" && output != "OFF"){
|
||||||
logError(appName, "State changed to " + output)
|
logError(appName, "State changed to " + output)
|
||||||
|
|||||||
Reference in New Issue
Block a user