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/
Click to show internal directories.
Click to hide internal directories.