mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 13:00:27 +02:00
11 lines
306 B
YAML
11 lines
306 B
YAML
text_sensor:
|
|
- platform: template
|
|
name: 'Serial No.'
|
|
id: serial_no
|
|
lambda: |-
|
|
std::string mac = get_mac_address();
|
|
return std::string("${serial_prefix}") + mac.substr(mac.length()/2);
|
|
icon: mdi:expansion-card-variant
|
|
entity_category: diagnostic
|
|
update_interval: 60min
|