Entity icons
The icon field is configured on each entity definition in config.yaml. It sets an icon for the entity type (for example, all server instances share the same icon).
Entity icons use the same icon system as actions. See Icons for the full range of supported formats — Unicode aliases, HTML entities, Iconify, image paths, and custom-webui assets.
Configuration
Add icon under an entity definition alongside file, name, and properties:
entities:
- file: /etc/OliveTin/servers.yaml
name: server
icon: ssh
properties:
- name: hostname
title: Hostname
- file: /etc/OliveTin/containers.json
name: container
icon: <iconify-icon icon="logos:docker-icon"></iconify-icon>
If icon is omitted or empty, no icon is shown for that entity type. Unlike actions, entity types do not get a default icon.
Short-name aliases
OliveTin resolves a few common short names to Unicode HTML entities at config load time. These are convenient for entity types that match common action categories:
| Alias | Typical use |
|---|---|
|
Servers accessed over SSH |
|
Network hosts |
|
Containers or packages |
|
Backup targets |
|
Systems or services |
|
Lights or switches |
|
Automation targets |
The full alias list is in the Icons documentation and in the source file service/internal/config/emoji.go.
Where icons appear
Entity icons are shown in the web UI next to the entity type name, not next to individual instances.
Entities page
On the Entities page, each entity type section heading shows the configured icon beside the type name (for example, Entity: server).
What entity icons do not affect
-
Individual instances — icons are per entity type in
config.yaml, not per row in the entity data file. You cannot giveserver1a different icon fromserver2through entity configuration alone. -
Dashboards — entity fieldsets and directories use their own
iconfields on dashboard components. See Dashboards. -
Action buttons — actions have their own
iconfield. An entity-bound action does not inherit the entity type icon automatically.
Example
entities:
- file: entities/servers.yaml
name: server
icon: ssh
properties:
- name: hostname
title: Hostname
- name: ip
title: IP
- file: entities/containers.json
name: container
icon: box
With this configuration, the Entities page shows a key icon beside the server section and a box icon beside the container section. Opening any server instance shows the same key icon in the details page title.
What’s next?
-
Icons — full icon format reference (Iconify, Unicode, images, and offline hosting)
-
Entities — overview of entities in OliveTin
-
Entity properties — configure which fields appear in the entity list