← All projects
Project record1 mention
Originally shared on Hacker News

KaithemAutomation

An automation server (KaithemAutomation) being refactored so its device driver plugins use JSON schemas for configuration instead of the old flat, strings-only key-value format with a set_config_properties UI-hint function, with auto-upgrade shims to keep old configs working.

Last shared
01 / The problem

What it addresses

The old flat key-value config format for device driver plugins felt un-best-practicesful and needed replacement.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. KaithemAutomation

    An automation server (KaithemAutomation) being refactored so its device driver plugins use JSON schemas for configuration instead of the old flat, strings-only key-value format with a set_config_properties UI-hint function, with auto-upgrade shims to keep old configs working.

    Problem: The old flat key-value config format for device driver plugins felt un-best-practicesful and needed replacement.

    Posted by @eternityforest · Original source ↗

    Source text · @eternityforest · · Source ↗

    Disenhackifying one of the last pieces of my KaithemAutomation server that still feels not best practicesful. Device driver plugins used to have a very simple flat key value, strings only format, with a set_config_properties function to tell the host what kind of UI to show. That's all getting replaced with JSON schemas, with some auto-upgrade shims so old config keeps working.