Aleborg / homeassistant-aleborg-frontend

33 stars 4 forks source link
Room with lights.

Aleborg Frontend

This is a complete frontend for HomeAssistant\ It automatically shows lights, multimedia, calendars and power usage for all areas(rooms), you only have to configure what areas to show in one file, settings.yaml.

I've tried to make this frontend as automated as possible. Due to restrictions in the frontend, a lot of things needs to be configured in the file /includes/lovelace/aleborg_frontend/settings.yaml.

This frontend doesn't have support for all types of devices and entities due to the fact that I don't have all different devices, such as covers. A list of my hardware can be found here.

There's still a lot to do in this frontend and my CSS skills sucks, so all contribution is welcome!

Have you install it? I would love to get some feedback!

Table of Content

CHANGELOG

Read the latest changelog here!

Updates

When updating the dashboard, please be aware that the settings.yaml can be overwritten if you're not careful. Compare your current settings.yaml to the new to see what have changed!

Requirements

Frontend (HACS)

If you choose to remove a component, you'll also have to remove the code that uses that component throughout the code. Sadly I had to use a lot of different components to automate this dashboard, hopefully I'll be able to minimize the amount in the future.

Integrations (HACS)

Installation

  1. Make sure all the Frontend plugins and Integrations are installed in HACS.
  2. Edit HomeAssistants configuration.yaml file.
  3. Copy all folders and files into your config folder in HomeAssistant
  4. Configure includes/lovelace/aleborg_frontend/settings.yaml for your own needs.
  5. Restart HomeAssistant
  6. Report any bugs...

configuration.yaml

These are changes that you need to make after you've installed all plugins.

Lovelace configuration

Add to your configuration.yaml these lines:

#########################################################
# Lovelace                                              #
#########################################################
lovelace_gen:
  tablet: !include includes/lovelace/aleborg_frontend/settings.yaml

lovelace:
  dashboards:
    lovelace-aleborg: # Needs to contain a hyphen (-)
      mode: yaml
      filename: includes/lovelace/aleborg_frontend/tablet.yaml # or the path to where you added the folder
      title: Aleborg Frontend
      icon: mdi:tools
      show_in_sidebar: true
      require_admin: false

Theme configuration

Included is a custom theme, it's placed in the directory config/themes, if it don't exist create it and add the following to your configuration.yaml

#########################################################
# Themes                                                #
#########################################################
frontend:
  themes: !include_dir_merge_named themes

Resources

Add following resource in Settings -> Dashboards, click on the three dots in the upper right corner and choose Resources, click on + ADD RESOURCE in the lower right corner.

URL: https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap
Resource type: Stylesheet

Settings

All configuration options for this frontend is defined here:

/includes/lovelace/aleborg_frontend/settings.yaml

Folders and descriptions of files

/includes/lovelace/aleborg_frontend/common

/includes/lovelace/aleborg_frontend/templates

/includes/lovelace/aleborg_frontend/views

Screenshots

Home

Home

All lights

All lights

Lights in a room

Lights in a room

Multimedia in a room

Media

Calendar in a room

Calendar

Power usage in a room

Power Usage