Documentation ¶
Index ¶
Constants ¶
View Source
const ( Name = "zigbee2mqtt" EntityZigbee2mqtt = common.EntityType("zigbee2mqtt") )
View Source
const ( FuncZigbee2mqttEvent = "zigbee2mqttEvent" FuncEntityAction = "entityAction" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Actor ¶
type Actor struct { entity_manager.BaseActor // contains filtered or unexported fields }
func NewActor ¶
func NewActor(entity *m.Entity, params map[string]interface{}, adaptors *adaptors.Adaptors, scriptService scripts.ScriptService, entityManager entity_manager.EntityManager, eventBus event_bus.EventBus) (actor *Actor, err error)
func (*Actor) SetState ¶
func (e *Actor) SetState(params entity_manager.EntityStateParams) error
func (*Actor) Spawn ¶
func (e *Actor) Spawn() entity_manager.PluginActor
type Message ¶
type Message struct { Payload string `json:"payload"` Topic string `json:"topic"` Qos uint8 `json:"qos"` Duplicate bool `json:"duplicate"` Error string `json:"error"` Success bool `json:"success"` NewState entity_manager.EntityStateParams `json:"new_state"` // contains filtered or unexported fields }
Javascript Binding
message
.SetState(params)
.
Click to show internal directories.
Click to hide internal directories.