Home Assistant YAML Snippets

Code snippets for Home Assistant dashboard elements

About This Project

Home-Assistant-YAML-Snippets is a repository of ready-to-use YAML configurations for Home Assistant Lovelace dashboards. Each snippet is documented with a screenshot and covers a specific dashboard element: a card listing currently active lights, a Hebrew date and time display, a grid of door and window sensor states, a Shabbat start and end time display, red alert status indicators for Jerusalem areas, and temperature and humidity gauges. The configurations use built-in Lovelace card types such as grid, entity, and gauge, along with community custom cards including auto-entities, button-card, and card-mod for dynamic filtering and CSS-based styling.

The snippets demonstrate several practical techniques, including conditional styling of button cards based on entity state values, gradient backgrounds and border radius customization through card-mod CSS, and severity thresholds on gauge cards. The Hebrew calendar and Shabbat elements rely on the hebcal integration, while the red alert elements use an Oref alert integration. The repository is written in Python and documented in Markdown, and the README notes that the visual design was produced with Anthropic's Claude Sonnet 3.5.

The project is most useful to Home Assistant users who want a starting point for customizing their dashboards, particularly those who need Jewish calendar or Israeli alert displays. It is also suitable for people learning how the button-card and card-mod syntax works, since each snippet is a complete, self-contained example that can be adapted to different entities. The content is licensed under CC BY 4.0, which permits reuse and modification with attribution.

Project Details

Explore More Projects