Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name ... Name = "zigbee2mqtt" // EntityZigbee2mqtt ... EntityZigbee2mqtt = common.EntityType("zigbee2mqtt") )
View Source
const ( // FuncZigbee2mqttEvent ... FuncZigbee2mqttEvent = "zigbee2mqttEvent" // FuncEntityAction ... FuncEntityAction = "entityAction" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Actor ¶
type Actor struct { entity_manager.BaseActor // contains filtered or unexported fields }
Actor ...
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)
NewActor ...
func (*Actor) SetState ¶
func (e *Actor) SetState(params entity_manager.EntityStateParams) error
SetState ...
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.