Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
ConfigurationUrl *string `json:"configuration_url,omitempty"` // "A link to the webpage that can manage the configuration of this device. Can be either an HTTP or HTTPS link."
Connections *string `json:"connections,omitempty"` // "A list of connections of the device to the outside world as a list of tuples `[connection_type, connection_identifier]`. For example the MAC address of a network interface: `\"connections\": [[\"mac\", \"02:5b:26:a8:dc:12\"]]`."
Identifiers *string `json:"identifiers,omitempty"` // "A list of IDs that uniquely identify the device. For example a serial number."
Manufacturer *string `json:"manufacturer,omitempty"` // "The manufacturer of the device."
Model *string `json:"model,omitempty"` // "The model of the device."
Name *string `json:"name,omitempty"` // "The name of the device."
SuggestedArea *string `json:"suggested_area,omitempty"` // "Suggest an area if the device isn’t in one yet."
SwVersion *string `json:"sw_version,omitempty"` // "The firmware version of the device."
ViaDevice *string `json:"via_device,omitempty"` // "Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant."
// contains filtered or unexported fields
}
func (*Device) GetUniqueId ¶
func (*Device) Initialize ¶
func (*Device) SetMQTTFields ¶
func (*Device) UnSubscribe ¶
func (d *Device) UnSubscribe()
Click to show internal directories.
Click to hide internal directories.