app

package
v0.0.0-...-ff864b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppOptions

type AppOptions struct {
	HvacHost        net.IP
	MqttTopicPrefix string
	BemfaTopic      string
	MqttRetain      bool
	DeviceState     map[string]string
	Commands        gree.Command
	Command         func()

	BemfaClient mqtt.Client
	UdpClient   *gree.DeviceFactory
	BemfaState  *Bemfa
	// contains filtered or unexported fields
}

func Create

func Create() *AppOptions

func (*AppOptions) OnConnected

func (options *AppOptions) OnConnected()

func (*AppOptions) OnUpdate

func (options *AppOptions) OnUpdate(_ *gree.Device)

func (*AppOptions) Start

func (options *AppOptions) Start(mqtt mqtt.Client, bemfa mqtt.Client, greeConfig *config.Gree)

func (*AppOptions) UpdateStatusToMqtt

func (options *AppOptions) UpdateStatusToMqtt(device *gree.Device)

type Bemfa

type Bemfa struct {
	Power       bool
	Mode        int
	Temperature int
	FanSpeed    int
	SwingHor    int
	SwingVert   int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL