Digital-Alchemy-TS / code-glue

Top secret stuff
1 stars 0 forks source link

Synapse entity generation #4

Open zoe-codez opened 3 weeks ago

zoe-codez commented 3 weeks ago

🪤 Context

UI based entity registrations. Backend will assemble entities, and provide to automation code like this

entities.my_select.current_option = "foo"

📬 Caveats

The synapse entity generation tools won't be provided directly to the service for v1. There's some weirdness to sort out with continually redefining an entity, and potential memory leaks through the strange create / teardown process

🩻 Additional details

https://github.com/Digital-Alchemy-TS/code-glue/blob/main/apps/server/src/utils/contracts/entities.ts

zoe-codez commented 2 weeks ago

Attributes

These get reported to home assistant as part of entity.attributes.

Locals

Used for storing properties against the entity without emitting update events or sending that info to home assistant. Info DOES get persisted to sqlite automatically

Configuration

Domain specific configurations. Used as the default value for new entities

Will need to reference synapse library internals for types. LMK and I can point them out for import

Standard entity stuff

Other