Unifi Dashboard in Home Assistant Dwains Dashboard.
Created by Ruben Dijk and little customize by Léon van der Linden
- Install Unifigateway from HACS.
- Install Multiple-entity-row from HACS.
- Install Vertical Stack In Card from HACS.
- Install Bar-card from HACS.
- Install Card-Mod from HACS.
- Manually install the next custom component from https://github.com/RubenDijk/homeassistant
- Copy the my_unifi to your custom component folder.
- Copy the directory
unifi_dashboard
to your<config dir>/dwains-dashboard/addons/more_page/
directory. - Configure your
more_page.yaml
file in<config dir>/dwains-dashboard/configs
with config below. - Add unifi controller (Home-Assistant integration)
- Restart Home Assistant.
- Reload the theme configuration via Theme Settings
To use this add-on in your Dwains Theme, add the following to your more_page.yaml
file:
# Example more_page.yaml entry
more_page:
addons:
- name: Ubiquiti UniFi
icon: 'mdi:router-network'
path: 'dwains-dashboard/addons/more_page/unifi_dashboard/unifi.yaml'
addons:
- name: Ubiquiti UniFi
icon: mdi:router-wireless
path: 'dwains-dashboard/addons/more_page/unifi_dashboard/unifi.yaml'
button_path: 'dwains-dashboard/addons/rooms/hello-room/button.yaml'
data:
entity: sensor.unifi_gateway_alerts
Add the following package to your config Ubiquiti
Change the next line's
Line | Fill in | directory/file |
---|---|---|
Nr.8 | ip adres switch | sensor_ubiquiti.yaml |
Nr.22 | ip adres switch | sensor_ubiquiti.yaml |
Nr.27 | ip adres switch | sensor_ubiquiti.yaml |
Nr.32 | ip adres ap | sensor_ubiquiti.yaml |
Nr.46 | ip adres ap | sensor_ubiquiti.yaml |
Nr.51 | ip adres ap | sensor_ubiquiti.yaml |
Nr.138 | ip adres controller | sensor_ubiquiti.yaml |
Nr.139 | Site-id (optional) | sensor_ubiquiti.yaml |
Nr.140 | username | sensor_ubiquiti.yaml |
Nr.141 | password or secret | sensor_ubiquiti.yaml |
Nr.155 | Site-id (optional) | sensor_ubiquiti.yaml |
Nr.156 | username | sensor_ubiquiti.yaml |
Nr.157 | password or secret | sensor_ubiquiti.yaml |
Nr.158 | ip adres controller | sensor_ubiquiti.yaml |
Nr.63 | ip adres of the controller | /unifi_dashboard/unifi.yaml |
Nr.289 | correct entity | /unifi_dashboard/unifi.yaml |
Nr.290 | correct name | /unifi_dashboard/unifi.yaml |
Nr.311 | correct entity | /unifi_dashboard/unifi.yaml |
Nr.312 | correct name | /unifi_dashboard/unifi.yaml |
- Copy the this line and place it in your template.yaml or sensor.yaml
- Fill in your main SSID and your GUEST SSID
- platform: template
sensors:
wifi_vdlinden_count:
friendly_name: "MAIN SSID" # <- MAIN SSID NAME
unit_of_measurement: 'devices'
value_template: "{{ state_attr('sensor.unifi', 'YOUR MAIN SSID') }}"
icon_template: mdi:wifi
- platform: template
sensors:
gast_vdlinden_count:
friendly_name: "GUEST SSID NAME" # <- GUEST SSID NAME
unit_of_measurement: 'devices'
value_template: "{{ state_attr('sensor.unifi', 'FILL IN YOUR GUEST SSID') }}"
icon_template: mdi:wifi
Light Themed | Dark Themed |
---|---|
Enjoy my card? Help me out for a couple of 🍻 or a ☕!