@ginden/ha-mqtt-discoverable
    Preparing search index...

    Class DeviceInfo

    Information about a device a sensor belongs to

    Index

    Constructors

    Properties

    configurationUrl?: string

    A link to the webpage that can manage the configuration of this device. Can be either an HTTP or HTTPS link.

    connections?: [unknown, unknown][]

    A list of connections of the device to the outside world as a list of tuples [connection_type, connection_identifier]

    hwVersion?: string

    Hardware version of the device

    identifiers?: string | string[]

    A list of IDs that uniquely identify the device. For example a serial number.

    manufacturer?: string

    Manufacturer of the device

    model?: string

    Model of the device

    name: string

    Name of the device

    swVersion?: string

    Firmware version of the device

    viaDevice?: string

    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.

    Methods

    • Returns Record<string, unknown>

    • Mapping of class properties to MQTT payload keys. Merges subclass mappings via super.propertyMap().

      Returns {
          configurationUrl: "configuration_url";
          connections: "connections";
          hwVersion: "hw_version";
          identifiers: "identifiers";
          manufacturer: "manufacturer";
          model: "model";
          name: "name";
          swVersion: "sw_version";
          viaDevice: "via_device";
      }