Skip to content

elax46/custom-brand-icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e50b668 ยท Aug 16, 2021

History

69 Commits
Aug 8, 2021
Aug 16, 2021
Aug 16, 2021
May 18, 2021
May 12, 2021
Aug 16, 2021
May 13, 2021
Jul 10, 2021

Repository files navigation

hacs_badge hacs_badge Donate

Custom brand icons

Custom brand icons for Home Assistant

2FA

At the moment I have integrated only the main icons of Philips Hue products!


Philips Hue

These are the official icons from the philips developer channel

Icon Name
Preview bollard
Preview ceiling-round
Preview ceiling-square
Preview ceiling-fair
Preview ceiling-still
Preview desk-lamp
Preview double-spot
Preview floor-lantern
Preview floor-shade
Preview floor-spot
Preview pendant-long
Preview pendant-long-up
Preview pendant-round
Preview single-spot
Preview table-shade
Preview wall-lantern
Preview wall-shade
Preview wall-spot
Preview bulb-candle
Preview bulb-flood
Preview bulb-foh
Preview bulb-general-group
Preview bulb-group
Preview bulb-group-filament-candle
Preview bulb-group-filament-alt
Preview bulb-group-filament-spot
Preview bulb-group-filament-sultan
Preview bulb-group-sultan-lightstrip
Preview bulbs-classic
Preview bulbs-filament
Preview bulb-filament-alt
Preview bulbs-spot
Preview bulbs-sultan
Preview bridges-v1
Preview bridges-v2
Preview dimmer-switch
Preview friends-of-hue
Preview motion-sensor
Preview devices-plug
Preview devices-tap
Preview bloom
Preview go
Preview play
Preview iris
Preview light-strip
Preview recessed-floor
Preview recessed-ceiling
Preview rooms-attic
Preview rooms-balcony
Preview rooms-bathroom
Preview rooms-bedroom
Preview rooms-carport
Preview rooms-closet
Preview rooms-computer
Preview rooms-dining
Preview rooms-driveway
Preview rooms-gym
Preview rooms-hallway
Preview rooms-kitchen
Preview rooms-living
Preview rooms-mancave
Preview rooms-nursery
Preview rooms-kids-bedroom
Preview rooms-office
Preview rooms-other
Preview rooms-outdoor-social-time
Preview rooms-pool
Preview rooms-porch
Preview rooms-recreation
Preview rooms-staircase
Preview rooms-storage
Preview rooms-outdoor
Preview rooms-studio
Preview rooms-terrace
Preview rooms-toilet
Preview amarant
Preview amaze
Preview beyond
Preview beyond-down
Preview beyond-solid
Preview beyond-up
Preview button
Preview centris
Preview centris-two
Preview centris-three
Preview daylo-wall
Preview lily-xl
Preview pedestal
Preview pillar-nyro
Preview pillar-tuar
Preview plug-eu
Preview plug-uk
Preview signe
Preview socket-uk
Preview socket-eu
Preview socket-us
Preview wall-appear
Preview wall-econic
Preview wall-econic-lantern
Preview wall-econic-lantern-base
Preview wall-econic-lantern-top
Preview wall-flood
Preview wall-fuzo
Preview wall-fuzo-h
Preview wall-impress
Preview wall-impress-narrow
Preview wall-lucca
Preview wall-nyro
Preview wall-resonate
Preview wall-tuar
Preview wall-turaco
Preview wellner
Preview wellner-solid
Preview wellness
Preview lightstrip-tv-alt
Preview lightstrip-tv
Preview lightstrip-wrap
Preview pillar-spot
Preview pillar-spot-double
Preview adore
Preview adore-alt
Preview centura
Preview centura-round
Preview bulb-group-lightstrip
Preview bulb-group-lightstrip-v
Preview liane
Preview ceiling-explore
Preview sync-box-alt
Preview sync-box
Preview ceiling-fugato-two
Preview ceiling-fugato-three
Preview ceiling-fugato-four
Preview ceiling-fugato-two-alt
Preview ceiling-fugato-three-alt
Preview ceiling-fugato-four-alt

Miscellany of icons

Icon Name
Preview google-home
Preview home-max
Preview home-mini
Preview roborock
Preview dome-light
Preview apple-tv
Preview smoke-detector
Preview nas
Preview spot-bulb-top
Preview light-string
Preview ceiling-fan
Preview ceiling-fan-light
Preview floor-lamp-dual
Preview floor-lamp
Preview ceiling-lamp
Preview ceiling-lamp-plafond
Preview ceiling-lamp-round
Preview chandelier
Preview ceiling-spot-lamp
Preview fronius-inverter-gen24

Sonoff device

Icon Name
Preview mini
Preview window-sensor
Preview bridge
Preview usb-smart-adaptor
Preview smart-plug-sonoff
Preview smart-camera

Moes device

Icon Name
Preview moes-switch-single
Preview moes-switch-dual
Preview moes-switch-triple

Modem/Router ISP

Icon Name
Preview nexxt
Preview fastgate

Meross device

Icon Name
Preview smart-plug-schuko
Preview double-smart-plug
Preview smart-power-strip
Preview smart-desk-lamp
Preview smart-plug-it
Preview temp-sensor
Preview triple-wall-switch
Preview double-wall-switch
Preview single-wall-switch
Preview smart-switch
Preview lamp-bedside-table
Preview lamp-bedside-table-2
Preview wall-switch
Preview essential-oil-diffuser
Preview roller-shutter-switch

Battery status

Icon Name
Preview battery-charged
Preview battery-full
Preview battery-good
Preview battery-half
Preview battery-low
Preview battery-critical

Netgear device

Icon Name
Preview arlo-essential-indoor
Preview arlo-cam
Preview arlo-pro-3
Preview arlo-ultra-2
Preview arlo-q
Preview arlo-floodlight
Preview arlo-audio-doorbell
Preview arlo-video-doorbell
Preview arlo-security-light
Preview arlo-base-station
Preview arlo-baby
Preview orbi
Preview wifi-extender
Preview nighthawk

Install

HACS

We recommend installing Custom brand icons card via Home Assistant Community Store

  1. Add the folowing to the frontend section of your configuration.yaml
frontend:
extra_module_url:
  - /local/community/custom-brand-icons/custom-brand-icons.js
  1. (optional) Or add the following to your lovelace configuration using the Raw Config editor under Configure UI or ui-lovelace.yaml if using YAML mode.
resources:
  - type: js
    url:  /local/community/custom-brand-icons/custom-brand-icons.js

Manual Installation

To add custom repositories please follow this guide. Set URL to https://github.com/elax46/custom-brand-icons and category to Lovelace.

  1. Download custom-brand-icons.js file from the latest release.

  2. Copy the custom-brand-icons.js file into <config>/www/ the directory where your configuration.yaml resides.

  3. Add the folowing to the frontend section of your configuration.yaml

frontend:
  extra_module_url:
    - /local/custom-brand-icons.js

Or add the following to your lovelace configuration using the Raw Config editor under Configure UI or ui-lovelace.yaml if using YAML mode.

resources:
  - type: js
    url: /local/custom-brand-icons.js

Restart home-assistant.

Use

you can use icons by entering the prefix phu:

Example of integration in the card

entities:
  - entity: light.lampada_entrance
    icon: 'phu:go'
    name: Go
  - entity: light.monitor_2_right
    icon: 'phu:play'
    name: play 1
  - entity: light.monitor_2_left
    icon: 'phu:play'
    name: play 2
show_header_toggle: false
title: Custom brand icons
type: entities

Icon Requests?

The icon is not there? open a custom icon request

Customize the prefix

In case you want to create your own perfix you can edit the last line of the custom-brand-icons.js

  window.customIconsets["yourprefix"] = getIcon;

Don't see the icon?

It probably depends on the cache. Open Home assistant from an incognito window and check that the icon loads if yes then it depends on the cache, otherwise double check the installation

Help me insert more icons!

Attention I remind you that the icons must be in svg format

If you like, you can help me expand the number of icons available. Just add to the variable var icons

let's take the first string for example:

"Bollard": [0, 0, 32.0, 32.0, "string"]
  • Bollard = icon name

  • 0, 0, 32.0, 32.0 = this data can be recovered from the svg file transform="scale(0, 0, 32.0, 32.0) If this data is not present in the file you can leave the one indicated by me

  • String = this data can be recovered from the svg file <path d="M21,12.5 C21,13.33 18.76,...."

Thanks

thanks to for @mutzl your contribution

Support the project

Do you like these icons? Support the project with a pizza ๐Ÿ•๐Ÿ•

coffee