config

package
v0.0.0-...-7185231 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MQTT struct {
		Broker       string `json:"broker,omitempty"`
		Username     string `json:"username,omitempty"`
		Password     string `json:"password,omitempty"`
		NodeId       string `json:"node_id,omitempty"`
		InstanceName string `json:"instance_name,omitempty"`
	}
	Logging struct {
		Critical bool `json:"critical,omitempty"`
		Debug    bool `json:"debug,omitempty"`
		Error    bool `json:"error,omitempty"`
		Warn     bool `json:"warn,omitempty"`
		Mqtt     bool `json:"mqtt,omitempty"`
	}
	AlarmControlPanel []internaldevice.AlarmControlPanel `json:"alarm_control_panel,omitempty"`
	BinarySensor      []internaldevice.BinarySensor      `json:"binary_sensor,omitempty"`
	Button            []internaldevice.Button            `json:"button,omitempty"`
	Camera            []internaldevice.Camera            `json:"camera,omitempty"`
	Climate           []internaldevice.Climate           `json:"climate,omitempty"`
	Cover             []internaldevice.Cover             `json:"cover,omitempty"`
	DeviceTracker     []internaldevice.DeviceTracker     `json:"device_tracker,omitempty"`
	DeviceTrigger     []internaldevice.DeviceTrigger     `json:"device_trigger,omitempty"`
	Event             []internaldevice.Event             `json:"event,omitempty"`
	Fan               []internaldevice.Fan               `json:"fan,omitempty"`
	Humidifier        []internaldevice.Humidifier        `json:"humidifier,omitempty"`
	Image             []internaldevice.Image             `json:"image,omitempty"`
	LawnMower         []internaldevice.LawnMower         `json:"lawn_mower,omitempty"`
	Light             []internaldevice.Light             `json:"light,omitempty"`
	Lock              []internaldevice.Lock              `json:"lock,omitempty"`
	Number            []internaldevice.Number            `json:"number,omitempty"`
	Scene             []internaldevice.Scene             `json:"scene,omitempty"`
	Select            []internaldevice.Select            `json:"select,omitempty"`
	Sensor            []internaldevice.Sensor            `json:"sensor,omitempty"`
	Siren             []internaldevice.Siren             `json:"siren,omitempty"`
	Switch            []internaldevice.Switch            `json:"switch,omitempty"`
	Tag               []internaldevice.Tag               `json:"tag,omitempty"`
	Text              []internaldevice.Text              `json:"text,omitempty"`
	Update            []internaldevice.Update            `json:"update,omitempty"`
	Vacuum            []internaldevice.Vacuum            `json:"vacuum,omitempty"`
	Valve             []internaldevice.Valve             `json:"valve,omitempty"`
	WaterHeater       []internaldevice.WaterHeater       `json:"water_heater,omitempty"`
}

////////////////////////////////////////////////////////////////////////////// Do not modify this file, it is automatically generated //////////////////////////////////////////////////////////////////////////////

func (Config) Convert

func (c Config) Convert() ([]ExternalDevice.Device, *mqtt.ClientOptions)

func (Config) Translate

func (c Config) Translate() (output []ExternalDevice.Device)

Jump to

Keyboard shortcuts

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