Golang library to Meross API based on the Python library https://github.com/albertogeniola/MerossIot
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
cmd
vendor/github.com
.gitignore
Gopkg.lock
Gopkg.toml
LICENSE
Makefile
README.md

README.md

meross

Golang library to Meross API based on the Python library https://github.com/albertogeniola/MerossIot

build

make

test

make test

usage

import "github.com/codeboten/meross"

func main() {
	client := api.NewClient(os.Getenv("MEROSS_EMAIL"), os.Getenv("MEROSS_PASSWORD"))

	err := client.Login()
	if err != nil {
		fmt.Printf("Login error: %v\n", err)
	}
	devices, err := client.GetSupportedDevices()
	if err != nil {
		fmt.Printf("GetSupportedDevices error: %v\n", err)
	}

	if len(devices) == 0 {
		fmt.Printf("No devices found")
		return
	}
	fmt.Printf("Found devices: %v\n", devices)
}