ha-pyscript-converter

Community

Convert HA YAML automations to pyscript Python code.

Authorgauravmm
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Converts Home Assistant YAML automations into pyscript Python files, enabling a decorator-based approach to automation scripting and modernization.

Core Features & Use Cases

  • Analyze automations to cluster related ones by shared triggers and targets.
  • Generate pyscript skeletons (one file per group) and merge related automations into single functions.
  • Resolve device/entity UUIDs using stubs and optional UUID lookups, improving readability.
  • Provide reference mappings and patterns to guide conversion.

Quick Start

Run the analyzer on originals/automations.yaml to generate pyscript skeletons in tmp/ and review the results.

Dependency Matrix

Required Modules

pyyaml

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ha-pyscript-converter
Download link: https://github.com/gauravmm/HomeAssistant-pyscript-Conversion-Skill/archive/main.zip#ha-pyscript-converter

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.