Skip to content

Instantly share code, notes, and snippets.

@JBoye
Created July 6, 2022 12:39
Show Gist options
  • Save JBoye/5bad3c6f5760a7652a615811681d61ba to your computer and use it in GitHub Desktop.
Save JBoye/5bad3c6f5760a7652a615811681d61ba to your computer and use it in GitHub Desktop.
Home Assistant Garage Icons
lovelace:
resources:
- url: /local/garage-icons.js?v=1.0
type: module
const garageIcons = {
"open": "M22,9v11h-2v-9H4v9H2V9l10-4L22,9",
"opening": "M22,9v11h-2v-9H4v9H2V9l10-4L22,9 M19,12H5v2h14V12 M12,14.6l3,3h-1.8V20h-2.4v-2.4H9L12,14.6",
"closed": "M22,9v11h-2v-9H4v9H2V9l10-4L22,9 M19,12H5v2h14V12 M19,18H5v2h14V18 M19,15H5v2h14V15z",
"closing": "M22,9v11h-2v-9H4v9H2V9l10-4L22,9 M19,12H5v2h14V12 M12,20l-3-3h1.8v-2.4h2.4V17H15L12,20"
}
async function getIcon(name) {
return {
path: garageIcons[name]
};
}
window.customIconsets = window.customIconsets || {};
window.customIconsets["garage"] = getIcon;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment