salia

package
v0.0.0-...-610f8f3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeartBeat        = "salia/heartbeat"
	ChargeMode       = "salia/chargemode"
	PauseCharging    = "salia/pausecharging"
	SetPhase         = "salia/phase_switching/setphase"
	GridCurrentLimit = "grid_current_limit"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Device struct {
		ModelName       string
		SoftwareVersion string `json:"software_version"`
	}
	Secc Secc
}

type Port

type Port struct {
	Ci struct {
		Evse struct {
			Basic struct {
				OfferedCurrentLimit float64 `json:"offered_current_limit,string"`
			}
		}
		Charge struct {
			Cp struct {
				Status string
			}
		}
	}
	Salia struct {
		ChargeMode     string
		PauseCharging  int `json:"pausecharging,string"`
		PhaseSwitching struct {
			Actual   int `json:",string"`
			Status   string
			SetPhase string `json:"setphase,omitempty"`
		} `json:"phase_switching"`
	}
	Metering struct {
		Meter struct {
			Type      string
			Available int `json:",string"`
		}
		Power struct {
			ActiveTotal struct {
				Actual float64 `json:",string"`
			} `json:"active_total"`
			Active struct {
				AC struct {
					L1 struct {
						Actual float64 `json:",string"`
					}
					L2 struct {
						Actual float64 `json:",string"`
					}
					L3 struct {
						Actual float64 `json:",string"`
					}
				}
			}
		}
		Energy struct {
			ActiveImport struct {
				Actual float64 `json:",string"`
			} `json:"active_import"`
		}
		Current struct {
			AC struct {
				L1 struct {
					Actual float64 `json:",string"`
				}
				L2 struct {
					Actual float64 `json:",string"`
				}
				L3 struct {
					Actual float64 `json:",string"`
				}
			}
		}
	}
	EvPresent        int     `json:"ev_present,string"`
	Charging         int     `json:",string"`
	GridCurrentLimit float64 `json:"grid_current_limit,string"`
}

type Secc

type Secc struct {
	Port0 Port
}

Jump to

Keyboard shortcuts

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