Hi
The DSC plugin adds a ‘zone’ value to the altid variable in Vera e.g ‘zone-3’ , ‘zone-11’ etc. I’ve been looking at various guides but have not been able to successfully limit the results.
Does anyone know how I can only select those devices that have ‘zone’ in the altid field?
Doing it by d-category works, but that returns quite a few more, yet I only want the dsc ones.
local tt = {}
for n,d in pairs(luup.devices) do
if d.category_num == 4 then
But when I try to do a wildcard it finds nothing…
local tt = {}
for n,d in pairs(luup.devices) do
if d.altid = string.match(d.altid, 'Zone.*’) then
Any ideas ?