Skip to content

v1.1.1 - Home Assistant UI Compatibility 2024+

Choose a tag to compare

@P1pp89 P1pp89 released this 14 Jan 17:29
c7a5368

Release Description (English)
Critical Fixes
This release fixes an important compatibility issue with the Home Assistant UI.

Fixed issue:
The AI was generating automations with deprecated YAML syntax (trigger:, action:, service:) that weren't compatible with Home Assistant 2024+ UI editor.

What changed:

  • Updated YAML format to modern Home Assistant syntax
  • Now uses triggers: instead of trigger: (plural)
  • Now uses actions: instead of action: (plural)
  • Now uses action: instead of service: in actions
  • Automatically adds mode: single to every automation
  • Backward-compatible YAML validation (accepts both syntaxes)

Format before (NOT working with UI):
yaml- alias: "Test"
trigger:
- platform: time
action:
- service: light.turn_on

Format now (UI 2024+ Compatible):
yaml- alias: Test
triggers:

  • trigger: time
    at: "20:00:00"
    actions:
  • action: light.turn_on
    target:
    entity_id: light.example
    mode: single

How to Update

  • Update via HACS
  • Restart Home Assistant

New generated automations will be UI-compatible

Important Notes

Existing automations will continue to work
Only NEW generated automations will use the updated format
No breaking changes for existing users

Changelog

Fixed YAML format compatibility with Home Assistant 2024+ UI editor
Updated AI prompt to generate modern YAML syntax
Fixed validation to accept both old and new formats

Changed

trigger: → triggers: (plural)
action: → actions: (plural)
service: → action: in action definitions
Added automatic mode: single to all automations

Technical

Updated websocket_api.py with new AI prompt
Enhanced YAML validation for backward compatibility
Improved examples in AI system prompt

Files Changed

custom_components/ai_automation_builder/websocket_api.py
custom_components/ai_automation_builder/manifest.json (version bump)