add serial number

This commit is contained in:
pszafer
2024-05-22 09:59:52 +02:00
parent 9a5c78334d
commit 8733d0f625
4 changed files with 40 additions and 9 deletions

View File

@@ -0,0 +1,8 @@
- platform: template
name: 'Serial No.'
lambda: |-
std::string mac = get_mac_address();
return "dim" + mac.erase(0, mac.length()/2);
icon: mdi:expansion-card-variant
entity_category: diagnostic
update_interval: 10m