mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 20:50:02 +02:00
dimmer serial no
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
- platform: template
|
text_sensor:
|
||||||
name: 'Serial No.'
|
- platform: template
|
||||||
lambda: |-
|
name: 'Serial No.'
|
||||||
std::string mac = get_mac_address();
|
lambda: |-
|
||||||
return "dim" + mac.erase(0, mac.length()/2);
|
std::string mac = get_mac_address();
|
||||||
icon: mdi:expansion-card-variant
|
return "dim" + mac.erase(0, mac.length()/2);
|
||||||
entity_category: diagnostic
|
icon: mdi:expansion-card-variant
|
||||||
update_interval: 10m
|
entity_category: diagnostic
|
||||||
|
update_interval: 10m
|
||||||
|
|||||||
Reference in New Issue
Block a user