Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateSession(username string, password string) ([]byte, error)
- func (c *Client) GetDeviceHistory(timeFrame int64) (types.History, error)
- func (c *Client) GetDeviceStatus() (types.Device, error)
- func (c *Client) GetGroups() (types.Groups, error)
- func (c *Client) ListDevices() ([]string, error)
- func (c *Client) SetDevice(deviceGUID string)
- func (c *Client) SetEcoMode(mode int64) ([]byte, error)
- func (c *Client) SetFanSpeed(fanSpeed int64) ([]byte, error)
- func (c *Client) SetMode(mode int64) ([]byte, error)
- func (c *Client) SetTemperature(temperature float64) ([]byte, error)
- func (c *Client) TurnOff() ([]byte, error)
- func (c *Client) TurnOn() ([]byte, error)
- func (c *Client) ValidateSession(token string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a Panasonic Comfort Cloud client.
func NewClientWithUrl ¶
NewClientWithUrl creates a new client with given base URL.
func (*Client) CreateSession ¶
CreateSession initialises a client session to Panasonic Comfort Cloud.
func (*Client) GetDeviceHistory ¶
GetDeviceHistory will fetch historical device data from Panasonic.
func (*Client) GetDeviceStatus ¶
GetDeviceStatus gets all details for a specific device.
func (*Client) GetGroups ¶
GetGroups gets all Panasonic Comfort Cloud groups associated to this account.
func (*Client) ListDevices ¶
ListDevices lists all available devices.
func (*Client) SetEcoMode ¶
SetEcoMode will set the device to the requested eco mode.
func (*Client) SetFanSpeed ¶ added in v1.0.3
SetFanSpeed will set the fan speed for a device.
func (*Client) SetTemperature ¶
SetTemperature will set the temperature for a device.
Click to show internal directories.
Click to hide internal directories.