iobroker.unifi
Version:
UniFi Adapter for ioBroker
712 lines (711 loc) • 168 kB
JSON
{
"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,