I took some measurements
With the proxmox configuration I managed to achieve a response time of 10 ms, but only with one LUA file.
With only 1 blockly (nothing else):
measurement 1:
- Spoiler: show
Code: Select all
2020-10-13 13:35:54.579 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 13:35:54.583 (AEON) General/Alarm (Alarm Type: Home Security 7 (0x07))
2020-10-13 13:35:54.587 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2020-10-13 13:35:54.611 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
2020-10-13 13:35:54.614 (AEON) Light/Switch (E-I-Kapcsolo-Jobb)
2020-10-13 13:35:54.625 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 13:35:54.954 (AEON) Current (E-GY-Klima-Aram)
2020-10-13 13:35:54.578 Status: OpenZWave: Alarm received (Home Security: Motion Detected at Unknown Location), NodeID: 34 (0x22)
1 step: 2020-10-13 13:35:54.587 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2 step: 2020-10-13 13:35:54.611 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a
1->2: 24 ms
measurement 2:
- Spoiler: show
Code: Select all
2020-10-13 13:39:47.094 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 13:39:47.098 (AEON) General/Alarm (Alarm Type: Home Security 7 (0x07))
2020-10-13 13:39:47.102 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2020-10-13 13:39:47.111 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 13:39:47.128 (AEON) Lux (E-I-Mozgas2-Illuminance)
2020-10-13 13:39:47.131 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
2020-10-13 13:39:47.134 (AEON) Light/Switch (E-I-Kapcsolo-Jobb)
2020-10-13 13:39:47.093 Status: OpenZWave: Alarm received (Home Security: Motion Detected at Unknown Location), NodeID: 34 (0x22)
1 step: 2020-10-13 13:39:47.102 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2 step: 2020-10-13 13:39:47.131 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
1->2: 29 ms
with enabled dzvents ( delete blockly)
Code: Select all
return {
on = {
devices = { 'E-I-Mozgas2-Home Security' } },
execute = function(domoticz, switch)
if (switch.state == 'On') then
domoticz.devices('E-I-Kapcsolo-Jobb').switchOn()
end
end
}
measurement 1:
- Spoiler: show
Code: Select all
2020-10-13 13:53:53.336 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 13:53:53.345 (AEON) General/Alarm (Alarm Type: Home Security 7 (0x07))
2020-10-13 13:53:53.352 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2020-10-13 13:53:53.358 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 13:53:53.502 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
2020-10-13 13:53:53.505 (AEON) Light/Switch (E-I-Kapcsolo-Jobb)
2020-10-13 13:53:53.333 Status: OpenZWave: Alarm received (Home Security: Motion Detected at Unknown Location), NodeID: 34 (0x22)
1 step: 2020-10-13 13:53:53.352 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2 step: 2020-10-13 13:53:53.502 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
1->2 150 ms
measurement 2:
- Spoiler: show
Code: Select all
2020-10-13 13:55:18.403 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 13:55:18.411 (AEON) General/Alarm (Alarm Type: Home Security 7 (0x07))
2020-10-13 13:55:18.418 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2020-10-13 13:55:18.424 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 13:55:18.563 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
2020-10-13 13:55:18.567 (AEON) Light/Switch (E-I-Kapcsolo-Jobb)
2020-10-13 13:55:18.400 Status: OpenZWave: Alarm received (Home Security: Motion Detected at Unknown Location), NodeID: 34 (0x22)
1 step: 2020-10-13 13:55:18.418 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2 step: 2020-10-13 13:55:18.563 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
1→ 2 : 145 ms
With pass2php with ocache enabled ( delteted all blockly and dzVents script, disabled dzVents)
with this pass2php lua script:
Code: Select all
print("Start of script device");
for d,s in pairs(devicechanged)
do
print("End of script device");
os.execute('curl -X POST -d "d='..d.."&s="..s..'" http://127.0.0.1/secure/pass2php.php &')
end
print("Curl ended");
commandArray={}
- Spoiler: show
Code: Select all
2020-10-13 14:02:57.158 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 14:02:57.166 (AEON) General/Alarm (Alarm Type: Home Security 7 (0x07))
2020-10-13 14:02:57.174 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2020-10-13 14:02:57.185 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 14:02:57.269 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
2020-10-13 14:02:57.271 (AEON) Light/Switch (E-I-Kapcsolo-Jobb)
2020-10-13 14:02:57.157 Status: OpenZWave: Alarm received (Home Security: Motion Detected at Unknown Location), NodeID: 34 (0x22)
2020-10-13 14:02:57.162 Status: LUA: Start of script device
2020-10-13 14:02:57.162 Status: LUA: End of script device
2020-10-13 14:02:57.167 Status: LUA: Curl ended
2020-10-13 14:02:57.171 Status: LUA: Start of script device
2020-10-13 14:02:57.171 Status: LUA: End of script device
2020-10-13 14:02:57.176 Status: LUA: Curl ended
2020-10-13 14:02:57.180 Status: LUA: Start of script device
2020-10-13 14:02:57.180 Status: LUA: End of script device
2020-10-13 14:02:57.185 Status: LUA: Curl ended
2020-10-13 14:02:57.192 Status: LUA: Start of script device
2020-10-13 14:02:57.192 Status: LUA: End of script device
2020-10-13 14:02:57.197 Status: LUA: Curl ended
2020-10-13 14:02:57.228 Status: => (STORE) => E-I-Mozgas2-Sensor => Off (Pass2PHP)
2020-10-13 14:02:57.266 Status: => (STORE) => E-I-Mozgas2-Home Security => On (Pass2PHP)
2020-10-13 14:02:57.266 Status: => (STORE) => E-I-Mozgas2-Sensor => On (Pass2PHP)
2020-10-13 14:02:57.266 Status: => (STORE) => Alarm Type: Home Security 7 (0x07) => Motion Detected at Unknown Location (Pass2PHP)
2020-10-13 14:02:57.267 Status: => E-I-Mozgas2-Home Security = On
2020-10-13 14:02:57.268 Status: => (SWITCH) =>E-I-Kapcsolo-Jobb=>On ()
2020-10-13 14:02:57.269 Status: User: Admin initiated a switch command (59/E-I-Kapcsolo-Jobb/On)
2020-10-13 14:02:57.275 Status: LUA: Start of script device
2020-10-13 14:02:57.275 Status: LUA: End of script device
2020-10-13 14:02:57.280 Status: LUA: Curl ended
1 step: 2020-10-13 14:02:57.174 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2 step: 2020-10-13 14:02:57.180 Status: LUA: Start of script device
2020-10-13 14:02:57.180 Status: LUA: End of script device
2020-10-13 14:02:57.185 Status: LUA: Curl ended
3 step: 2020-10-13 14:02:57.269 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
1->3 : 95 ms
with this pass2php lua script:
Code: Select all
for d,s in pairs(devicechanged)
do
os.execute('curl -X POST -d "d='..d.."&s="..s..'" http://127.0.0.1/secure/pass2php.php &')
end
commandArray={}
- Spoiler: show
Code: Select all
2020-10-13 14:09:05.449 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 14:09:05.457 (AEON) General/Alarm (Alarm Type: Home Security 7 (0x07))
2020-10-13 14:09:05.474 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2020-10-13 14:09:05.489 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 14:09:05.495 (AEON) Lux (E-I-Mozgas2-Illuminance)
2020-10-13 14:09:05.601 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
2020-10-13 14:09:05.609 (AEON) Light/Switch (E-I-Kapcsolo-Jobb)
2020-10-13 14:09:05.448 Status: OpenZWave: Alarm received (Home Security: Motion Detected at Unknown Location), NodeID: 34 (0x22)
2020-10-13 14:09:05.540 Status: => (STORE) => E-I-Mozgas2-Sensor => Off (Pass2PHP)
2020-10-13 14:09:05.595 Status: => (STORE) => E-I-Mozgas2-Sensor => On (Pass2PHP)
2020-10-13 14:09:05.595 Status: => (STORE) => E-I-Mozgas2-Home Security => On (Pass2PHP)
2020-10-13 14:09:05.596 Status: => (STORE) => Alarm Type: Home Security 7 (0x07) => Motion Detected at Unknown Location (Pass2PHP)
2020-10-13 14:09:05.596 Status: => (STORE) => E-I-Mozgas2-Illuminance => 0 (Pass2PHP)
2020-10-13 14:09:05.598 Status: => E-I-Mozgas2-Home Security = On
2020-10-13 14:09:05.599 Status: => (SWITCH) =>E-I-Kapcsolo-Jobb=>On ()
2020-10-13 14:09:05.601 Status: User: Admin initiated a switch command (59/E-I-Kapcsolo-Jobb/On)
2020-10-13 14:09:05.695 Status: => (STORE) => E-I-Kapcsolo-Jobb => On (Pass2PHP)
1 step: 2020-10-13 14:09:05.474 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2 step: 2020-10-13 14:09:05.601 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
1->2 : 127 ms
With only one Lua script:
Code: Select all
commandArray = {}
for devName,devValue in pairs(devicechanged) do
if (devName=='E-I-Mozgas2-Home Security'and devValue=='On') then
commandArray['E-I-Kapcsolo-Jobb']='On'
end
end
return commandArray
- Spoiler: show
Code: Select all
2020-10-13 14:37:00.839 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 14:37:00.843 (AEON) General/Alarm (Alarm Type: Home Security 7 (0x07))
2020-10-13 14:37:00.848 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2020-10-13 14:37:00.856 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 14:37:00.858 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
2020-10-13 14:37:00.863 (AEON) Light/Switch (E-I-Kapcsolo-Jobb)
2020-10-13 14:37:00.837 Status: OpenZWave: Alarm received (Home Security: Motion Detected at Unknown Location), NodeID: 34 (0x22)
1 step: 2020-10-13 14:37:00.848 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2 step: 2020-10-13 14:37:00.858 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
1->2 : 10 ms !! Wow
On Asrock Q1900DC IT board, on proxmox with one debian 10 buster VM, with 10 GB VM ram.
Blockly with one rule: 24 – 29 ms.
DzVents with one rule: 145 – 150 ms
Lua (file based) with one rule: 10 ms
Pass2PHP (best result) with one rule: 95 ms
Another comparation:
On my old core 2 quad Q8400 PC, with Windows 7 blocky and dzvents and Lua (db)
Blocky:
- Spoiler: show
Code: Select all
2020-10-13 16:23:46.020 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 16:23:46.160 (AEON) General/Alarm (Alarm Type: Home Security 7 (0x07))
2020-10-13 16:23:46.347 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2020-10-13 16:23:46.488 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
2020-10-13 16:23:46.550 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 16:23:46.706 (AEON) Light/Switch (E-I-Kapcsolo-Jobb)
1 step: 2020-10-13 16:23:46.347 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2 step: 2020-10-13 16:23:46.488 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
1-2 : 141 ms
Dzvents:
- Spoiler: show
Code: Select all
2020-10-13 16:12:59.893 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 16:12:59.752 Status: OpenZWave: Alarm received (Home Security: Motion Detected at Unknown Location), NodeID: 34 (0x22)
2020-10-13 16:13:00.064 (AEON) General/Alarm (Alarm Type: Home Security 7 (0x07))
2020-10-13 16:13:00.314 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2020-10-13 16:13:00.548 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 16:13:00.595 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
2020-10-13 16:13:00.751 (AEON) Light/Switch (E-I-Kapcsolo-Jobb)
2020-10-13 16:13:02.747 (AEON) General/kWh (E-H-Klima-kWh Meter)
2020-10-13 16:13:03.652 (AEON) Usage (E-H-Klima-Watt)
2020-10-13 16:13:03.730 (AEON) General/kWh (E-H-Klima-kWh Meter)
2020-10-13 16:13:04.729 (AEON) General/Voltage (E-H-Klima-Voltage)
1 step: 2020-10-13 16:13:00.314 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2 step: 2020-10-13 16:13:00.595 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
1-2 > 281 ms
Lua ( db based)
- Spoiler: show
Code: Select all
2020-10-13 16:17:43.135 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 16:17:43.401 (AEON) General/Alarm (Alarm Type: Home Security 7 (0x07))
2020-10-13 16:17:43.884 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2020-10-13 16:17:44.056 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
2020-10-13 16:17:44.118 (AEON) Light/Switch (E-I-Mozgas2-Sensor)
2020-10-13 16:17:44.196 (AEON) General/kWh (E-H-Klima-kWh Meter)
2020-10-13 16:17:44.274 (AEON) General/Voltage (E-K-Teafozo-Voltage)
2020-10-13 16:17:44.446 (AEON) Light/Switch (E-I-Kapcsolo-Jobb)
2020-10-13 16:17:44.898 (AEON) Usage (E-H-Klima-Watt)
1 step: 2020-10-13 16:17:43.884 (AEON) Light/Switch (E-I-Mozgas2-Home Security)
2 step: 2020-10-13 16:17:44.056 OpenZWave: Domoticz has send a Switch command! NodeID: 10 (0x0a)
1→ 2 > 222 ms
old core 2 quad Q8400 PC, with Windows 7
Blockly with one rule: 141 ms
DzVents with one rule: 281 ms
Lua with one rule: 222 ms