Page 5 of 5
Re: Script editor
Posted: Thursday 22 December 2016 14:42
by ben53252642
Egregius, oddly enough the script does function, just with a delay. It's saved under "All".
Thanks for pointing out where to find script types for the script manager.
Re: Script editor
Posted: Thursday 22 December 2016 14:44
by Egregius
Well yes, it will function. But the light will go out when a new motion event is triggered after 900 seconds (didn't really look where the difference is calculated from). I would think you should check on if motion = off.
Re: Script editor
Posted: Thursday 22 December 2016 14:51
by ben53252642
My setup is so that at each last motion sensor "echo", it checks if theres been no motion in other areas of the house for 900 seconds and if not it turns off those lights.
So lets say I walk from the bathroom to the living room, while in the living room I trigger the motion sensor after 15 minutes, the setup goes "ok" bens no longer in the bathroom, turn off those lights.
This is done rather than simply saying if no motion in x room for x seconds turn off the light, since it can be hard to accurately tell if I am still in a room just based on motion so I use motion in another location to tell that I am definitely not in the particular room.
The time delay is there to avoid turning lights on and off unnecessarily if I walk between rooms frequently in a space of time (15 minutes in this case), it also works fairly well when multiple people are around.
Re: Script editor
Posted: Thursday 22 December 2016 14:53
by Egregius
Oh, that way, nice
Lights don't turn of automatically in 'living' rooms. I only use auto light off in hallway, garage and kitchen (if no other light is lit).
But if you live alone sounds like a nice solution.
Re: Script editor
Posted: Tuesday 27 December 2016 9:49
by ben53252642
Solved the delay issue, turns out I had the Z-Stick set to poll every 1 second and there was just way too much traffic on the Z-Wave network.
The script doesn't appear to cause any noticeable delay.
Re: Script editor
Posted: Friday 16 November 2018 17:28
by julianmclean
Stumbled on this thread looking for a way to edit existing dzVents scripts on the file system through a browser. I've testing creating a new script in the browser and watching it execute in the log, which is great...but, is there any best practice on moving all my existing scripts so that I can manage them through the web browser?
Is it as simple as moving them all on the file system to the generated_scripts folder? Or do I need to recreate them one-by-one so that they are (also) stored in the DB?
Re: Script editor
Posted: Friday 25 February 2022 15:43
by McMelloW
Hi to all
Where can I find how to use the editor and is there a list of short key strokes like find and replace etc?
Re: Script editor
Posted: Friday 25 February 2022 16:44
by waltervl
McMelloW wrote: ↑Friday 25 February 2022 15:43
Hi to all
Where can I find how to use the editor and is there a list of short key strokes like find and replace etc?
There is a base instruction here:
https://www.domoticz.com/wiki/Events but no list of short key strokes like find and replace etc. If somebody can point me in the right direction I will add them.
Edit: Going through this topic there was this link listed:
https://github.com/ajaxorg/ace/wiki/Def ... -Shortcuts
Edit: and added to the Domoticz Wiki:
https://www.domoticz.com/wiki/Events#Te ... _Shortcuts
Re: Script editor
Posted: Saturday 26 February 2022 12:40
by McMelloW
Thanks very much. This is most helpful.