- platform: influxdb
host: <host influxDB>
username: unifipoller
password: <password>
queries:
- name: Unifi Download Speed
where: '"subsystem" = ''wan'''
field: '"rx_bytes-r"'
measurement: '"subsystems"'
group_function: last
database: unifi
unit_of_measurement: "Mbit/s"
value_template: "{{ (value | int / 131072) | round(2) }}"
- name: Unifi Upload Speed
where: '"subsystem" = ''wan'''
field: '"tx_bytes-r"'
measurement: '"subsystems"'
group_function: last
database: unifi
unit_of_measurement: "Mbit/s"
value_template: "{{ (value | int / 131072) | round(2) }}"
- name: WAN IP
where: '"subsystem" = ''wan'''
field: '"wan_ip"'
measurement: '"subsystems"'
group_function: last
database: unifi