


I use one at my desk and it is cycled at least once a day, 5 days a week. If fibaro:getValue(deviceItems, "isLight") = "1" thenĮlseif fibaro:getType(deviceItems) = "" thenįibaro:call(deviceItems, "setValue", "0") Įlseif fibaro:getType(deviceItems) = " have 2 of these Greenwave power strips. If fibaro:getType(deviceItems) = "221" or fibaro:getType(deviceItems) = "222" or fibaro:getType(deviceItems) = "" thenįibaro:call(deviceItems, "setValue", "0")Įlseif fibaro:getType(deviceItems) = "" then Door Bell Sensor with MySensor Arduino - HomeSeer Message. TurnOff lights and close blinds, functions HS3 plugin - HomeSeer Message Board It reports battery level to my home automation system. DO NOT CHANGE LINES BELOW -įibaro:debug(string.format('%s', "span", color, message, "span")) ĭebug( "orange", "Sleep & SecureYourHouse scene - LUA Scripting by Jonny Larsson 2015" ) VarStateSleep = "Sleep" - SleepState value

VarState = "SleepState" - SleepState variable VarTOD = "TimeOfDay" - TimeOfDay variable USER SETTINGS -ĭebug = true - set debug to true or false ver 0.0.2 Check if binarySwitch isLight
