diff --git a/lua/LUA-SmartPing-SingelDev_ON-OFF-UnConfigured.lua b/lua/LUA-SmartPing-SingelDev_ON-OFF-UnConfigured.lua new file mode 100644 index 0000000..57c89e9 --- /dev/null +++ b/lua/LUA-SmartPing-SingelDev_ON-OFF-UnConfigured.lua @@ -0,0 +1,16 @@ +commandArray = {} +--@HomeSelector +MainSelector='' + +--Devices +Phone='' + +for deviceName,deviceValue in pairs(devicechanged) do +if (otherdevices[Phone] == 'On') then + if otherdevices[MainSelector] == 'Yes' then else commandArray[MainSelector] = 'Set Level: 30' end +elseif (otherdevices[Phone] == 'Off') then + if otherdevices[MainSelector] == 'No' then else commandArray[MainSelector] = 'Set Level: 0' end +end +end + +return commandArray \ No newline at end of file