Documentation
¶
Index ¶
- func NewMiHomeClient(conn gopi.RPCClientConn) gopi.RPCClient
- type Client
- func (this *Client) Conn() gopi.RPCClientConn
- func (this *Client) NewContext() context.Context
- func (this *Client) Off(product sensors.MiHomeProduct, sensor uint32) error
- func (this *Client) On(product sensors.MiHomeProduct, sensor uint32) error
- func (this *Client) Ping() error
- func (this *Client) RequestBatteryLevel(product sensors.MiHomeProduct, sensor uint32) error
- func (this *Client) RequestDiagnostics(product sensors.MiHomeProduct, sensor uint32) error
- func (this *Client) RequestExercise(product sensors.MiHomeProduct, sensor uint32) error
- func (this *Client) RequestIdentify(product sensors.MiHomeProduct, sensor uint32) error
- func (this *Client) Reset() error
- func (this *Client) SendJoin(product sensors.MiHomeProduct, sensor uint32) error
- func (this *Client) SendPowerMode(product sensors.MiHomeProduct, sensor uint32, mode sensors.MiHomePowerMode) error
- func (this *Client) SendReportInterval(product sensors.MiHomeProduct, sensor uint32, interval time.Duration) error
- func (this *Client) SendTargetTemperature(product sensors.MiHomeProduct, sensor uint32, temperature float64) error
- func (this *Client) SendValveState(product sensors.MiHomeProduct, sensor uint32, state sensors.MiHomeValveState) error
- func (this *Client) StreamMessages(ctx context.Context) error
- func (this *Client) String() string
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiHomeClient ¶
func NewMiHomeClient(conn gopi.RPCClientConn) gopi.RPCClient
Types ¶
type Client ¶
type Client struct { pb.MiHomeClient event.Publisher // contains filtered or unexported fields }
func (*Client) Conn ¶
func (this *Client) Conn() gopi.RPCClientConn
func (*Client) NewContext ¶
func (*Client) Off ¶ added in v1.0.4
func (this *Client) Off(product sensors.MiHomeProduct, sensor uint32) error
func (*Client) On ¶ added in v1.0.4
func (this *Client) On(product sensors.MiHomeProduct, sensor uint32) error
func (*Client) RequestBatteryLevel ¶ added in v1.0.5
func (this *Client) RequestBatteryLevel(product sensors.MiHomeProduct, sensor uint32) error
func (*Client) RequestDiagnostics ¶ added in v1.0.5
func (this *Client) RequestDiagnostics(product sensors.MiHomeProduct, sensor uint32) error
func (*Client) RequestExercise ¶ added in v1.0.5
func (this *Client) RequestExercise(product sensors.MiHomeProduct, sensor uint32) error
func (*Client) RequestIdentify ¶ added in v1.0.5
func (this *Client) RequestIdentify(product sensors.MiHomeProduct, sensor uint32) error
func (*Client) SendJoin ¶ added in v1.0.4
func (this *Client) SendJoin(product sensors.MiHomeProduct, sensor uint32) error
func (*Client) SendPowerMode ¶ added in v1.0.5
func (this *Client) SendPowerMode(product sensors.MiHomeProduct, sensor uint32, mode sensors.MiHomePowerMode) error
func (*Client) SendReportInterval ¶ added in v1.0.5
func (*Client) SendTargetTemperature ¶ added in v1.0.5
func (*Client) SendValveState ¶ added in v1.0.5
func (this *Client) SendValveState(product sensors.MiHomeProduct, sensor uint32, state sensors.MiHomeValveState) error
func (*Client) StreamMessages ¶ added in v1.0.5
Click to show internal directories.
Click to hide internal directories.