Versions in this module Expand all Collapse all v2 v2.0.0 Jun 18, 2023 Changes in this version + const ActionPingRequest + const ActionTimeRequest + const CameraImagePrefix + const EntityTypeBinarySensor + const EntityTypeCamera + const EntityTypeClimate + const EntityTypeCover + const EntityTypeFan + const EntityTypeLight + const EntityTypeSensor + const EntityTypeSwitch + const EntityTypeTextSensor + const FieldAway + const FieldBlue + const FieldBrightness + const FieldColorTemperature + const FieldCurrentTemperature + const FieldData + const FieldDirection + const FieldEffect + const FieldFanMode + const FieldGreen + const FieldKey + const FieldMode + const FieldName + const FieldObjectID + const FieldOscillating + const FieldPosition + const FieldRGB + const FieldRed + const FieldSpeed + const FieldSpeedLevel + const FieldState + const FieldStop + const FieldStream + const FieldSwingMode + const FieldTargetTemperature + const FieldTargetTemperatureHigh + const FieldTargetTemperatureLow + const FieldTilt + const FieldUniqueID + const FieldWhite + const LabelKey + const LabelType + const MessageTypeID + const NodeID + const PluginEspHome + const SourceIDRestart + func New(ctx context.Context, config *gwTY.Config) (providerTY.Plugin, error) + type ClientStore struct + GatewayID string + func (s *ClientStore) AddNode(nodeID string, client *ESPHomeNode) + func (s *ClientStore) Close() + func (s *ClientStore) Get(nodeID string) *ESPHomeNode + type Config struct + AliveCheckInterval string + EncryptionKey string + Nodes map[string]ESPHomeNodeConfig + Password string + Timeout string + type ESPHomeNode struct + Client *esphomeClient.Client + Config ESPHomeNodeConfig + GatewayID string + NodeID string + func NewESPHomeNode(logger *zap.Logger, gatewayID, nodeID string, config ESPHomeNodeConfig, ...) *ESPHomeNode + func (en *ESPHomeNode) Connect() error + func (en *ESPHomeNode) Disconnect() error + func (en *ESPHomeNode) Post(msg proto.Message) error + func (en *ESPHomeNode) ScheduleReconnect() + type ESPHomeNodeConfig struct + Address string + AliveCheckInterval string + Disabled bool + EncryptionKey string + Password string + ReconnectDelay string + Timeout string + UseGlobalEncryptionKey bool + UseGlobalPassword bool + type Entity struct + DeviceClass string + Key uint32 + SourceID string + SourceName string + Type string + Unit string + func (en *Entity) Clone() *Entity + type EntityStore struct + func (s *EntityStore) AddEntity(nodeID string, key uint32, entity Entity) + func (s *EntityStore) Close() + func (s *EntityStore) GetByEntityType(nodeID string, entityType string) *Entity + func (s *EntityStore) GetByKey(nodeID string, key uint32) *Entity + func (s *EntityStore) GetBySourceID(nodeID string, sourceID string) *Entity + type MetricMap struct + MetricType string + ReadOnly string + Unit string + type Provider struct + Config Config + GatewayConfig *gwTY.Config + func (p *Provider) Close() error + func (p *Provider) ConvertToMessages(rawMsg *msgTY.RawMessage) ([]*msgTY.Message, error) + func (p *Provider) Name() string + func (p *Provider) Post(message *msgTY.Message) error + func (p *Provider) Schedule(scheduleID, interval string, triggerFunc func()) error + func (p *Provider) Start(rxMessageFunc func(rawMsg *msgTY.RawMessage) error) error + func (p *Provider) Unschedule(scheduleID string)