Skip to content

Code Snippets

This section collects small, reusable code examples.

Categories

🏠 Home Assistant YAML

Automations, templates, helpers and blueprint examples.

Open examples

🟨 JavaScript

JavaScript for Bubble Card, Lovelace, websites and custom tools.

Open examples

🧩 Blockly

Blockly code, JavaScript generators and custom block definitions.

Open examples

Usage Note

Code snippets should be reviewed before production use and adjusted to your own entities and paths.

WARNING

Always create a current backup before changing Home Assistant.