I try to use a script time in the 2026-1 version.
as nothing happens in my script i try to look a log
to check that i use the script provided when you add a new script time.
I observe that the frequency is close to 4 minutes instead of the forecasted 1 minute.
on a raspi 4 the script:
uname -acommandArray = {}
print ("Time based event fired");
-- loop through all the devices
for deviceName,deviceValue in pairs(otherdevices) do
-- if (deviceName=='myDevice') then
-- if deviceValue == "On" then
-- print("Device is On")
-- elseif deviceValue == "Off" then
-- commandArray['a device name'] = "On"
-- commandArray['Scene:MyScene'] = "Off"
-- end
-- end
end
-- loop through all the variables
for variableName,variableValue in pairs(uservariables) do
-- if (variableName=='myVariable') then
-- if variableValue == 1 then
-- commandArray['a device name'] = "On"
-- commandArray['Group:My Group'] = "Off AFTER 30"
-- end
-- end
end
return commandArray
Linux kan 6.12.75+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.75-1+rpt1~bookworm (20 26-03-11) aarch64 GNU/Linux
top command
top - 16:28:13 up 7 days, 9:17, 4 users, load average: 0.31, 0.47, 0.46
Tasks: 184 total, 3 running, 181 sleeping, 0 stopped, 0 zombie
%Cpu(s): 2.2 us, 0.5 sy, 0.0 ni, 97.2 id, 0.1 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 3795.8 total, 906.4 free, 591.3 used, 2388.9 buff/cache
MiB Swap: 512.0 total, 512.0 free, 0.0 used. 3204.5 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
241724 root 20 0 2601100 385972 23620 S 6.3 9.9 16,11 domoticz
2733480 root 20 0 36140 26112 9620 S 2.3 0.7 0:03.91 python3
2735129 root 20 0 11732 5052 2880 R 0.7 0.1 0:00.06 top
90 root 0 -20 0 0 0 I 0.3 0.0 40:23.39 kworker/u21:0-brcmf_wq/mmc1
2728275 root 20 0 0 0 0 I 0.3 0.0 0:00.21 kworker/3:1-events_freezable
2728460 root 20 0 0 0 0 R 0.3 0.0 0:01.20 kworker/u17:0-events_unbound
what do you think?
do you use this kind of script in this version?
what i is my mistake?