tasmota

package
v0.0.0-...-e6e1b3f Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PowerResponse

type PowerResponse struct {
	POWER string
}

PowerResponse is the Tasmota Power command Status response ON, OFF, Error https://tasmota.github.io/docs/Commands/#with-web-requests

type StatusResponse

type StatusResponse struct {
	Status struct {
		Module       int
		DeviceName   string
		FriendlyName []string
		Topic        string
		ButtonTopic  string
		Power        int
		PowerOnState int
		LedState     int
		LedMask      string
		SaveData     int
		SaveState    int
		SwitchTopic  string
		SwitchMode   []int
		ButtonRetain int
		SwitchRetain int
		SensorRetain int
		PowerRetain  int
		InfoRetain   int
		StateRetain  int
	}
}

StatusResponse is a part of the Tasmota Status 0 command Status response https://tasmota.github.io/docs/JSON-Status-Responses/

type StatusSNSResponse

type StatusSNSResponse struct {
	StatusSNS struct {
		Time   string
		Energy struct {
			TotalStartTime string
			Total          float64
			Yesterday      float64
			Today          float64
			Power          int
			ApparentPower  int
			ReactivePower  int
			Factor         float64
			Voltage        int
			Current        float64
		}
	}
}

StatusSNSResponse is the Tasmota Status 8 command Status response https://tasmota.github.io/docs/JSON-Status-Responses/

Jump to

Keyboard shortcuts

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