Here are a few template sensors for CPU, memory and WAN IP.
In configuration.yaml:
- platform: template
sensors:
unifi_gateway_wan_cpu:
friendly_name: 'CPU'
value_template: "{{ states.sensor.unifi_gateway_wan.attributes['gw_system-stats']['cpu'] }}"
unifi_gateway_wan_mem:
friendly_name: 'Memory'
value_template: "{{ states.sensor.unifi_gateway_wan.attributes['gw_system-stats']['mem'] }}"
unifi_gateway_wan_ip:
friendly_name: 'WAN IP'
value_template: '{{ states.sensor.unifi_gateway_wan.attributes.wan_ip }}'
The CPU and Memory look pretty good in a Lovelace horizontal stack of 2 or 3 “gauge” cards, at least in a desktop -sized browser.