diff --git a/README.md b/README.md index bbb58df..9faa0e3 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ then config = relatedConfig.label; 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); if(output != "ON" && output != "OFF"){ logError(appName, "State changed to " + output) diff --git a/openhab2/rules/tuya-switch.rules b/openhab2/rules/tuya-switch.rules index 59c0051..3a22b9c 100644 --- a/openhab2/rules/tuya-switch.rules +++ b/openhab2/rules/tuya-switch.rules @@ -72,7 +72,7 @@ then config = relatedConfig.label; 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); if(output != "ON" && output != "OFF"){ logError(appName, "State changed to " + output)