Wildcard in variable

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

Moderator: leecollings

Post Reply
psolyca
Posts: 2
Joined: Thursday 07 June 2018 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9565
Location: France - Tours
Contact:

Wildcard in variable

Post by psolyca »

Hey,

After a try with LUA to automate my lights, I have switched to dzVents.

By the way, I have managed to do what I wanted, change the state of my virtual switches without triggering an action with the use of a UserVariable.
But I would like to simplify my event script.
I have seen in the wiki that a wildcard could be used with devices to monitored them :

Code: Select all

return {
	on = {
		devices = { "PIR_*" }
	}
}
I did not see neither on github nor on the wiki nor on this board a discussion about the ability to have a wildcard to monitor UserVariables !

Code: Select all

return {
	on = {
		variables = { "PIR_*" }
	}
}
Could it be a new feature ?
New to all this home automation things.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Wildcard in variable

Post by waaren »

It is already implemented. Wild card handling is generic so not only for devices but also for variables an other triggers.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
psolyca
Posts: 2
Joined: Thursday 07 June 2018 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9565
Location: France - Tours
Contact:

Re: Wildcard in variable

Post by psolyca »

Thanks.
I tried yesterday for my first test script it did not work but after some work on it it is ok this morning.

So wiki is not up to date unfortunetaly.
New to all this home automation things.
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Wildcard in variable

Post by dannybloe »

Ah, indeed.. it doesn't mention this in general. I added this to my to do list.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest