mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 13:00:27 +02:00
@@ -4,7 +4,7 @@ text_sensor:
|
||||
id: serial_no
|
||||
lambda: |-
|
||||
std::string mac = get_mac_address();
|
||||
return to_string("${serial_prefix}") + mac.erase(0, mac.length()/2);
|
||||
return std::string("${serial_prefix}") + mac.substr(mac.length()/2);
|
||||
icon: mdi:expansion-card-variant
|
||||
entity_category: diagnostic
|
||||
update_interval: 60min
|
||||
|
||||
Reference in New Issue
Block a user