LIA (Lily agent)& the HA-FSM Standard (v0.9.2)

This is a fantastic project! Transitioning from “Vibecoding” (chaotic, prompt-dependent logic) to a structured Finite State Machine (FSM) approach is exactly what the Home Assistant ecosystem needs for professional-grade reliability.

Here is an English version of your post, adapted to maintain your professional yet approachable “Nordic” tone while hitting all the technical high notes for a global audience.


:rocket: Taming AI Chaos with LIA & the HA-FSM Standard (v0.9.2)

Moin everyone!

I’ve been following the recent discussions around MCP servers and Claude Code. While “Vibecoding” is a blast for rapid prototyping, it’s often a curse for high-availability Smart Homes. We’ve all been there: the AI generates a “working” automation that eventually collapses into a mess of conflicting triggers and delay loops.

To fix this, I’ve been developing smarthomelily—originally a tool for my colleagues to end their YAML chaos, now evolved into a technical framework: the HA-FSM Engineering Standard.

1. The Strategy: FSM over “Vibecoding”

The goal of the standard (currently in v0.9.1 Public Preview) is to move away from unstable “Trigger-Action” piles and toward Finite State Machines (FSM).

  • Centralized State: A dedicated input_select tracks exactly where the system stands (and survives restarts).
  • Hardware Realism: Built-in logic for physical constraints like Duty Cycle (DC) and Carrier Sense (LBT)—crucial for Homematic and Zigbee stability.
  • Idempotency: Commands are only sent when a state actually changes. This protects your airtime and your nerves.

2. Meet LIA (Lily Intelligence Agent)

To save you from digging through documentation all day, I built LIA. Technically, LIA is a specialized Bash wrapper around Claude Code, optimized specifically for HAOS (Home Assistant OS):

  • CLI Power: LIA runs via SSH/Terminal directly on the host (the “final boss” level of integration).
  • Embedded Expertise: On startup, LIA automatically loads the FSM standard as context. She doesn’t “guess” your config; she audits your YAML against FIL-Level (Maturity) and flags anti-patterns like hardcoded delays.
  • Safe Workflow: Commands like lia fsm validate run a ha core check before anything is written to your production config.

3. The Vision: The LILY-Agency

This is currently a solo project in the “Roots” phase, but the LILY-Agency is already taking shape in the background. Think of it as an “AI Architecture Firm” for Home Assistant: multiple specialized agents working hand-in-hand, following FSM norms, featuring a graphical drawing board and automated monitoring.

All local, all Open Source.

The project is a work-in-progress (v0.9.1/v0.9.2), so please be kind—it’s still a construction site! If anyone wants to chat about FSM, high availability, or running AI agents in the terminal, let’s connect.

Cheers from Northern Germany,

smarthomelily (Professional Home Automation Patterns)

lily-agent
HA-FSM-Engineering-Standard

1 Like

[ Lily Agent KI im Smart Home](https://www.youtube.com/watch?v=YumVQ0waLZo&t=8s

community.simon42

Nice idea, but why putting it behind a language wall? :thinking:
You don’t want people to find it and use it? :face_with_monocle:

You’re absolutely right — that feedback actually stuck with me! I originally built this just for myself, so everything was in German. But friends kept telling me I should share it with everyone, so here we are: I’m currently translating both LIA itself and all documentation to English. Version 0.9.9.0 will be fully bilingual (DE/EN) and should be up on GitLab and GitHub in the next few days.

1 Like

Hats off to you!
That will be awesome.

Thanks, we’ll see when it’s finished and you’ve all formed your opinions.