Open zoe-codez opened 3 weeks ago
These get reported to home assistant as part of entity.attributes
.
defaultAttributes
(JSON object)attributes
(type definition)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
locals
(type definition)defaultLocals
(json object)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
defaultConfig
(json object)
🪤 Context
UI based entity registrations. Backend will assemble entities, and provide to automation code like this
📬 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