Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shelly1Plus ¶
Shelly1Plus struct represents the state.
func NewClient ¶
func NewClient(authKey string, baseURL string, deviceID string) *Shelly1Plus
NewClient Create a new clients with the given params
func (*Shelly1Plus) GetDeviceStatus ¶
func (s *Shelly1Plus) GetDeviceStatus() (shellymodels.Status, error)
GetDeviceStatus returns the status of the device
func (*Shelly1Plus) Off ¶
func (s *Shelly1Plus) Off(channelID int) (bool, error)
Off switch the relay off
type SwitchData ¶
type SwitchData struct {
DeviceID string `json:"device_id"`
}
type SwitchResponse ¶
type SwitchResponse struct { Isok bool `json:"isok"` Data SwitchData `json:"data"` }
Click to show internal directories.
Click to hide internal directories.