A yes. Freedom. I forgot to mention that. Let me try tonight and see if I can become a wizer man.Egregius wrote:For me it's not only the speed up of my script, it's the freedom of using a well documented code.
Just for the fun, type in Google lua and php and see the difference.
129000000 vs 10930000000 results!
When I started with Domoticz I googled a lot for lua but found that the userbase is so small and specific that it wasn't easy. PHP on the other hand has such a great userbase that for every issue you have already tons of people posted about it.
Plus, I've seen stuff here in lua of wich I think WTF, really?
All my devices have names like 'Lamp Staand Voor' .. 'Motion Keuken' hopefully that will not be an issue with the php. I think
Array... 123->motion_keuken
With
function motion_Keuken() should at least be able to switch idx of 'lamp staand voor' on and off.
I did not know lua as well but mastered the necessary skills to obtain full functionality. Now it is time to do the same with php

Sent from my SM-G925F using Tapatalk