Documentation ¶
Index ¶
- Constants
- type ClimateDiscoveryTopic
- type ConfigMqtt
- type DiscoveryTopicAvailability
- type DiscoveryTopicDevice
- type PublishAmbientTempInput
- type PublishAvailabilityInput
- type PublishClimateDiscoveryTopicInput
- type PublishDisplaySwitchInput
- type PublishFanModeInput
- type PublishModeInput
- type PublishSwingModeInput
- type PublishSwitchDiscoveryTopicInput
- type PublishTemperatureInput
- type SwitchDiscoveryTopic
Constants ¶
View Source
const ( DeviceClassClimate string = "climate" DeviceClassSwitch string = "switch" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClimateDiscoveryTopic ¶ added in v1.4.0
type ClimateDiscoveryTopic struct { FanModeCommandTopic string `json:"fan_mode_command_topic" example:"aircon/34ea345b0fd4/fan_mode/set"` SwingModeCommandTopic string `json:"swing_mode_command_topic" example:"aircon/34ea345b0fd4/swing_mode/set"` SwingModes []string `json:"swing_modes"` // 'on' 'off' TempStep float32 `json:"temp_step" example:"0.5"` TemperatureStateTopic string `json:"temperature_state_topic" example:"aircon/34ea345b0fd4/temp/value"` TemperatureCommandTopic string `json:"temperature_command_topic" example:"aircon/34ea345b0fd4/temp/set"` Precision float32 `json:"precision" example:"0.5"` CurrentTemperatureTopic string `json:"current_temperature_topic" example:"aircon/34ea345b0fd4/current_temp/value"` // Temperature in the room Device DiscoveryTopicDevice `json:"device"` ModeCommandTopic string `json:"mode_command_topic" example:"aircon/34ea345b0fd4/mode/set"` ModeStateTopic string `json:"mode_state_topic" example:"aircon/34ea345b0fd4/mode/value"` Modes []string `json:"modes"` // [“auto”, “off”, “cool”, “heat”, “dry”, “fan_only”] Name *string `json:"name"` FanModes []string `json:"fan_modes"` // : [“auto”, “low”, “medium”, “high”] SwingModeStateTopic string `json:"swing_mode_state_topic" example:"aircon/34ea345b0fd4/swing_mode/value"` FanModeStateTopic string `json:"fan_mode_state_topic" example:"aircon/34ea345b0fd4/fan_mode/value"` UniqueId string `json:"unique_id" example:"34ea345b0fd4"` MaxTemp float32 `json:"max_temp" example:"32.0"` MinTemp float32 `json:"min_temp" example:"16.0"` Availability DiscoveryTopicAvailability `json:"availability"` Icon string `json:"icon"` TemperatureUnit string `json:"temperature_unit"` // C or F }
type ConfigMqtt ¶
type DiscoveryTopicDevice ¶
type PublishAmbientTempInput ¶
type PublishClimateDiscoveryTopicInput ¶ added in v1.4.0
type PublishClimateDiscoveryTopicInput struct {
Topic ClimateDiscoveryTopic
}
type PublishDisplaySwitchInput ¶ added in v1.4.0
type PublishFanModeInput ¶
type PublishModeInput ¶
type PublishSwingModeInput ¶
type PublishSwitchDiscoveryTopicInput ¶ added in v1.4.0
type PublishSwitchDiscoveryTopicInput struct {
Topic SwitchDiscoveryTopic
}
type PublishTemperatureInput ¶
type SwitchDiscoveryTopic ¶ added in v1.4.0
type SwitchDiscoveryTopic struct { Device DiscoveryTopicDevice `json:"device"` Name string `json:"name" example:"childroom"` UniqueId string `json:"unique_id" example:"34ea345b0fd4"` StateTopic string `json:"state_topic" example:"aircon/34ea345b0fd4/display/switch"` CommandTopic string `json:"command_topic" example:"aircon/34ea345b0fd4/display/switch/set"` Availability DiscoveryTopicAvailability `json:"availability"` Icon string `json:"icon"` }
Click to show internal directories.
Click to hide internal directories.