Scene as trigger not working

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
Kerel
Posts: 28
Joined: Friday 02 December 2016 8:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Scene as trigger not working

Post 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?
lrybak
Posts: 40
Joined: Thursday 18 December 2014 20:12
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Poland
Contact:

Re: Scene as trigger not working

Post by lrybak »

I have exactly the same issue.
I'm running stable v3.8153
HW: HP dc7900 USD running ESXi, RaspberryPi (few of it), AEON S2 USB stick, Fibaro modules (Dimmers, switches), 1-wire (DS18B20, DS2423), DSC Alarm with Envisalink ethernet module, MySensors, RFLink
lrybak
Posts: 40
Joined: Thursday 18 December 2014 20:12
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Poland
Contact:

Re: Scene as trigger not working

Post 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)
HW: HP dc7900 USD running ESXi, RaspberryPi (few of it), AEON S2 USB stick, Fibaro modules (Dimmers, switches), 1-wire (DS18B20, DS2423), DSC Alarm with Envisalink ethernet module, MySensors, RFLink
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Scene as trigger not working

Post by dannybloe »

You need 2.3 for this. Time to upgrade :)
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Kerel
Posts: 28
Joined: Friday 02 December 2016 8:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Scene as trigger not working

Post by Kerel »

I'm using domoticz Version: 3.8153, which is the latest one.
How can I upgrade dzvents?
Kerel
Posts: 28
Joined: Friday 02 December 2016 8:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Scene as trigger not working

Post by Kerel »

Ah, it's in the beta ;).
Kerel
Posts: 28
Joined: Friday 02 December 2016 8:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Scene as trigger not working

Post 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?
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Scene as trigger not working

Post 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.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Kerel
Posts: 28
Joined: Friday 02 December 2016 8:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Scene as trigger not working

Post by Kerel »

This seems rather strange:

Image

Updated to the most recent beta version, but still seeing dzVents version 2.2.0..
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Scene as trigger not working

Post by dannybloe »

That's strange indeed. Looks like a caching issue.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
SweetPants

Re: Scene as trigger not working

Post by SweetPants »

Hmmm, I'm on the same Beta version but no dzVents version on my screen (cleared both caches)
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Scene as trigger not working

Post by dannybloe »

In the current beta you can check dzVents' version in Domoticz' about page.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Kerel
Posts: 28
Joined: Friday 02 December 2016 8:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Scene as trigger not working

Post by Kerel »

Thanks for your help!
Managed to get it working by clearing caches before updating to the beta version.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest