mirror of
https://github.com/esphome/esphome.git
synced 2026-09-17 18:18:43 +00:00
f8af7354b139e69ed12b37418e06d774d350a0f7
On RP2040, get_mac_address_raw() only queried WiFi.macAddress(). When ethernet is configured without WiFi, the MAC address was left uninitialized, causing get_mac_address() and get_mac_address_pretty() to return all zeros. This affects device identification (API, mDNS, unique ID). Unlike ESP32 which reads from eFuse (always available regardless of network interface), RP2040 must query the actual network driver. Fall back to ethernet::global_eth_component->get_eth_mac_address_raw() when USE_ETHERNET is defined and USE_WIFI is not.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
598 MiB
Languages
C++
55.7%
Python
43.7%
C
0.3%
JavaScript
0.2%
