This repository has been archived on 2023-08-29. You can view files and clone it, but cannot push or open issues or pull requests.
automation/kasa/reply.go
Dreaded_X dace0eba29
All checks were successful
continuous-integration/drone/push Build is passing
Refactored code and added support for kasa smart plugs
2022-09-24 00:42:42 +02:00

20 lines
298 B
Go

package kasa
type errCode struct {
ErrCode int
}
type reply struct {
System struct {
SetRelayState errCode `json:"set_relay_state"`
} `json:"system"`
}
type cmd struct {
System struct {
SetRelayState struct {
State int `json:"state"`
} `json:"set_relay_state"`
} `json:"system"`
}