Hi, I recently did an update and one device is missing - let's call it 241 (P1 Smart Meter) It's neither visible in the untility tab nor in the hardware list. In the DB it's there - in MultiMeter_Carlendar and DeviceStatus Other P1 Meters are there and working properly. When i open https://ip ...
Thanks, that solved it :D So if someone want exactly this without dzVents: commandArray = {} now = os.date("%H") * 60 + os.date("%M") sunset = timeofday['SunsetInMinutes'] sunrise = timeofday['SunriseInMinutes'] if now >= sunset or now <= sunrise then if (devicechanged['PIR2'] == 'On' and ...
Hi, I'd like to accomplish, that the motion sensor only works at night. With this code it works all of the time: -- LUA trigger set to device commandArray = {} -- Set the time: now = os.date("%H") * 60 + os.date("%M") sunrise = timeofday['SunsetInMinutes'] sunset = timeofday['SunriseInMinutes'] if ...