-
Notifications
You must be signed in to change notification settings - Fork 0
Shared Concepts
These behaviours are shared across Orbit Cards.
Colour fields support Home Assistant theme colours, named colours, CSS colours, and light-derived colours where supported.
accent_color: theme
accent_color: blue
accent_color: amber
accent_color: "#82b1ff"
accent_color: rgb(130,177,255)
accent_color: hsl(216,100%,75%)Home Assistant theme variables are also supported:
accent_color: primary-color
accent_color: accent-color
accent_color: state-light-active-color
accent_color: color-red
accent_color: google-yellowShort names such as red resolve to Home Assistant colour variables where available. Full names such as primary-color resolve to the matching CSS variable.
The visual editor colour picker has two tabs:
-
Colorwrites a hex colour. -
Themewrites a theme colour name.
Theme colours discovered from the active Home Assistant theme are marked with T. Built-in fallback colours are marked with S.
Area Card also supports:
accent_color: lightWhen used with a light entity, the card uses the light's current colour when available.
Area and Status name fields can be plain text or composed from Home Assistant context.
Plain text:
area_name: Living Room
status_name: HeatingComposed names:
area_name:
- type: area
- type: text
text: Lights
status_name:
- type: entitySupported composed parts include:
areadeviceentityfloor- custom text
Area Card defaults the editor name picker to Area when an area is configured. Status Card defaults it to Entity when a main entity is configured.
Use Material Design Icons:
main_entity_icon: mdi:sofaUse local SVG or image files:
main_entity_icon: motion_detected.svg
main_entity_icon: /local/icons/motion_detected.svg
main_entity_icon: local:motion_detected.svg
main_entity_icon: orbit:shower_on.svgShort filenames are resolved from /local/icons/.
Bundled Orbit icons use the orbit: prefix:
main_entity_icon: orbit:fan.svg
main_entity_icon: orbit:motion_detected.svg
main_entity_icon: orbit:shower_on.svgWith HACS, bundled icons are served from:
/hacsfiles/Orbit-Cards/icons/
With manual install, copy dist/icons beside the JavaScript file.
Home Assistant does not always expose local directory listings. To make local icons easier to browse in the editor, create:
/config/www/icons/manifest.json
Simple manifest:
[
"motion_detected.svg",
"motion_on.svg",
"motion_off.svg"
]Rich manifest:
[
{
"name": "My Custom Icon",
"file": "my_custom_icon.svg",
"tags": ["custom"]
}
]Inline SVG icons use the configured card/icon colour by default. To preserve a multi-colour SVG's own colours, set the matching override to false.
main_entity_icon_svg_color_override: false
button1_icon_svg_color_override: false
curve_button1_icon_svg_color_override: falseOrbit Cards support:
tap_action:
action: nonetap_action:
action: more-infotap_action:
action: toggletap_action:
action: navigate
navigation_path: /lovelace/securitytap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.movie_timeHome Assistant's newer perform-action action name is also supported:
tap_action:
action: perform-action
perform_action: script.turn_on
target:
entity_id: script.good_nightPopup actions are an advanced YAML-only feature. Browser Mod must be installed for Browser Mod popups.
tap_action:
action: popup
popup_title: Security
popup_content:
type: vertical-stack
cards:
- type: tile
entity: alarm_control_panel.house_alarm
vertical: true
- type: tile
entity: cover.garage_roller_door
vertical: trueNative Browser Mod fire-dom-event actions are also supported:
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Security
content:
type: tile
entity: alarm_control_panel.house_alarmBubble Card popups can be opened with hash navigation:
tap_action:
action: navigate
navigation_path: "#security"