Page 1 of 1

Request boot function for dzVents

Posted: Saturday 06 January 2018 21:49
by GrinF
First I would like to thank the developer(s) for creating dzVents. Great job, and extensive wiki!!

What I miss in all event solutions is running the scripts at boot, so the outputs would update to any changes of the input during downtime.
Perhaps you could run every script after Domoticz restarted and/or add an option for 'on =' to trigger an event at boot.
I already created a workaround, but it just isn't very nice.

Please take it into consideration.

Re: Request boot function for dzVents

Posted: Sunday 07 January 2018 15:40
by dannybloe
Thanks for the compliments.. glad you like it as well :)
I'm planning to create support for a couple of system triggers in the near future. So you can do stuff like:

Code: Select all

return {
	on = {
		system = {
			'start', 
			'error'
			'stop'
		}
	},
	execute = function(domoticz, system)
		--
	end
}

Re: Request boot function for dzVents

Posted: Sunday 07 January 2018 22:10
by GrinF
Hi Dannybloe,

Sounds good! I will watch the forum to follow the developments.