Use free icons from the fontawesome set in Home-assistant.
Install using HACS (Or copy the contents of
<your config dir>/custom_components/fontawesome/.)
Restart Home Assistant
Open the settings for the new FontAwesome integration
The icons are divided into three sets.
Each set will add a few hundred kilobytes to the ammount of data that's downloaded to your browser every time you open up your Home Assistant interface, so to save on your data plan, make sure to only select the ones you actually need.
Find the icon you want in the gallery.
The three icon sets have different prefixes:
- to get a solid heart, use
- to get a heart outline, use
- to get the twitter symbol, use
The icons are useable anywhere in Home Assistant - not only in lovelace.
Can I use this with my Pro icon set?
Yes you can, but you'll need to build things yourself.
- Get your personal token first.
Go to https://fontawesome.com/how-to-use/on-the-web/setup/using-package-managers and find your token. The command will look like this:
$ npm config set "@fortawesome:registry" https://npm.fontawesome.com/ && \ npm config set "//npm.fontawesome.com/:_authToken" XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
- Clone this repository and modify it to build with the
fontawesome-proicons. This will also build the
$ git clone https://github.com/thomasloven/hass-fontawesome $ cd hass-fontawesome/ $ git apply < fontawesome-pro.patch $ npm install && npm run-script build
Note that the
duotoneserie doesn't seem to work correctly yet in Home Assistant, since all colors are mapped to one color.
- Copy the output of
custom_components/fontawesome/to you Home Assistant installation.
Can I set this up in configure.yaml instead?
fontawesome: regular: solid: brands:
Just remove the lines for the icon sets you don't want.