Documentation ¶
Index ¶
- func GetSensorMode(mode types.PortMode, controllerRepo repo.Controller) (class string, icon string)
- func RegisterCommands(profiluxMqtt *ProfiluxMqtt, mqttClient mqtt.Client, ...)
- type Device
- type HaBaseConfig
- type HaButtonConfig
- type HaStateConfig
- type HaSwitchConfig
- type ProfiluxMqtt
- func (profiMqtt *ProfiluxMqtt) PublishMQTT(mqttClient mqtt.Client, log logger.ILog, topic string, payload string, ...)
- func (profiMqtt *ProfiluxMqtt) PublishMQTTOld(mqttClient mqtt.Client, log logger.ILog, topic string)
- func (profiMqtt *ProfiluxMqtt) UpdateHomeAssistant(controllerRepo repo.Controller, mqttClient mqtt.Client, log logger.ILog, ...)
- func (profiMqtt *ProfiluxMqtt) UpdateMQTT(controllerRepo repo.Controller, mqttClient mqtt.Client, log logger.ILog, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSensorMode ¶
func RegisterCommands ¶
func RegisterCommands(profiluxMqtt *ProfiluxMqtt, mqttClient mqtt.Client, controllerRepo data.Controller, log logger.ILog, appConfig appSettings.Config)
Types ¶
type HaBaseConfig ¶
type HaBaseConfig struct { Device Device `json:"device"` Name string `json:"name"` UniqueId string `json:"unique_id"` AvailabilityTopic string `json:"availability_topic,omitempty"` DeviceClass string `json:"device_class,omitempty"` PayloadAvailable string `json:"payload_available"` PayloadNotAvailable string `json:"payload_not_available"` Icon string `json:"icon,omitempty"` IconTemplate string `json:"icon_template,omitempty"` }
type HaButtonConfig ¶
type HaButtonConfig struct { HaBaseConfig CommandTopic string `json:"command_topic"` StateTopic string `json:"state_topic"` }
type HaStateConfig ¶
type HaStateConfig struct { HaBaseConfig StateTopic string `json:"state_topic"` UnitOfMeasurement string `json:"unit_of_measurement,omitempty"` }
type HaSwitchConfig ¶
type HaSwitchConfig struct { HaBaseConfig StateTopic string `json:"state_topic"` CommandTopic string `json:"command_topic"` }
type ProfiluxMqtt ¶
type ProfiluxMqtt struct {
// contains filtered or unexported fields
}
func (*ProfiluxMqtt) PublishMQTT ¶
func (*ProfiluxMqtt) PublishMQTTOld ¶
func (*ProfiluxMqtt) UpdateHomeAssistant ¶
func (profiMqtt *ProfiluxMqtt) UpdateHomeAssistant(controllerRepo repo.Controller, mqttClient mqtt.Client, log logger.ILog, forceUpdate bool)
func (*ProfiluxMqtt) UpdateMQTT ¶
func (profiMqtt *ProfiluxMqtt) UpdateMQTT(controllerRepo repo.Controller, mqttClient mqtt.Client, log logger.ILog, forceUpdate bool)
Click to show internal directories.
Click to hide internal directories.