for tag, dev in pairs(manager.machine.devices) do if dev.state ~= nil then local names = {} for k, _ in pairs(dev.state) do names[#names+1] = k end table.sort(names) print("STATE " .. tag .. " " .. dev.shortname .. " clock=" .. tostring(dev.clock) .. " : " .. table.concat(names, ",")) end end manager.machine:exit()