Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TopicEntities ... TopicEntities = "entities" // TopicPlugins ... TopicPlugins = "plugins" // TopicAutomation ... TopicAutomation = "automation" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityState ¶
type EntityState struct { Name string `json:"name"` Description string `json:"description"` ImageUrl *string `json:"image_url"` Icon *string `json:"icon"` }
EntityState ...
type EventBus ¶
type EventBus interface { Publish(topic string, args ...interface{}) Close(topic string) Subscribe(topic string, fn interface{}, options ...interface{}) error Unsubscribe(topic string, fn interface{}) error Stat() (stats message_queue.Stats, err error) Purge() }
EventBus ...
type EventEntityState ¶
type EventEntityState struct { EntityId common.EntityId `json:"entity_id"` Value interface{} `json:"value"` State *EntityState `json:"state"` Attributes m.Attributes `json:"attributes"` Settings m.Attributes `json:"settings"` LastChanged *time.Time `json:"last_changed"` LastUpdated *time.Time `json:"last_updated"` }
EventEntityState ...
func (EventEntityState) Compare ¶
func (e1 EventEntityState) Compare(e2 EventEntityState) (ident bool)
Compare ...
Click to show internal directories.
Click to hide internal directories.