JBHaMqttDiscovery
Loading...
Searching...
No Matches
HaDeviceInfo Struct Reference

Home Assistant device information for the "dev" block in MQTT Discovery payloads. More...

#include <HaDiscovery.h>

Public Attributes

const char * node_id = nullptr
 Stable node identifier used in topics and unique_id (e.g. "esp32_kitchen_01").
const char * name = nullptr
 Device name shown in Home Assistant device registry.
const char * manufacturer = nullptr
 Manufacturer name.
const char * model = nullptr
 Model name.
const char * sw_version = nullptr
 Software version string.
const char * identifiers = nullptr
 Stable device identifier string (e.g. MAC address).

Detailed Description

Home Assistant device information for the "dev" block in MQTT Discovery payloads.

Member Data Documentation

◆ identifiers

const char* HaDeviceInfo::identifiers = nullptr

Stable device identifier string (e.g. MAC address).

This maps to the Home Assistant dev.ids field. It should be stable across reboots/flashes to avoid device duplication.


The documentation for this struct was generated from the following file: