Versions in this module Expand all Collapse all v3 v3.2.2 Apr 16, 2024 v3.2.1 Feb 22, 2024 v3.2.0 Jan 7, 2024 Changes in this version type StructRegister + Writable bool v3.1.4 Dec 20, 2023 v3.1.3 Dec 19, 2023 Changes in this version + func CamelToSnakeCase(str string) string + func RunMqttForwarders(cfg Config, mc mqttClient.Client, ...) + type CommandMessage struct + EnumIdx *int + NumericValue *float64 + TextValue *string + type Config interface + AvailabilityClient func() MqttSectionConfig + AvailabilityClientTopic func() string + AvailabilityDevice func() MqttSectionConfig + AvailabilityDeviceTopic func(deviceName string) string + ClientId func() string + Command func() MqttSectionConfig + CommandTopic func(deviceName, registerName string) string + HomeassistantDiscovery func() MqttSectionConfig + HomeassistantDiscoveryTopic func(component, nodeId, objectId string) string + LogDebug func() bool + Realtime func() MqttSectionConfig + RealtimeTopic func(deviceName, registerName string) string + Structure func() MqttSectionConfig + StructureTopic func(deviceName string) string + Telemetry func() MqttSectionConfig + TelemetryTopic func(deviceName string) string + type EnumTelemetryValue struct + Category string + Description string + EnumIdx int + Value string + type MqttDeviceSectionConfig interface + Filter func() dataflow.RegisterFilterConf + Name func() string + type MqttSectionConfig interface + Devices func() []MqttDeviceSectionConfig + Enabled func() bool + Interval func() time.Duration + Qos func() byte + Retain func() bool + type Nameable interface + Name func() string + type NumericTelemetryValue struct + Category string + Description string + Unit string + Value float64 + type RealtimeMessage struct + EnumIdx *int + NumericValue *float64 + TextValue *string + type StructRegister struct + Category string + Commandable bool + Description string + Enum map[int]string + Name string + Sort int + Type string + Unit string + func NewStructRegister(reg dataflow.Register) StructRegister + type StructureMessage struct + AvailabilityTopics []string + CommandTopic string + RealtimeTopic string + Registers []StructRegister + TelemetryTopic string + type TelemetryMessage struct + EnumValues map[string]EnumTelemetryValue + Model string + NextTelemetry string + NumericValues map[string]NumericTelemetryValue + TextValues map[string]TextTelemetryValue + Time string + type TextTelemetryValue struct + Category string + Description string + Value string