Multi brand - Devices tab

Hi guys,

due to different CPE brands, (TP-Link, Mikrotik and Zyxel) I want to have a couple of details on the Devices tab, like PPPoE Username, IP, SSIDs, but those value are on a different interfaces. I tried to use * sign, but isn’t working, is there a way to sort this out?

Use a VirtualParameter. This vparam will work for both TR-069 and TR-181.

let username = '';
const now =;

if ("value" in args[1]) {
    username = args[1].value[0];
    declare('InternetGatewayDevice.WANDevice.*.WANConnectionDevice.*.WANPPPConnection.*.Username', {path: now, value: now}, {value: username})
    declare('Device.PPP.Interface.*.Username', {path: now, value: now}, {value: username})
} else {
    let keys = [

    username = getParameterValue(keys);

log('PPPoEUsername: ' + username);
return {writable: true, value: [username, "xsd:string"]};

function getParameterValue(keys) {
    for (let key of keys) {
        let d = declare(key, {path: - (120 * 1000), value:});

        for (let item of d) {
            if (item.value && item.value[0]) {
                return item.value[0];

    return 'UNKNOWN';
1 Like

Which provision is the ideal to call it? Calling it on default could call several more times than needed.

Check my default:

const now =;

const hourly =;
const daily =;
const weekly =;
const informTime = daily % 86400000;

// Refresh basic parameters hourly
declare("InternetGatewayDevice.DeviceInfo.HardwareVersion", {path: hourly, value: hourly});
declare("InternetGatewayDevice.DeviceInfo.SoftwareVersion", {path: hourly, value: hourly});
declare("InternetGatewayDevice.WANDevice.*.WANConnectionDevice.*.WANPPPConnection.*.MACAddress", {path: hourly, value: hourly});
declare("InternetGatewayDevice.WANDevice.*.WANConnectionDevice.*.WANPPPConnection.*.ExternalIPAddress", {path: hourly, value: hourly});
declare("InternetGatewayDevice.LANDevice.*.WLANConfiguration.*.SSID", {path: hourly, value: hourly});
declare("VirtualParameters.*", {value: weekly}, {value: informTime});
// Don't refresh password field periodically because CPEs always report blank passowrds for security reasons
declare("InternetGatewayDevice.LANDevice.*.WLANConfiguration.*.KeyPassphrase", {path: hourly, value: 1});
declare("InternetGatewayDevice.LANDevice.*.Hosts.Host.*.HostName", {path: hourly, value: hourly});
declare("InternetGatewayDevice.LANDevice.*.Hosts.Host.*.IPAddress", {path: hourly, value: hourly});
declare("InternetGatewayDevice.LANDevice.*.Hosts.Host.*.MACAddress", {path: hourly, value: hourly});

For the PPPoE assigned IP, is there any chance of using VirtualParameter?


I don’t know if it will work for you, but I use coalesce when I have different parameters on different devices that I want in the same label, for example:

  • label: “‘IP’”
    parameter: COALESCE(Device.IP.Interface.3.IPv4Address.1.IPAddress,Device.DHCPv4.Client.1.IPAddress)
1 Like