Page 1 of 1

Scene as trigger not working

Posted: Wednesday 22 November 2017 22:14
by Kerel
Guys, I have no clue what I am overlooking, but this is not working as expected:

This is my dzvents script:

Code: Select all

return {
	active = true, -- set to false to disable this script
	on = {
		scenes = {
			'asdf' 
		}
	},
	execute = function(domoticz, scene)
		print('test!')
	end
}
When I call my scene, I'd excpect the string being printed in the logs, but it isnt:

Code: Select all

2017-11-22 22:14:06.064 User: Admin initiated a scene/group command
2017-11-22 22:14:06.065 Activating Scene/Group: [asdf]
And thats it..
It works fine when using a device.
Anyone any luck with scenes as triggers?

Re: Scene as trigger not working

Posted: Wednesday 29 November 2017 10:02
by lrybak
I have exactly the same issue.
I'm running stable v3.8153

Re: Scene as trigger not working

Posted: Wednesday 29 November 2017 12:16
by lrybak
Kerel wrote: Wednesday 22 November 2017 22:14 Anyone any luck with scenes as triggers?
Scripts are triggered correctly in dzVents 2.3.0 (v3.8551)

Re: Scene as trigger not working

Posted: Wednesday 29 November 2017 14:20
by dannybloe
You need 2.3 for this. Time to upgrade :)

Re: Scene as trigger not working

Posted: Thursday 30 November 2017 18:09
by Kerel
I'm using domoticz Version: 3.8153, which is the latest one.
How can I upgrade dzvents?

Re: Scene as trigger not working

Posted: Thursday 30 November 2017 18:52
by Kerel
Ah, it's in the beta ;).

Re: Scene as trigger not working

Posted: Thursday 30 November 2017 19:02
by Kerel
Updated to Version: 3.8755.
Re-ran the above script:

Still no luck:

Code: Select all

2017-11-30 19:01:55.355 User: Admin initiated a scene/group command
2017-11-30 19:01:55.356 Activating Scene/Group: [asdf]
Other thoughts?

Re: Scene as trigger not working

Posted: Thursday 30 November 2017 19:09
by dannybloe
So, first of all, is dzVents enabled in the settings? If so, activate debug logging there and see what happens when you trigger the scene. You should see this in the logs: ''Event trigger type: scenegroup'. And a lot more that might indicate what's going wrong.

Re: Scene as trigger not working

Posted: Thursday 30 November 2017 20:26
by Kerel
This seems rather strange:

Image

Updated to the most recent beta version, but still seeing dzVents version 2.2.0..

Re: Scene as trigger not working

Posted: Thursday 30 November 2017 20:30
by dannybloe
That's strange indeed. Looks like a caching issue.

Re: Scene as trigger not working

Posted: Thursday 30 November 2017 21:29
by SweetPants
Hmmm, I'm on the same Beta version but no dzVents version on my screen (cleared both caches)

Re: Scene as trigger not working

Posted: Thursday 30 November 2017 21:43
by dannybloe
In the current beta you can check dzVents' version in Domoticz' about page.

Re: Scene as trigger not working

Posted: Sunday 03 December 2017 16:28
by Kerel
Thanks for your help!
Managed to get it working by clearing caches before updating to the beta version.