{
    "devices": {
        "_id": "devices",
        "type": "channel",
        "common": {},
        "native": {
            "object_id": "devices"
        },
        "logic": {
            "has_key": "_self",
            "has": {
                "devices.device": {
                    "type": "device",
                    "common": {},
                    "native": {
                        "object_id": "devices.device"
                    },
                    "logic": {
                        "_id": {
                            "cleanupForUseAsId": [
                                {
                                    "var": "mac"
                                }
                            ]
                        },
                        "common": {
                            "name": {
                                "or": [
                                    {
                                        "var": "name"
                                    },
                                    {
                                        "var": "ip"
                                    }
                                ]
                            }
                        },
                        "has_key": "_self",
                        "has": {
                            "devices.device.port_table": {
                                "_id": "port_table",
                                "type": "channel",
                                "common": {},
                                "native": {
                                    "object_id": "devices.device.port_table"
                                },
                                "logic": {
                                    "has_key": "port_table",
                                    "has": {
                                        "devices.device.port_table.port": {
                                            "type": "channel",
                                            "common": {},
                                            "native": {
                                                "object_id": "devices.device.port_table.port"
                                            },
                                            "logic": {
                                                "_id": {
                                                    "ifNotNull": [
                                                        {
                                                            "var": "port_idx"
                                                        },
                                                        {
                                                            "cleanupForUseAsId": [
                                                                {
                                                                    "cat": [
                                                                        "port_",
                                                                        {
                                                                            "var": "port_idx"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "var": "name"
                                                        }
                                                    ]
                                                },
                                                "common": {
                                                    "name": "name"
                                                },
                                                "has_key": "_self",
                                                "has": {
                                                    "devices.device.port_table.port.enable": {
                                                        "_id": "enable",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Enable",
                                                            "type": "boolean",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.enable"
                                                        },
                                                        "logic": {
                                                            "value": "enable"
                                                        }
                                                    },
                                                    "devices.device.port_table.port.is_uplink": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Is uplink",
                                                            "type": "boolean",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.is_uplink"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "is_uplink"
                                                                    },
                                                                    "is_uplink",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "is_uplink"
                                                        }
                                                    },
                                                    "devices.device.port_table.port.name": {
                                                        "_id": "name",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Name",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.name"
                                                        },
                                                        "logic": {
                                                            "value": "name"
                                                        }
                                                    },
                                                    "devices.device.port_table.port.poe_class": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "POE class",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.poe_class"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "poe_class"
                                                                    },
                                                                    "poe_class",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "poe_class"
                                                        }
                                                    },
                                                    "devices.device.port_table.port.poe_mode": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "POE mode",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.poe_mode"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "poe_mode"
                                                                    },
                                                                    "poe_mode",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "poe_mode"
                                                        }
                                                    },
                                                    "devices.device.port_table.port.poe_current": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "POE current",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "mA",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.poe_current"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "poe_current"
                                                                    },
                                                                    "poe_current",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "poe_current"
                                                        }
                                                    },
                                                    "devices.device.port_table.port.poe_power": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "POE power",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "W",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.poe_power"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "poe_power"
                                                                    },
                                                                    "poe_power",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "poe_power"
                                                        }
                                                    },
                                                    "devices.device.port_table.port.poe_voltage": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "POE voltage",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "V",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.poe_voltage"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "poe_voltage"
                                                                    },
                                                                    "poe_voltage",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "poe_voltage"
                                                        }
                                                    },
                                                    "devices.device.port_table.port.port_idx": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "ID",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.port_idx"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "port_idx"
                                                                    },
                                                                    "port_idx",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "port_idx"
                                                        }
                                                    },
                                                    "devices.device.port_table.port.port_poe": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "POE",
                                                            "type": "boolean",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.port_poe"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "port_poe"
                                                                    },
                                                                    "port_poe",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "port_poe"
                                                        }
                                                    },
                                                    "devices.device.port_table.port.port_poe_enabled": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "switch poe power",
                                                            "type": "boolean",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": true,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.port_poe_enabled"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNullBoolisTrue": [
                                                                    {
                                                                        "var": "port_poe"
                                                                    },
                                                                    "port_poe_enabled",
                                                                    null
                                                                ]
                                                            },
                                                            "value": {
                                                                "poeMode": [
                                                                    {
                                                                        "var": "poe_mode"
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    },
                                                    "devices.device.port_table.port.port_poe_cycle": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "port power cycle",
                                                            "type": "boolean",
                                                            "role": "button",
                                                            "read": false,
                                                            "write": true,
                                                            "desc": "",
                                                            "def": false
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.port_poe_cycle"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNullBoolisTrue": [
                                                                    {
                                                                        "var": "port_poe"
                                                                    },
                                                                    "port_poe_cycle",
                                                                    null
                                                                ]
                                                            }
                                                        }
                                                    },
                                                    "devices.device.port_table.port.rx_bytes": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "RX Bytes",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "Byte",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.rx_bytes"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "rx_bytes"
                                                                    },
                                                                    "rx_bytes",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "rx_bytes"
                                                        }
                                                    },
                                                    "devices.device.port_table.port.satisfaction": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Satisfaction",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "%",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.satisfaction"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "satisfaction"
                                                                    },
                                                                    "satisfaction",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "satisfaction"
                                                        }
                                                    },
                                                    "devices.device.port_table.port.speed": {
                                                        "_id": "speed",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Speed",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "mbps",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.speed"
                                                        },
                                                        "logic": {
                                                            "value": "speed"
                                                        }
                                                    },
                                                    "devices.device.port_table.port.tx_bytes": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "TX Bytes",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "Byte",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_table.port.tx_bytes"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "tx_bytes"
                                                                    },
                                                                    "tx_bytes",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "tx_bytes"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            },
                            "devices.device.port_overrides": {
                                "_id": "port_overrides",
                                "type": "channel",
                                "common": {},
                                "native": {
                                    "object_id": "devices.device.port_overrides"
                                },
                                "logic": {
                                    "has_key": "port_overrides",
                                    "has": {
                                        "devices.device.port_overrides.port": {
                                            "type": "channel",
                                            "common": {},
                                            "native": {
                                                "object_id": "devices.device.port_overrides.port"
                                            },
                                            "logic": {
                                                "_id": {
                                                    "ifNotNull": [
                                                        {
                                                            "var": "port_idx"
                                                        },
                                                        {
                                                            "cleanupForUseAsId": [
                                                                {
                                                                    "cat": [
                                                                        "port_",
                                                                        {
                                                                            "var": "port_idx"
                                                                        }
                                                                    ]
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "var": "name"
                                                        }
                                                    ]
                                                },
                                                "common": {
                                                    "name": "name"
                                                },
                                                "has_key": "_self",
                                                "has": {
                                                    "devices.device.port_overrides.port.port_idx": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "ID",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.port_idx"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "port_idx"
                                                                    },
                                                                    "port_idx",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "port_idx"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.name": {
                                                        "_id": "name",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Name",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.name"
                                                        },
                                                        "logic": {
                                                            "value": "name"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.portconf_id": {
                                                        "_id": "portconf_id",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Portconf ID",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.portconf_id"
                                                        },
                                                        "logic": {
                                                            "value": "portconf_id"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.op_mode": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Operation mode",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.op_mode"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "op_mode"
                                                                    },
                                                                    "op_mode",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "op_mode"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.port_security_enabled": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Enable MAC ID Filter Allow List",
                                                            "type": "boolean",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.port_security_enabled"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "port_security_enabled"
                                                                    },
                                                                    "port_security_enabled",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "port_security_enabled"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.port_security_mac_address": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "MAC ID Filter Allow List",
                                                            "type": "array",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.port_security_mac_address"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "port_security_mac_address"
                                                                    },
                                                                    "port_security_mac_address",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "port_security_mac_address"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.poe_mode": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "POE mode",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.poe_mode"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "poe_mode"
                                                                    },
                                                                    "poe_mode",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "poe_mode"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.speed": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Link Speed",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "Mbps",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.speed"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "speed"
                                                                    },
                                                                    "speed",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "speed"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.full_duplex": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Full duplex",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.full_duplex"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "full_duplex"
                                                                    },
                                                                    "full_duplex",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "full_duplex"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.isolation": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Port isolation",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.isolation"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "isolation"
                                                                    },
                                                                    "isolation",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "isolation"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.stormctrl_ucast_enabled": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Enable Storm Control for Unicast",
                                                            "type": "boolean",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.stormctrl_ucast_enabled"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "stormctrl_ucast_enabled"
                                                                    },
                                                                    "stormctrl_ucast_enabled",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "stormctrl_ucast_enabled"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.stormctrl_ucast_rate": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Storm Control Unicast Rate",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "pkts/s",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.stormctrl_ucast_rate"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "stormctrl_ucast_rate"
                                                                    },
                                                                    "stormctrl_ucast_rate",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "stormctrl_ucast_rate"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.stormctrl_mcast_enabled": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Enable Storm Control for Multicast",
                                                            "type": "boolean",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.stormctrl_mcast_enabled"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "stormctrl_mcast_enabled"
                                                                    },
                                                                    "stormctrl_mcast_enabled",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "stormctrl_mcast_enabled"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.stormctrl_mcast_rate": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Storm Control Multicast Rate",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "pkts/s",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.stormctrl_mcast_rate"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "stormctrl_mcast_rate"
                                                                    },
                                                                    "stormctrl_mcast_rate",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "stormctrl_mcast_rate"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.stormctrl_bcast_enabled": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Enable Storm Control for Broadcast",
                                                            "type": "boolean",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.stormctrl_bcast_enabled"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "stormctrl_bcast_enabled"
                                                                    },
                                                                    "stormctrl_bcast_enabled",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "stormctrl_bcast_enabled"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.stormctrl_bcast_rate": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Storm Control Broadcast Rate",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "pkts/s",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.stormctrl_bcast_rate"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "stormctrl_bcast_rate"
                                                                    },
                                                                    "stormctrl_bcast_rate",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "stormctrl_bcast_rate"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.lldpmed_notify_enabled": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Enable LLDP-MED",
                                                            "type": "boolean",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": "Link Layer Discovery Protocol - Media Endpoint Devices (for VoIP)"
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.lldpmed_notify_enabled"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "lldpmed_notify_enabled"
                                                                    },
                                                                    "lldpmed_notify_enabled",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "lldpmed_notify_enabled"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.autoneg": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Link negotiation",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.autoneg"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "autoneg"
                                                                    },
                                                                    "autoneg",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "autoneg"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.stp_port_mode": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Enable Spanning Tree Protocol",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.stp_port_mode"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "stp_port_mode"
                                                                    },
                                                                    "stp_port_mode",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "stp_port_mode"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.egress_rate_limit_kbps_enabled": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Enable Egress rate limit",
                                                            "type": "boolean",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.egress_rate_limit_kbps_enabled"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "egress_rate_limit_kbps_enabled"
                                                                    },
                                                                    "egress_rate_limit_kbps_enabled",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "egress_rate_limit_kbps_enabled"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.egress_rate_limit_kbps": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Egress rate limit",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "kb/s",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.egress_rate_limit_kbps"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "egress_rate_limit_kbps"
                                                                    },
                                                                    "egress_rate_limit_kbps",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "egress_rate_limit_kbps"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.aggregate_num_ports": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Aggregate ports",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.aggregate_num_ports"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "aggregate_num_ports"
                                                                    },
                                                                    "aggregate_num_ports",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "aggregate_num_ports"
                                                        }
                                                    },
                                                    "devices.device.port_overrides.port.mirror_port_idx": {
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Mirroring Port",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.port_overrides.port.mirror_port_idx"
                                                        },
                                                        "logic": {
                                                            "_id": {
                                                                "ifNotNull": [
                                                                    {
                                                                        "var": "mirror_port_idx"
                                                                    },
                                                                    "mirror_port_idx",
                                                                    null
                                                                ]
                                                            },
                                                            "value": "mirror_port_idx"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            },
                            "devices.device.radio_table_stats": {
                                "type": "channel",
                                "common": {},
                                "native": {
                                    "object_id": "devices.device.radio_table_stats"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "radio_table_stats"
                                            },
                                            "radio_table_stats",
                                            null
                                        ]
                                    },
                                    "has_key": "radio_table_stats",
                                    "has": {
                                        "devices.device.radio_table_stats.stat": {
                                            "type": "channel",
                                            "common": {},
                                            "native": {
                                                "object_id": "devices.device.radio_table_stats.stat"
                                            },
                                            "logic": {
                                                "_id": {
                                                    "cleanupForUseAsId": [
                                                        {
                                                            "var": "name"
                                                        }
                                                    ]
                                                },
                                                "common": {
                                                    "name": "name"
                                                },
                                                "has_key": "_self",
                                                "has": {
                                                    "devices.device.radio_table_stats.stat.cu_self_rx": {
                                                        "_id": "cu_self_rx",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "RX channel utilization",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "%",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.radio_table_stats.stat.cu_self_rx"
                                                        },
                                                        "logic": {
                                                            "value": "cu_self_rx"
                                                        }
                                                    },
                                                    "devices.device.radio_table_stats.stat.cu_self_tx": {
                                                        "_id": "cu_self_tx",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "TX channel utilization",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "%",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.radio_table_stats.stat.cu_self_tx"
                                                        },
                                                        "logic": {
                                                            "value": "cu_self_tx"
                                                        }
                                                    },
                                                    "devices.device.radio_table_stats.stat.cu_total": {
                                                        "_id": "cu_total",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Total channel utilization",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "%",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.radio_table_stats.stat.cu_total"
                                                        },
                                                        "logic": {
                                                            "value": "cu_total"
                                                        }
                                                    },
                                                    "devices.device.radio_table_stats.stat.tx_power": {
                                                        "_id": "tx_power",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "TX power",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "dBm",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.radio_table_stats.stat.tx_power"
                                                        },
                                                        "logic": {
                                                            "value": "tx_power"
                                                        }
                                                    },
                                                    "devices.device.radio_table_stats.stat.channel": {
                                                        "_id": "channel",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Channel",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.radio_table_stats.stat.channel"
                                                        },
                                                        "logic": {
                                                            "value": "channel"
                                                        }
                                                    },
                                                    "devices.device.radio_table_stats.stat.satisfaction": {
                                                        "_id": "satisfaction",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Satisfaction",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.radio_table_stats.stat.satisfaction"
                                                        },
                                                        "logic": {
                                                            "value": "satisfaction"
                                                        }
                                                    },
                                                    "devices.device.radio_table_stats.stat.radio": {
                                                        "_id": "radio",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "radio",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.radio_table_stats.stat.radio"
                                                        },
                                                        "logic": {
                                                            "value": "radio"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            },
                            "devices.device.temperatures": {
                                "type": "channel",
                                "common": {},
                                "native": {
                                    "object_id": "devices.device.temperatures"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "temperatures"
                                            },
                                            "temperatures",
                                            null
                                        ]
                                    },
                                    "has_key": "temperatures",
                                    "has": {
                                        "devices.device.temperatures.loc": {
                                            "type": "channel",
                                            "common": {},
                                            "native": {
                                                "object_id": "devices.device.temperatures.loc"
                                            },
                                            "logic": {
                                                "_id": {
                                                    "cleanupForUseAsId": [
                                                        {
                                                            "var": "name"
                                                        }
                                                    ]
                                                },
                                                "common": {
                                                    "name": "name"
                                                },
                                                "has_key": "_self",
                                                "has": {
                                                    "devices.device.temperatures.loc.type": {
                                                        "_id": "type",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "type of temperature",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.temperatures.loc.type"
                                                        },
                                                        "logic": {
                                                            "value": "type"
                                                        }
                                                    },
                                                    "devices.device.temperatures.loc.value": {
                                                        "_id": "value",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "temperature value",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "°C",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.temperatures.loc.value"
                                                        },
                                                        "logic": {
                                                            "value": "value"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            },
                            "devices.device.storage": {
                                "type": "channel",
                                "common": {},
                                "native": {
                                    "object_id": "devices.device.storage"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "storage"
                                            },
                                            "storage",
                                            null
                                        ]
                                    },
                                    "has_key": "storage",
                                    "has": {
                                        "devices.device.storage.stat": {
                                            "type": "channel",
                                            "common": {},
                                            "native": {
                                                "object_id": "devices.device.storage.stat"
                                            },
                                            "logic": {
                                                "_id": {
                                                    "cleanupForUseAsId": [
                                                        {
                                                            "var": "name"
                                                        }
                                                    ]
                                                },
                                                "common": {
                                                    "name": "name"
                                                },
                                                "has_key": "_self",
                                                "has": {
                                                    "devices.device.storage.stat.mount_point": {
                                                        "_id": "mount_point",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "moiting point of storage",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.storage.stat.mount_point"
                                                        },
                                                        "logic": {
                                                            "value": "mount_point"
                                                        }
                                                    },
                                                    "devices.device.storage.stat.size": {
                                                        "_id": "size",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "size of storage",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "byte",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.storage.stat.size"
                                                        },
                                                        "logic": {
                                                            "value": "size"
                                                        }
                                                    },
                                                    "devices.device.storage.stat.type": {
                                                        "_id": "type",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "type of storage",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.storage.stat.type"
                                                        },
                                                        "logic": {
                                                            "value": "type"
                                                        }
                                                    },
                                                    "devices.device.storage.stat.used": {
                                                        "_id": "used",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "using of storage size",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "byte",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.storage.stat.used"
                                                        },
                                                        "logic": {
                                                            "value": "used"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            },
                            "devices.device.speedtest-status": {
                                "type": "channel",
                                "common": {},
                                "native": {
                                    "object_id": "devices.device.speedtest"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "speedtest-status"
                                            },
                                            "speedtest",
                                            null
                                        ]
                                    },
                                    "has_key": "speedtest-status",
                                    "has": {
                                        "devices.device.speedtest-status.latency": {
                                            "_id": "latency",
                                            "type": "state",
                                            "common": {
                                                "name": "Latency",
                                                "type": "number",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "unit": "ms",
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.speedtest.latency"
                                            },
                                            "logic": {
                                                "value": "latency"
                                            }
                                        },
                                        "devices.device.speedtest-status.rundate": {
                                            "_id": "rundate",
                                            "type": "state",
                                            "common": {
                                                "name": "Run date",
                                                "type": "string",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.speedtest.rundate"
                                            },
                                            "logic": {
                                                "value": {
                                                    "secondsToDateTime": [
                                                        {
                                                            "var": "rundate"
                                                        }
                                                    ]
                                                }
                                            }
                                        },
                                        "devices.device.speedtest-status.runtime": {
                                            "_id": "runtime",
                                            "type": "state",
                                            "common": {
                                                "name": "Run time",
                                                "type": "number",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "unit": "s",
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.speedtest.runtime"
                                            },
                                            "logic": {
                                                "value": "runtime"
                                            }
                                        },
                                        "devices.device.speedtest-status.xput_download": {
                                            "_id": "xput_download",
                                            "type": "state",
                                            "common": {
                                                "name": "Download",
                                                "type": "number",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "unit": "Mbps",
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.speedtest.xput_download"
                                            },
                                            "logic": {
                                                "value": "xput_download"
                                            }
                                        },
                                        "devices.device.speedtest-status.xput_upload": {
                                            "_id": "xput_upload",
                                            "type": "state",
                                            "common": {
                                                "name": "Upload",
                                                "type": "number",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "unit": "Mbps",
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.speedtest.xput_upload"
                                            },
                                            "logic": {
                                                "value": "xput_upload"
                                            }
                                        }
                                    }
                                }
                            },
                            "devices.device.sys_stats": {
                                "_id": "sys_stats",
                                "type": "channel",
                                "common": {},
                                "native": {
                                    "object_id": "devices.device.sys_stats"
                                },
                                "logic": {
                                    "has_key": "sys_stats",
                                    "has": {
                                        "devices.device.sys_stats.loadavg_1": {
                                            "_id": "loadavg_1",
                                            "type": "state",
                                            "common": {
                                                "name": "Load average 1m",
                                                "type": "string",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.sys_stats.loadavg_1"
                                            },
                                            "logic": {
                                                "value": "loadavg_1"
                                            }
                                        },
                                        "devices.device.sys_stats.loadavg_15": {
                                            "_id": "loadavg_15",
                                            "type": "state",
                                            "common": {
                                                "name": "Load average 15m",
                                                "type": "string",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.sys_stats.loadavg_15"
                                            },
                                            "logic": {
                                                "value": "loadavg_15"
                                            }
                                        },
                                        "devices.device.sys_stats.loadavg_5": {
                                            "_id": "loadavg_5",
                                            "type": "state",
                                            "common": {
                                                "name": "Load average 5m",
                                                "type": "string",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.sys_stats.loadavg_5"
                                            },
                                            "logic": {
                                                "value": "loadavg_5"
                                            }
                                        },
                                        "devices.device.sys_stats.mem_buffer": {
                                            "_id": "mem_buffer",
                                            "type": "state",
                                            "common": {
                                                "name": "memory buffer",
                                                "type": "number",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "unit": "byte",
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.sys_stats.mem_buffer"
                                            },
                                            "logic": {
                                                "value": "mem_buffer"
                                            }
                                        },
                                        "devices.device.sys_stats.mem_total": {
                                            "_id": "mem_total",
                                            "type": "state",
                                            "common": {
                                                "name": "memory total",
                                                "type": "number",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "unit": "byte",
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.sys_stats.mem_total"
                                            },
                                            "logic": {
                                                "value": "mem_total"
                                            }
                                        },
                                        "devices.device.sys_stats.mem_used": {
                                            "_id": "mem_used",
                                            "type": "state",
                                            "common": {
                                                "name": "memory used",
                                                "type": "number",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "unit": "byte",
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.sys_stats.mem_used"
                                            },
                                            "logic": {
                                                "value": "mem_used"
                                            }
                                        }
                                    }
                                }
                            },
                            "devices.device.system-stats": {
                                "type": "channel",
                                "common": {},
                                "native": {
                                    "object_id": "devices.device.system-stats"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "system-stats"
                                            },
                                            "system-stats",
                                            null
                                        ]
                                    },
                                    "has_key": "system-stats",
                                    "has": {
                                        "devices.device.system-stats.cpu": {
                                            "_id": "cpu",
                                            "type": "state",
                                            "common": {
                                                "name": "CPU usage",
                                                "type": "string",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "unit": "%",
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.system-stats.cpu"
                                            },
                                            "logic": {
                                                "value": "cpu"
                                            }
                                        },
                                        "devices.device.system-stats.mem": {
                                            "_id": "mem",
                                            "type": "state",
                                            "common": {
                                                "name": "Memory usage",
                                                "type": "string",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "unit": "%",
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.system-stats.mem"
                                            },
                                            "logic": {
                                                "value": "mem"
                                            }
                                        },
                                        "devices.device.system-stats.uptime": {
                                            "_id": "uptime",
                                            "type": "state",
                                            "common": {
                                                "name": "Uptime",
                                                "type": "string",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "unit": "s",
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.system-stats.uptime"
                                            },
                                            "logic": {
                                                "value": "uptime"
                                            }
                                        }
                                    }
                                }
                            },
                            "devices.device.last_uplink": {
                                "type": "channel",
                                "common": {},
                                "native": {
                                    "object_id": "devices.device.last_uplink"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "last_uplink"
                                            },
                                            "last_uplink",
                                            null
                                        ]
                                    },
                                    "has_key": "last_uplink",
                                    "has": {
                                        "devices.device.last_uplink.mac": {
                                            "_id": "mac",
                                            "type": "state",
                                            "common": {
                                                "name": "Uplink MAC address",
                                                "type": "string",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.last_uplink.mac"
                                            },
                                            "logic": {
                                                "value": "uplink_mac"
                                            }
                                        },
                                        "devices.device.last_uplink.name": {
                                            "_id": "name",
                                            "type": "state",
                                            "common": {
                                                "name": "Uplink device name",
                                                "type": "string",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.last_uplink.name"
                                            },
                                            "logic": {
                                                "value": "uplink_device_name"
                                            }
                                        },
                                        "devices.device.last_uplink.remote_port": {
                                            "_id": "remote_port",
                                            "type": "state",
                                            "common": {
                                                "name": "Uplink remote port",
                                                "type": "number",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.last_uplink.remote_port"
                                            },
                                            "logic": {
                                                "value": "uplink_remote_port"
                                            }
                                        },
                                        "devices.device.last_uplink.port_idx": {
                                            "_id": "port_idx",
                                            "type": "state",
                                            "common": {
                                                "name": "Uplink port",
                                                "type": "number",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.last_uplink.port_idx"
                                            },
                                            "logic": {
                                                "value": "port_idx"
                                            }
                                        },
                                        "devices.device.last_uplink.type": {
                                            "_id": "type",
                                            "type": "state",
                                            "common": {
                                                "name": "type of storage",
                                                "type": "string",
                                                "role": "state",
                                                "read": true,
                                                "write": false,
                                                "desc": ""
                                            },
                                            "native": {
                                                "object_id": "devices.device.last_uplink.type"
                                            },
                                            "logic": {
                                                "value": "type"
                                            }
                                        }
                                    }
                                }
                            },
                            "devices.device.vap_table": {
                                "type": "channel",
                                "common": {},
                                "native": {
                                    "object_id": "devices.device.vap_table"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "vap_table"
                                            },
                                            "vap_table",
                                            null
                                        ]
                                    },
                                    "has_key": "vap_table",
                                    "has": {
                                        "devices.device.vap_table.vap": {
                                            "type": "channel",
                                            "common": {},
                                            "native": {
                                                "object_id": "devices.device.vap_table.vap"
                                            },
                                            "logic": {
                                                "_id": {
                                                    "cleanupForUseAsId": [
                                                        {
                                                            "var": "name"
                                                        }
                                                    ]
                                                },
                                                "common": {
                                                    "name": "name"
                                                },
                                                "has_key": "_self",
                                                "has": {
                                                    "devices.device.vap_table.vap.satisfaction": {
                                                        "_id": "satisfaction",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Satisfaction",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "unit": "%",
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.vap_table.vap.satisfaction"
                                                        },
                                                        "logic": {
                                                            "value": "satisfaction"
                                                        }
                                                    },
                                                    "devices.device.vap_table.vap.channel": {
                                                        "_id": "channel",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Channel",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.vap_table.vap.channel"
                                                        },
                                                        "logic": {
                                                            "value": "channel"
                                                        }
                                                    },
                                                    "devices.device.vap_table.vap.num_sta": {
                                                        "_id": "num_sta",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "Number of users",
                                                            "type": "number",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.vap_table.vap.num_sta"
                                                        },
                                                        "logic": {
                                                            "value": "num_sta"
                                                        }
                                                    },
                                                    "devices.device.vap_table.vap.essid": {
                                                        "_id": "essid",
                                                        "type": "state",
                                                        "common": {
                                                            "name": "SSID",
                                                            "type": "string",
                                                            "role": "state",
                                                            "read": true,
                                                            "write": false,
                                                            "desc": ""
                                                        },
                                                        "native": {
                                                            "object_id": "devices.device.vap_table.vap.essid"
                                                        },
                                                        "logic": {
                                                            "value": "essid"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            },
                            "devices.device.general_temperature": {
                                "type": "state",
                                "common": {
                                    "name": "General temperature",
                                    "type": "number",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "unit": "°C",
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.general_temperature"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "general_temperature"
                                            },
                                            "general_temperature",
                                            null
                                        ]
                                    },
                                    "value": "general_temperature"
                                }
                            },
                            "devices.device.guest-num_sta": {
                                "type": "state",
                                "common": {
                                    "name": "Number of guests",
                                    "type": "number",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.guest-num_sta"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "guest-num_sta"
                                            },
                                            "guest-num_sta",
                                            null
                                        ]
                                    },
                                    "value": "guest-num_sta"
                                }
                            },
                            "devices.device.device_id": {
                                "_id": "device_id",
                                "type": "state",
                                "common": {
                                    "name": "Device Id",
                                    "type": "string",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.device_id"
                                },
                                "logic": {
                                    "value": "device_id"
                                }
                            },
                            "devices.device.led_override": {
                                "_id": "led_override",
                                "type": "state",
                                "common": {
                                    "name": "Led Override",
                                    "type": "string",
                                    "role": "state",
                                    "read": true,
                                    "write": true,
                                    "states": {
                                        "on": "on",
                                        "off": "off",
                                        "default": "default"
                                    },
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.led_override"
                                },
                                "logic": {
                                    "value": "led_override"
                                }
                            },
                            "devices.device.ip": {
                                "_id": "ip",
                                "type": "state",
                                "common": {
                                    "name": "IP address",
                                    "type": "string",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.ip"
                                },
                                "logic": {
                                    "value": "ip"
                                }
                            },
                            "devices.device.mac": {
                                "_id": "mac",
                                "type": "state",
                                "common": {
                                    "name": "MAC address",
                                    "type": "string",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.mac"
                                },
                                "logic": {
                                    "value": "mac"
                                }
                            },
                            "devices.device.model": {
                                "_id": "model",
                                "type": "state",
                                "common": {
                                    "name": "Model",
                                    "type": "string",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.model"
                                },
                                "logic": {
                                    "value": "model"
                                }
                            },
                            "devices.device.name": {
                                "_id": "name",
                                "type": "state",
                                "common": {
                                    "name": "Name",
                                    "type": "string",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.name"
                                },
                                "logic": {
                                    "value": "name"
                                }
                            },
                            "devices.device.num_guest": {
                                "type": "state",
                                "common": {
                                    "name": "Number of guests",
                                    "type": "number",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.num_guest"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "num_guest"
                                            },
                                            "num_guest",
                                            null
                                        ]
                                    },
                                    "value": "num_guest"
                                }
                            },
                            "devices.device.user-num_sta": {
                                "type": "state",
                                "common": {
                                    "name": "Number of clients",
                                    "type": "number",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.user-num_sta"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "user-num_sta"
                                            },
                                            "user-num_sta",
                                            null
                                        ]
                                    },
                                    "value": "user-num_sta"
                                }
                            },
                            "devices.device.num_sta": {
                                "type": "state",
                                "common": {
                                    "name": "Number of users",
                                    "type": "number",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.num_sta"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "num_sta"
                                            },
                                            "num_sta",
                                            null
                                        ]
                                    },
                                    "value": "num_sta"
                                }
                            },
                            "devices.device.state": {
                                "type": "state",
                                "common": {
                                    "name": "Device state",
                                    "type": "number",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": "Status of device",
                                    "min": 0,
                                    "states": {
                                        "0": "offline",
                                        "1": "connected",
                                        "2": "pending adoption",
                                        "4": "updating",
                                        "5": "provisioning",
                                        "6": "unreachable",
                                        "7": "adopting",
                                        "9": "adoption error",
                                        "11": "isolated"
                                    }
                                },
                                "native": {
                                    "object_id": "devices.device.state"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "state"
                                            },
                                            "state",
                                            null
                                        ]
                                    },
                                    "value": "state"
                                }
                            },
                            "devices.device.overheating": {
                                "type": "state",
                                "common": {
                                    "name": "Overheating",
                                    "type": "boolean",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.overheating"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "overheating"
                                            },
                                            "overheating",
                                            null
                                        ]
                                    },
                                    "value": "overheating"
                                }
                            },
                            "devices.device.rx_bytes": {
                                "type": "state",
                                "common": {
                                    "name": "RX",
                                    "type": "number",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "unit": "Byte",
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.rx_bytes"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "rx_bytes"
                                            },
                                            "rx_bytes",
                                            null
                                        ]
                                    },
                                    "value": "rx_bytes"
                                }
                            },
                            "devices.device.rx_bytes-d": {
                                "type": "state",
                                "common": {
                                    "name": "RX dropped",
                                    "type": "number",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "unit": "Byte",
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.rx_bytes-d"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "rx_bytes-d"
                                            },
                                            "rx_bytes-d",
                                            null
                                        ]
                                    },
                                    "value": "rx_bytes-d"
                                }
                            },
                            "devices.device.satisfaction": {
                                "type": "state",
                                "common": {
                                    "name": "Satisfaction",
                                    "type": "number",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "unit": "%",
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.satisfaction"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "satisfaction"
                                            },
                                            "satisfaction",
                                            null
                                        ]
                                    },
                                    "value": "satisfaction"
                                }
                            },
                            "devices.device.type": {
                                "_id": "type",
                                "type": "state",
                                "common": {
                                    "name": "Type",
                                    "type": "string",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.type"
                                },
                                "logic": {
                                    "value": "type"
                                }
                            },
                            "devices.device.tx_bytes": {
                                "type": "state",
                                "common": {
                                    "name": "TX",
                                    "type": "number",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "unit": "Byte",
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.tx_bytes"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "tx_bytes"
                                            },
                                            "tx_bytes",
                                            null
                                        ]
                                    },
                                    "value": "tx_bytes"
                                }
                            },
                            "devices.device.tx_bytes-d": {
                                "type": "state",
                                "common": {
                                    "name": "TX dropped",
                                    "type": "number",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "unit": "Byte",
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.tx_bytes-d"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "tx_bytes-d"
                                            },
                                            "tx_bytes-d",
                                            null
                                        ]
                                    },
                                    "value": "tx_bytes-d"
                                }
                            },
                            "devices.device.upgradable": {
                                "_id": "upgradable",
                                "type": "state",
                                "common": {
                                    "name": "Upgradable",
                                    "type": "boolean",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.upgradable"
                                },
                                "logic": {
                                    "value": "upgradable"
                                }
                            },
                            "devices.device.upgrade_to_firmware": {
                                "type": "state",
                                "common": {
                                    "name": "Upgrade to firmware",
                                    "type": "string",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.upgrade_to_firmware"
                                },
                                "logic": {
                                    "_id": {
                                        "ifNotNull": [
                                            {
                                                "var": "upgrade_to_firmware"
                                            },
                                            "upgrade_to_firmware",
                                            null
                                        ]
                                    },
                                    "value": "upgrade_to_firmware"
                                }
                            },
                            "devices.device.uptime": {
                                "_id": "uptime",
                                "type": "state",
                                "common": {
                                    "name": "Uptime",
                                    "type": "number",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "unit": "s",
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.uptime"
                                },
                                "logic": {
                                    "value": "uptime"
                                }
                            },
                            "devices.device.version": {
                                "_id": "version",
                                "type": "state",
                                "common": {
                                    "name": "Version",
                                    "type": "string",
                                    "role": "state",
                                    "read": true,
                                    "write": false,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.version"
                                },
                                "logic": {
                                    "value": "version"
                                }
                            },
                            "devices.device.restart": {
                                "_id": "restart",
                                "type": "state",
                                "common": {
                                    "name": "restart device",
                                    "type": "boolean",
                                    "role": "button",
                                    "read": false,
                                    "write": true,
                                    "desc": ""
                                },
                                "native": {
                                    "object_id": "devices.device.restart"
                                },
                                "logic": {}
                            }
                        }
                    }
                }
            }
        }
    }
}